diff options
author | James E.H. Turner <jturner@gemini.edu> | 2016-10-03 19:43:23 -0400 |
---|---|---|
committer | James E.H. Turner <jturner@gemini.edu> | 2016-10-03 19:43:23 -0400 |
commit | 43d8db3f431ce1dbd3a73e2359bddd503b54ac46 (patch) | |
tree | 1b3f83308dba8fcf18c82ea658c094995f65b3e2 | |
parent | a66143a3e1d020f1beb93ae3731ca2557a00f4c2 (diff) | |
download | astroconda-iraf-43d8db3f431ce1dbd3a73e2359bddd503b54ac46.tar.gz |
Add FITSUTIL IRAF package.
-rw-r--r-- | iraf.fitsutil/ac.iraf.fitsutil.patch | 17 | ||||
-rw-r--r-- | iraf.fitsutil/bld.bat | 3 | ||||
-rw-r--r-- | iraf.fitsutil/build.sh | 8 | ||||
-rw-r--r-- | iraf.fitsutil/meta.yaml | 27 | ||||
-rw-r--r-- | iraf.fitsutil/post-link.sh | 4 | ||||
-rw-r--r-- | iraf.fitsutil/ur_extern.pkg | 6 | ||||
-rw-r--r-- | iraf.fitsutil/ur_manifest | 7 | ||||
-rw-r--r-- | iraf.fitsutil/ur_mkpkg_patterns | 24 |
8 files changed, 96 insertions, 0 deletions
diff --git a/iraf.fitsutil/ac.iraf.fitsutil.patch b/iraf.fitsutil/ac.iraf.fitsutil.patch new file mode 100644 index 0000000..1831961 --- /dev/null +++ b/iraf.fitsutil/ac.iraf.fitsutil.patch @@ -0,0 +1,17 @@ +diff -ur ../original/lib/cfitsio/mkpkg ./lib/cfitsio/mkpkg +--- ../original/lib/cfitsio/mkpkg 2011-03-28 02:28:46.000000000 -0300 ++++ ./lib/cfitsio/mkpkg 2016-08-10 17:47:41.000000000 -0300 +@@ -8,10 +8,10 @@ + ; + + libcfitsio.a: +- # cheat and use Makefile.... +- !(CFLAGS='$(HSI_CF) $(HSI_LF)' ; ./configure) ++ # cheat and use Makefile.... ++ !sh -c 'CFLAGS="$(HSI_CF) $(HSI_LF)" ./configure' + !make + !make fpack funpack +- !/bin/cp libcfitsio.a ../ ++ !/bin/cp libcfitsio.a ../../bin/ + !/bin/cp fpack funpack ../../bin/ + ; diff --git a/iraf.fitsutil/bld.bat b/iraf.fitsutil/bld.bat new file mode 100644 index 0000000..fa5316a --- /dev/null +++ b/iraf.fitsutil/bld.bat @@ -0,0 +1,3 @@ + +echo Not supported on Windows +exit 1
\ No newline at end of file diff --git a/iraf.fitsutil/build.sh b/iraf.fitsutil/build.sh new file mode 100644 index 0000000..2353907 --- /dev/null +++ b/iraf.fitsutil/build.sh @@ -0,0 +1,8 @@ +# Configure the environment for IRAF, since conda build appears not to do +# "source activate" after installing dependencies (this would instead need to +# eval $PREFIX/iraf/unix/hlib/setup directly if "--level" needs specifying): +. setup_iraf.sh + +# Build from source in envs/_build (using build script from astroconda-utils): +ac_build_iraf_pkg + diff --git a/iraf.fitsutil/meta.yaml b/iraf.fitsutil/meta.yaml new file mode 100644 index 0000000..6c6911e --- /dev/null +++ b/iraf.fitsutil/meta.yaml @@ -0,0 +1,27 @@ +about: + home: http://iraf.noao.edu/ + license: IRAF MIT/X11 variant, CFITSIO government notice & GPL + summary: FITSUTIL package for IRAF +build: + binary_relocation: False + number: '0' + # These must be copied from astroconda-build-utils, since conda unhelpfully + # disallows the post-install step from depending on other packages: + always_include_files: + - bin/ac_config_iraf_pkg + - bin/ac_update_extern_pkg +package: + name: iraf.fitsutil + version: 2011_02_22 +source: + fn: fitsutil-src-2011-02-22.tar.gz + url: http://astroconda-source:4440/fitsutil-src-2011-02-22.tar.gz + patches: + - ac.iraf.fitsutil.patch +requirements: + build: + - astroconda-build-utils + - iraf !=2.16.1,>=2.16.UR + run: + - iraf !=2.16.1,>=2.16.UR + diff --git a/iraf.fitsutil/post-link.sh b/iraf.fitsutil/post-link.sh new file mode 100644 index 0000000..fb060b5 --- /dev/null +++ b/iraf.fitsutil/post-link.sh @@ -0,0 +1,4 @@ +# Call a common script that updates extern.pkg for the new IRAF package: + +"$PREFIX/bin/ac_config_iraf_pkg" fitsutil + diff --git a/iraf.fitsutil/ur_extern.pkg b/iraf.fitsutil/ur_extern.pkg new file mode 100644 index 0000000..9d314ee --- /dev/null +++ b/iraf.fitsutil/ur_extern.pkg @@ -0,0 +1,6 @@ +# ftp://iraf.noao.edu/iraf/v215/REPO +reset fitsutil = UR_VDIR +task fitsutil.pkg = fitsutil$fitsutil.cl +reset helpdb= ( envget("helpdb") + ",fitsutil$lib/helpdb.mip" ) +reset aproposdb= ( envget("aproposdb") + ",fitsutil$lib/apropos.db" ) + diff --git a/iraf.fitsutil/ur_manifest b/iraf.fitsutil/ur_manifest new file mode 100644 index 0000000..be6c519 --- /dev/null +++ b/iraf.fitsutil/ur_manifest @@ -0,0 +1,7 @@ +bin/fgread.e +bin/fgwrite.e +bin/fpack +bin/funpack +bin/libmef.a +bin/sum32 +bin/x_fitsutil.e diff --git a/iraf.fitsutil/ur_mkpkg_patterns b/iraf.fitsutil/ur_mkpkg_patterns new file mode 100644 index 0000000..dad5ca8 --- /dev/null +++ b/iraf.fitsutil/ur_mkpkg_patterns @@ -0,0 +1,24 @@ +^gcc: -headerpad_max_install_names: linker input file unused because linking not done +^cfitsio: == Adding +^cfitsio: == Using +^[ ]*Congratulations +^[ ]*You may want +^!*make +^drvrfile[.]c: In function .stream_open.: +^drvrfile[.]c: In function .stream_create.: +^[A-Za-z0-9_-]*[.]c:[0-9][0-9]*: warning: +^ar[ ] +^fpackutil.o: In function .fp_pack_hdu': +^[ ]*yes[ ]*$ +^[ ]*done[ ]*$ +^no[ ]*$ +^eval_f.c: In function .parse_data.: +^fpack.c: In function .fp_get_param.: +^fpackutil.c: In function .fp_init.: +^fpackutil.c: In function .fp_info_hdu.: +^fpackutil.c: In function .fp_test.: +^funpack.c: In function .fu_get_param.: +^!sh -c +^fpackutil.c: +^configure:.* cfitsio:.*No acceptable Fortran compiler +^configure:.* cfitsio:.*Adding wrapper support |