diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2016-06-29 12:41:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-29 12:41:15 -0400 |
commit | a9302aab5aa412ca9542cdcb59dfd8684f44bca4 (patch) | |
tree | be7f76a1f20f5b666d5c20e8144daddd36faad3c | |
parent | ef96a277af7583eceeea6083e199b7026496b825 (diff) | |
download | astroconda-contrib-a9302aab5aa412ca9542cdcb59dfd8684f44bca4.tar.gz |
Update iraf recipe to handle conda >4.2.1 (#22)
-rw-r--r-- | iraf/build.sh | 20 | ||||
-rw-r--r-- | iraf/meta.yaml | 2 |
2 files changed, 15 insertions, 7 deletions
diff --git a/iraf/build.sh b/iraf/build.sh index 43aa71f..ce05d24 100644 --- a/iraf/build.sh +++ b/iraf/build.sh @@ -105,6 +105,10 @@ sh -c 'file {} | grep broken | cut -f 1 -d :' | xargs rm -f mkdir -p $PREFIX/etc/conda/{activate.d,deactivate.d} echo " +# Workaround for conda >4.1.2 +if [[ -n \$CONDA_PREFIX ]]; then + export CONDA_ENV_PATH=\$CONDA_PREFIX +fi export IRAFARCH=$IRAFARCH export iraf=\$CONDA_ENV_PATH/iraf/ export MACH=\$IRAFARCH @@ -119,12 +123,12 @@ export F2C=\$hbin/f2c.e export F77=\$hbin/f77.sh export RANLIB=ranlib -case "$IRAFARCH" in +case "\$IRAFARCH" in macosx) -export HSI_CF=\"-O -DMACOSX -w -Wunused -arch i386 -m32 -mmacosx-version-min=10.4\" -export HSI_XF=\"-Inolibc -/DMACOSX -w -/Wunused -/m32 -/arch -//i386 -/mmacosx-version-min=10.4\" -export HSI_FF=\"-O -arch i386 -m32 -DBLD_KERNEL -mmacosx-version-min=10.4\" -export HSI_LF=\"-arch i386 -m32 -mmacosx-version-min=10.4\" +export HSI_CF=\"-I\$iraf/include -O -DMACOSX -w -Wunused -arch i386 -m32 -mmacosx-version-min=10.4\" +export HSI_XF=\"-I\$iraf/include -Inolibc -/DMACOSX -w -/Wunused -/m32 -/arch -//i386 -/mmacosx-version-min=10.4\" +export HSI_FF=\"-I\$iraf/include -O -arch i386 -m32 -DBLD_KERNEL -mmacosx-version-min=10.4\" +export HSI_LF=\"-I\$iraf/include -arch i386 -m32 -mmacosx-version-min=10.4\" ;; linux) @@ -156,6 +160,10 @@ export UR_DIR_PKG=\$UR_DIR/variants/\$UR_VARIANT/ chmod 755 $PREFIX/etc/conda/activate.d/iraf.sh echo ' +if [[ -n \$CONDA_PREFIX ]]; then + unset CONDA_ENV_PATH +fi + unset iraf unset IRAFARCH unset IMTOOLRC @@ -187,4 +195,4 @@ unset UR_OS unset UR_TMP unset UR_DIR_PKG ' > $PREFIX/etc/conda/deactivate.d/iraf.sh -chmod 755 $PREFIX/etc/conda/deactivate.d/iraf.sh
\ No newline at end of file +chmod 755 $PREFIX/etc/conda/deactivate.d/iraf.sh diff --git a/iraf/meta.yaml b/iraf/meta.yaml index 39c05dc..610850e 100644 --- a/iraf/meta.yaml +++ b/iraf/meta.yaml @@ -5,7 +5,7 @@ about: build: binary_relocation: False [osx] detect_binary_files_with_prefix: False [osx] - number: '0' + number: '1' package: name: iraf version: 2.16.1 |