diff options
author | Joseph Hunkeler <jhunk@stsci.edu> | 2016-01-08 15:17:32 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunk@stsci.edu> | 2016-01-08 15:17:32 -0500 |
commit | befea24fdd315e070434587cd2429ae214490667 (patch) | |
tree | 884a75dee32eff3e8e73758a36c50bb4e7e4e32a | |
parent | 9492b8133321abf7963fe0d0453007f79e714e07 (diff) | |
download | cbc-recipes-befea24fdd315e070434587cd2429ae214490667.tar.gz |
Minor improvements (despite almost ditching this)
-rw-r--r-- | iraf/iraf.ini | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/iraf/iraf.ini b/iraf/iraf.ini index b607c23..5e23f1b 100644 --- a/iraf/iraf.ini +++ b/iraf/iraf.ini @@ -15,7 +15,7 @@ git_url: ssh://git@bitbucket.org/jhunkeler/${package:name}-combined [build] -number: 5 +number: 6 #detect_binary_files_with_prefix: True [requirements] @@ -31,6 +31,7 @@ run: [cbc_build] linux: set -x + #always 32-bit... always export IRAFARCH='' export target=`uname`.32 @@ -56,6 +57,12 @@ linux: echo "Purging non-architecture files from distribution:" find \( -name "bin.*" \( -not -name "bin.$$IRAFARCH" \) -and \( -not -name "bin.generic" \) -and -not -path "*vendor/x11iraf/*" \) | xargs -n1 -I{} rm -rf "{}" + echo "Fixing c headers..." + find . -type f -name "*.h" | xargs sed -i -e "s|/iraf/iraf/|$$iraf|" + + echo "Fixing c sources..." + find . -type f -name "*.c" | xargs sed -i -e "s|/iraf/iraf/|$$iraf|" + export TERM=xterm export PATH=`purge_path /sw` export iraf=$$PREFIX/iraf/ @@ -66,8 +73,14 @@ linux: rsync -aH `pwd`/ $$iraf cd $$iraf + # drop git directory + echo "Removing git directory..." + rm -rf .git + echo "Fixing bin directory designation" ( rm -f bin && ln -s -f "bin.$$IRAFARCH" bin ) + ( cd unix && rm -f bin && ln -s -f "bin.$$IRAFARCH" bin ) + ( cd unix && rm -f as && ln -s -f "as.$$IRAFARCH" as ) sed -i -e 's|$${HOME}/.iraf/|$${iraf_runtime} -I$${iraf}/include|g' $$iraf/unix/hlib/irafuser.*sh @@ -108,6 +121,7 @@ linux: export PATH="\$$iraf_runtime/bin:\$$PATH" export PATH="\$$iraf/bin.\$$IRAFARCH:\$$PATH" " > $$PREFIX/etc/conda/activate.d/iraf.sh + chmod 755 $$PREFIX/etc/conda/activate.d/iraf.sh echo ' export PATH=`purge_path $$iraf-runtime` @@ -138,6 +152,7 @@ linux: unset tmp unset GVBINDIR ' > $$PREFIX/etc/conda/deactivate.d/iraf.sh + chmod 755 $$PREFIX/etc/conda/deactivate.d/iraf.sh windows: echo Not supported on Windows |