aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Turner <jturner@gemini.edu>2016-12-29 13:01:18 -0500
committerJames Turner <jturner@gemini.edu>2016-12-29 13:01:18 -0500
commitaeddc92d00105c19fba6742e8d281951525581af (patch)
tree8daa0cd75b5e1632f73a29fdb4af301e1f63e6e8
parentafe0a5e3650cccc19803f4e766848d2362cdff4f (diff)
downloadastroconda-iraf-aeddc92d00105c19fba6742e8d281951525581af.tar.gz
Add an iraf.axe package (actually an add-on for iraf.stsdas), based on the Ureka package.
-rw-r--r--iraf.axe/ac.iraf.axe.patch65
-rw-r--r--iraf.axe/bld.bat3
-rw-r--r--iraf.axe/build.sh16
-rw-r--r--iraf.axe/meta.yaml31
4 files changed, 115 insertions, 0 deletions
diff --git a/iraf.axe/ac.iraf.axe.patch b/iraf.axe/ac.iraf.axe.patch
new file mode 100644
index 0000000..2bc55af
--- /dev/null
+++ b/iraf.axe/ac.iraf.axe.patch
@@ -0,0 +1,65 @@
+diff -Nur ../original/ccc/configure ./ccc/configure
+--- ../original/ccc/configure 2013-03-14 12:47:20.000000000 -0300
++++ ./ccc/configure 2016-12-29 13:12:12.724401161 -0300
+@@ -2789,15 +2789,15 @@
+ echo $ECHO_N "checking for wcstools... $ECHO_C" >&6
+ CPPFLAGS="$CPPFLAGS -I$withval"
+ LIBS="$LIBS $withval/libwcs.a"
+- echo "$as_me:2792: checking for libwcs/wcs.h" >&5
+-echo $ECHO_N "checking for libwcs/wcs.h... $ECHO_C" >&6
++ echo "$as_me:2792: checking for wcs.h" >&5
++echo $ECHO_N "checking for wcs.h... $ECHO_C" >&6
+ if test "${ac_cv_header_libwcs_wcs_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line 2798 "configure"
+ #include "confdefs.h"
+-#include <libwcs/wcs.h>
++#include <wcs.h>
+ _ACEOF
+ if { (eval echo "$as_me:2802: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+@@ -2851,15 +2851,15 @@
+ CPPFLAGS="$CPPFLAGS -I$WCSLIB_PREFIX"
+ LIBS="$LIBS $WCSLIB_PREFIX/libwcs.a"
+ fi
+- echo "$as_me:2854: checking for libwcs/wcs.h" >&5
+-echo $ECHO_N "checking for libwcs/wcs.h... $ECHO_C" >&6
++ echo "$as_me:2854: checking for wcs.h" >&5
++echo $ECHO_N "checking for wcs.h... $ECHO_C" >&6
+ if test "${ac_cv_header_libwcs_wcs_h+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ cat >conftest.$ac_ext <<_ACEOF
+ #line 2860 "configure"
+ #include "confdefs.h"
+-#include <libwcs/wcs.h>
++#include <wcs.h>
+ _ACEOF
+ if { (eval echo "$as_me:2864: \"$ac_cpp conftest.$ac_ext\"") >&5
+ (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+diff -Nur ../original/ccc/src/aXe_TEST.c ./ccc/src/aXe_TEST.c
+--- ../original/ccc/src/aXe_TEST.c 2013-03-14 12:47:20.000000000 -0300
++++ ./ccc/src/aXe_TEST.c 2016-12-29 13:12:38.117460090 -0300
+@@ -22,7 +22,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <fitsio.h>
+-#include "libwcs/wcs.h"
++#include "wcs.h"
+
+ struct WorldCoor *get_wcs_l(char filename[], int hdunum);
+ char *get_fits_header_l(char filename[], int hdunum);
+diff -Nur ../original/ccc/src/spc_CD.h ./ccc/src/spc_CD.h
+--- ../original/ccc/src/spc_CD.h 2013-03-14 12:47:20.000000000 -0300
++++ ./ccc/src/spc_CD.h 2016-12-29 13:12:50.853490074 -0300
+@@ -11,7 +11,7 @@
+ #include <fitsio.h>
+ #include <string.h>
+ #include "aXe_grism.h"
+-#include "libwcs/wcs.h"
++#include "wcs.h"
+ #include "aXe_errors.h"
+
+
diff --git a/iraf.axe/bld.bat b/iraf.axe/bld.bat
new file mode 100644
index 0000000..fa5316a
--- /dev/null
+++ b/iraf.axe/bld.bat
@@ -0,0 +1,3 @@
+
+echo Not supported on Windows
+exit 1 \ No newline at end of file
diff --git a/iraf.axe/build.sh b/iraf.axe/build.sh
new file mode 100644
index 0000000..c55d286
--- /dev/null
+++ b/iraf.axe/build.sh
@@ -0,0 +1,16 @@
+# Install aXe binaries into STSDAS in the same way as the Ureka pkg-install:
+
+cd ccc
+
+./configure --prefix="$PREFIX" --with-cfitsio-prefix="$PREFIX" \
+ --with-wcstools-prefix="$PREFIX/lib" --build=x86 \
+ --with-gsl-prefix="$PREFIX" || exit 1
+
+make || exit 1
+
+# Creating a dummy STSDAS directory avoids having IRAF as a heavyweight build
+# dependency when it's not needed (at the cost of this script having to know
+# the IRAF directory structure in the env, but that's not likely to change):
+stdir=$PREFIX/iraf_extern/stsdas
+mkdir -p "$stdir/bin" && cp -p bin/* "$stdir/bin/" || exit 1
+
diff --git a/iraf.axe/meta.yaml b/iraf.axe/meta.yaml
new file mode 100644
index 0000000..67881b4
--- /dev/null
+++ b/iraf.axe/meta.yaml
@@ -0,0 +1,31 @@
+# This is not really an IRAF package per se, but is called "iraf.axe" because
+# it's an add-on for STSDAS and the intention is to distribute a stand-alone
+# version later as a separate package (presumably "axe").
+about:
+ home: http://axe-info.stsci.edu
+ license: GPL
+ summary: STScI/STECF aXe add-on for the STSDAS IRAF package
+build:
+ binary_relocation: True
+ number: '0'
+package:
+ name: iraf.axe
+ version: "2.5"
+source:
+ fn: aXeTZ-2.5.tar.gz
+ url: http://astroconda-source:4440/aXeTZ-2.5.tar.gz
+ patches:
+ - ac.iraf.axe.patch # patched to find include files for recent wcstools
+requirements:
+ build:
+ # is pkgconfig also needed here, as per Joe's email?
+ - cfitsio >=3.35
+ - wcstools >=3.8.4
+ - gsl >=1.14
+ run:
+ - iraf !=2.16.1,>=2.16.UR # need dir struct associated with this IRAF ver
+ - iraf.stsdas
+ - cfitsio >=3.35
+ - wcstools >=3.8.4
+ - gsl >=1.14
+