From deeb280f2673626d0ca8147bb8b6d80f6b82df87 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 12 Dec 2016 16:41:12 -0300 Subject: Add RVSAO, SONG & SQIID IRAF packages (with small patches to fix things that were also broken in Ureka). The SONG package is missing a dependency that isn't in Ureka or AstroConda and lives in the "obsolete" directory on the IRAF FTP site. --- iraf.song/bld.bat | 2 ++ iraf.song/build.sh | 8 ++++++++ iraf.song/meta.yaml | 26 ++++++++++++++++++++++++++ iraf.song/post-link.sh | 3 +++ iraf.song/pre-unlink.sh | 1 + iraf.song/ur_extern.pkg | 6 ++++++ iraf.song/ur_mkpkg_cmd | 1 + iraf.song/ur_mkpkg_patterns | 1 + 8 files changed, 48 insertions(+) create mode 100644 iraf.song/bld.bat create mode 100644 iraf.song/build.sh create mode 100644 iraf.song/meta.yaml create mode 100644 iraf.song/post-link.sh create mode 100644 iraf.song/pre-unlink.sh create mode 100644 iraf.song/ur_extern.pkg create mode 100644 iraf.song/ur_mkpkg_cmd create mode 100644 iraf.song/ur_mkpkg_patterns (limited to 'iraf.song') diff --git a/iraf.song/bld.bat b/iraf.song/bld.bat new file mode 100644 index 0000000..e1aca7a --- /dev/null +++ b/iraf.song/bld.bat @@ -0,0 +1,2 @@ +echo Not supported on Windows +exit 1 diff --git a/iraf.song/build.sh b/iraf.song/build.sh new file mode 100644 index 0000000..2353907 --- /dev/null +++ b/iraf.song/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.song/meta.yaml b/iraf.song/meta.yaml new file mode 100644 index 0000000..4a396f9 --- /dev/null +++ b/iraf.song/meta.yaml @@ -0,0 +1,26 @@ +about: + home: http://iraf.noao.edu/ + license: IRAF MIT/X11 variant + summary: SONG package for IRAF +build: + binary_relocation: False + number: '0' + # These must be copied from astroconda-iraf-helpers, since conda 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.song + version: "2013_01_02" +source: + fn: song-universal-2013-01-02.tar.gz + url: http://astroconda-source:4440/song-universal-2013-01-02.tar.gz +requirements: + build: + - astroconda-iraf-helpers + - iraf !=2.16.1,>=2.16.UR + run: + - iraf !=2.16.1,>=2.16.UR + - iraf.rvx # required but currently doesn't exist in AstroConda! + diff --git a/iraf.song/post-link.sh b/iraf.song/post-link.sh new file mode 100644 index 0000000..14e56cf --- /dev/null +++ b/iraf.song/post-link.sh @@ -0,0 +1,3 @@ +# Call a common script that updates extern.pkg for the new IRAF package: + +"$PREFIX/bin/ac_config_iraf_pkg" song diff --git a/iraf.song/pre-unlink.sh b/iraf.song/pre-unlink.sh new file mode 100644 index 0000000..5499b92 --- /dev/null +++ b/iraf.song/pre-unlink.sh @@ -0,0 +1 @@ +"$PREFIX/bin/ac_config_iraf_pkg" --remove song diff --git a/iraf.song/ur_extern.pkg b/iraf.song/ur_extern.pkg new file mode 100644 index 0000000..a3aaafc --- /dev/null +++ b/iraf.song/ur_extern.pkg @@ -0,0 +1,6 @@ +# ftp://iraf.noao.edu/iraf/v216/REPO +reset song = UR_VDIR +task song.pkg = song$song.cl +reset helpdb= ( envget("helpdb") + ",song$lib/helpdb.mip" ) +reset aproposdb= ( envget("aproposdb") + ",song$lib/apropos.db" ) + diff --git a/iraf.song/ur_mkpkg_cmd b/iraf.song/ur_mkpkg_cmd new file mode 100644 index 0000000..24d2743 --- /dev/null +++ b/iraf.song/ur_mkpkg_cmd @@ -0,0 +1 @@ +echo "Nothing to do!" diff --git a/iraf.song/ur_mkpkg_patterns b/iraf.song/ur_mkpkg_patterns new file mode 100644 index 0000000..ecbb459 --- /dev/null +++ b/iraf.song/ur_mkpkg_patterns @@ -0,0 +1 @@ +^Nothing to do* -- cgit