diff options
author | James Turner <jturner@gemini.edu> | 2016-12-06 11:14:50 -0500 |
---|---|---|
committer | James Turner <jturner@gemini.edu> | 2016-12-06 11:14:50 -0500 |
commit | 2bf58ad2e6d7c8cd96cc781d9dd9bdc0fa9fa85a (patch) | |
tree | 7bf1750b8dd286f9fe1f8726bce97245327ae8b9 /iraf | |
parent | 14555b74aedd7fb96c37a32fecb9b9668c1ba425 (diff) | |
download | astroconda-iraf-2bf58ad2e6d7c8cd96cc781d9dd9bdc0fa9fa85a.tar.gz |
Rename iraf-core back to iraf after eliminating need for a separate help pkg.
Diffstat (limited to 'iraf')
-rw-r--r-- | iraf/bld.bat | 3 | ||||
-rw-r--r-- | iraf/build.sh | 44 | ||||
-rw-r--r-- | iraf/meta.yaml | 22 |
3 files changed, 69 insertions, 0 deletions
diff --git a/iraf/bld.bat b/iraf/bld.bat new file mode 100644 index 0000000..fa5316a --- /dev/null +++ b/iraf/bld.bat @@ -0,0 +1,3 @@ + +echo Not supported on Windows +exit 1
\ No newline at end of file diff --git a/iraf/build.sh b/iraf/build.sh new file mode 100644 index 0000000..0ce0b6e --- /dev/null +++ b/iraf/build.sh @@ -0,0 +1,44 @@ +set -x + +# Drop extraneous conda-set environment variables +unset ARCH CFLAGS CXXFLAGS LDFLAGS MACOSX_DEPLOYMENT_TARGET + +# Complement build script +export TERM=xterm + +# Execute build +printenv +if ! ./build 32; then + echo "The main IRAF build failed" 2>&1 + exit 1 +fi + +echo + +# Install into PREFIX +if ! ./install $PREFIX; then + echo "IRAF installation into $PREFIX failed" 2>&1 + exit 1 +fi + +# "Register" the IRAF environment setup with conda activate: +mkdir -p $PREFIX/etc/conda/{activate.d,deactivate.d} + +echo ' +if [ -n "$CONDA_PREFIX" ]; then + source $CONDA_PREFIX/bin/setup_iraf.sh +else + source $CONDA_ENV_PATH/bin/setup_iraf.sh +fi +' > $PREFIX/etc/conda/activate.d/iraf.sh +chmod 755 $PREFIX/etc/conda/activate.d/iraf.sh + +echo ' +if [ -n "$CONDA_PREFIX" ]; then + source $CONDA_PREFIX/bin/forget_iraf.sh +else + source $CONDA_ENV_PATH/bin/forget_iraf.sh +fi +' > $PREFIX/etc/conda/deactivate.d/iraf.sh +chmod 755 $PREFIX/etc/conda/deactivate.d/iraf.sh + diff --git a/iraf/meta.yaml b/iraf/meta.yaml new file mode 100644 index 0000000..83dd666 --- /dev/null +++ b/iraf/meta.yaml @@ -0,0 +1,22 @@ +about: + home: http://iraf.noao.edu + license: MIT (and third-party licenses) + summary: NOAO Image Reduction and Analysis Facility +build: + binary_relocation: False # [osx] + detect_binary_files_with_prefix: False + # (if binary relocation is problematic, add "ignore_prefix_files" below) + rpaths: + - lib32/ + number: '0' +package: + name: iraf + version: "2.16.UR" +requirements: + build: + - iraf-os-libs # [linux] + run: + - iraf-os-libs # [linux] +source: + svn_url: https://aeon.stsci.edu/ssb/svn/u-rel/iraf-2.16/trunk + |