diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-21 15:42:27 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-21 15:42:27 -0400 |
commit | 7e99bb54098d675212296604a84a03a4c18af9ab (patch) | |
tree | 0ec5a01049bf38aa738146ac9d00e27f9adf27be | |
parent | 99af88729778e202ee8d1c3b1e83d70f2dae88a8 (diff) | |
download | cbc-recipes-7e99bb54098d675212296604a84a03a4c18af9ab.tar.gz |
It lives...
-rw-r--r-- | iraf-all/iraf.ini | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/iraf-all/iraf.ini b/iraf-all/iraf.ini new file mode 100644 index 0000000..667c26e --- /dev/null +++ b/iraf-all/iraf.ini @@ -0,0 +1,125 @@ +[package] +name: iraf +version: 2.16.1 + +[about] +home: http://iraf.noao.edu +license: MIT +summary: NOAO Image Reduction and Analysis Facility + +[source] +# Remember, always 32-bit! Now feast upon my tears. +#fn: ${package:name}.lnux.x86.fixup.tar.gz +#url: ${cbc_cgi:url}/${fn} +#git_url: ssh://git@bitbucket.org/jhunkeler/${package:name}-all +git_url: file:///users/shared/${package:name}-metal + + +[build] +number: 1 +#detect_binary_files_with_prefix: True + +[requirements] +build: + # Luck + purge_path +run: + purge_path + # Gallant effort + +[cbc_build] +linux: + set -x + #always 32-bit... always + export IRAFARCH='' + export target=`uname`.32 + case "$$target" in + Linux.32) + export IRAFARCH='linux' + export CFLAGS="-m32" + export LDFLAGS="-m32" + ;; + Darwin.32) + export IRAFARCH='macosx' + export CFLAGS="-m32 -arch i386" + export LDFLAGS="-m32 -arch i386" + ( cd vendor/x11iraf && ln -sf bin.macintel bin.macosx ) + ( cd vendor/x11iraf && ln -sf lib.macintel lib.macosx ) + ;; + *) + echo "UNSUPPORTED ARCHITECTURE (64-bit disabled, by the way...)" + exit 1 + ;; + esac + + 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 "{}" + + export TERM=xterm + export PATH=`purge_path /sw` + export iraf=$$PREFIX/iraf/ + export FAKEHOME=$$PREFIX/iraf-runtime + + mkdir -p $$iraf + mkdir -p $$FAKEHOME/{bin,cache,imdir} + rsync -aH `pwd`/ $$iraf + cd $$iraf + + yes '' | ./install_not_broken \ + --bindir $$FAKEHOME/bin \ + --cache $$FAKEHOME/cache \ + --imdir $$FAKEHOME/imdir \ + --root $$iraf \ + --mach macosx + + find . -lname '/iraf/iraf/*' \ + -exec sh -c 'echo Re-linking "$$0" ;\ + ln -snf "$$(readlink "$$0" \ + | sed -e "s|/iraf/iraf|../..|" -e "s|/as/|/as.$$IRAFARCH/|")" "$$0"' {} \; + + gzip -9 unix/bin.macosx/sgi2ueps.e + rm -f unix/bin.macosx/sgi2ueps.e + + gzip -9 unix/bin.macosx/sgi2uapl.e + rm -f unix/bin.macosx/sgi2uapl.e + + mkdir -p $$PREFIX/etc/conda/{activate.d,deactivate.d} + + echo " + export iraf=$$PREFIX/iraf/ + export IRAFARCH=$$IRAFARCH + source \$$iraf/unix/hlib/irafuser.sh + export PATH="\$$iraf/../iraf-runtime/bin:\$$iraf/bin.\$$IRAFARCH:\$$PATH" + " > $$PREFIX/etc/conda/activate.d/iraf.sh + + echo ' + export PATH=`purge_path iraf-runtime` + export PATH=`purge_path $$iraf/bin.$$IRAFARCH:$$PATH` + unset iraf + unset IRAFARCH + unset IMTOOLRC + unset F2C + unset F77 + unset HSI_LIBS + unset hbin + unset hlib + unset host + unset CC + unset CC_f2c + unset HSI_CF + unset HSI_F77LIBS + unset HSI_FF + unset HSI_LF + unset HSI_LFLAGS + unset HSI_OSLIBS + unset HSI_XF + unset MACH + unset OS_MACH + unset RANLIB + unset hostid + unset tmp + unset GVBINDIR + ' > $$PREFIX/etc/conda/deactivate.d/iraf.sh + +windows: + echo Not supported on Windows |