aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E.H. Turner <jturner@gemini.edu>2016-10-17 15:11:06 -0400
committerJames E.H. Turner <jturner@gemini.edu>2016-10-17 15:11:06 -0400
commit191b5a1b3216f5f6910a1dbf890e867b3e288266 (patch)
treea47b1e12914b8f6e1ef9689fc009586baa1c9e4c
parentbac65ee7b0f73531047e395bd2ade806c2bfd208 (diff)
parentf78a281784e8d1ab66a32fffdb19d3de50cf5c69 (diff)
downloadastroconda-iraf-191b5a1b3216f5f6910a1dbf890e867b3e288266.tar.gz
Merge selected recipes from iraf-build-james branch of astroconda-contrib
-rw-r--r--astroconda-iraf-helpers/bld.bat3
-rw-r--r--astroconda-iraf-helpers/build.sh4
-rw-r--r--astroconda-iraf-helpers/meta.yaml18
-rw-r--r--iraf-help/bld.bat3
-rw-r--r--iraf-help/build.sh14
-rw-r--r--iraf-help/meta.yaml16
-rw-r--r--iraf-x11/bld.bat3
-rw-r--r--iraf-x11/build.sh19
-rw-r--r--iraf-x11/meta.yaml19
-rw-r--r--iraf.fitsutil/ac.iraf.fitsutil.patch17
-rw-r--r--iraf.fitsutil/bld.bat3
-rw-r--r--iraf.fitsutil/build.sh8
-rw-r--r--iraf.fitsutil/meta.yaml27
-rw-r--r--iraf.fitsutil/post-link.sh4
-rw-r--r--iraf.fitsutil/ur_extern.pkg6
-rw-r--r--iraf.fitsutil/ur_manifest7
-rw-r--r--iraf.fitsutil/ur_mkpkg_patterns24
-rw-r--r--iraf.gemini/ac.iraf.gemini.patch39
-rw-r--r--iraf.gemini/bld.bat3
-rw-r--r--iraf.gemini/build.sh8
-rw-r--r--iraf.gemini/meta.yaml34
-rw-r--r--iraf.gemini/post-link.sh4
-rw-r--r--iraf.gemini/ur_extern.pkg6
-rw-r--r--iraf.gemini/ur_manifest10
-rw-r--r--iraf.gemini/ur_mkpkg_patterns1
-rw-r--r--iraf.stecf/bld.bat3
-rw-r--r--iraf.stecf/build.sh17
-rw-r--r--iraf.stecf/meta.yaml29
-rw-r--r--iraf.stecf/post-link.sh4
-rw-r--r--iraf.stecf/ur_extern.pkg7
-rw-r--r--iraf.stecf/ur_manifest4
-rw-r--r--iraf.stecf/ur_mkpkg_cmd21
-rw-r--r--iraf.stecf/ur_mkpkg_patterns60
-rw-r--r--iraf.stsdas/ac.iraf.stsci.patch100
-rw-r--r--iraf.stsdas/bld.bat3
-rw-r--r--iraf.stsdas/build.sh22
-rw-r--r--iraf.stsdas/meta.yaml29
-rw-r--r--iraf.stsdas/post-link.sh4
-rw-r--r--iraf.stsdas/ur_extern.pkg8
-rw-r--r--iraf.stsdas/ur_manifest91
-rw-r--r--iraf.stsdas/ur_mkpkg_cmd44
-rw-r--r--iraf.stsdas/ur_mkpkg_patterns60
-rw-r--r--iraf.tables/ac.iraf.stsci.patch100
-rw-r--r--iraf.tables/bld.bat3
-rw-r--r--iraf.tables/build.sh17
-rw-r--r--iraf.tables/meta.yaml27
-rw-r--r--iraf.tables/post-link.sh4
-rw-r--r--iraf.tables/ur_extern.pkg7
-rw-r--r--iraf.tables/ur_manifest11
-rw-r--r--iraf.tables/ur_mkpkg_cmd36
-rw-r--r--iraf.tables/ur_mkpkg_patterns58
-rw-r--r--iraf/bld.bat3
-rw-r--r--iraf/build.sh44
-rw-r--r--iraf/meta.yaml15
54 files changed, 1131 insertions, 0 deletions
diff --git a/astroconda-iraf-helpers/bld.bat b/astroconda-iraf-helpers/bld.bat
new file mode 100644
index 0000000..fa5316a
--- /dev/null
+++ b/astroconda-iraf-helpers/bld.bat
@@ -0,0 +1,3 @@
+
+echo Not supported on Windows
+exit 1 \ No newline at end of file
diff --git a/astroconda-iraf-helpers/build.sh b/astroconda-iraf-helpers/build.sh
new file mode 100644
index 0000000..7abeef0
--- /dev/null
+++ b/astroconda-iraf-helpers/build.sh
@@ -0,0 +1,4 @@
+# Copy scripts to the installation:
+dest="$PREFIX/bin"
+mkdir -p "$dest" && cp -p scripts/* "$dest/"
+
diff --git a/astroconda-iraf-helpers/meta.yaml b/astroconda-iraf-helpers/meta.yaml
new file mode 100644
index 0000000..6cbb845
--- /dev/null
+++ b/astroconda-iraf-helpers/meta.yaml
@@ -0,0 +1,18 @@
+about:
+ home: https://github.com/astroconda/astroconda-iraf-helpers
+ license: BSD
+ summary: Utilities to help build and install AstroConda packages
+build:
+ binary_relocation: True
+ #detect_binary_files_with_prefix: False [osx]
+ number: '0'
+package:
+ name: astroconda-iraf-helpers
+ version: "0.1"
+source:
+ git_url: https://github.com/astroconda/astroconda-iraf-helpers.git
+requirements:
+ run:
+ - iraf !=2.16.1,>=2.16.UR # conda oddly considers 2.16.1 > 2.16.UR/UR_2.16
+ - pyraf
+
diff --git a/iraf-help/bld.bat b/iraf-help/bld.bat
new file mode 100644
index 0000000..fa5316a
--- /dev/null
+++ b/iraf-help/bld.bat
@@ -0,0 +1,3 @@
+
+echo Not supported on Windows
+exit 1 \ No newline at end of file
diff --git a/iraf-help/build.sh b/iraf-help/build.sh
new file mode 100644
index 0000000..4ff47c8
--- /dev/null
+++ b/iraf-help/build.sh
@@ -0,0 +1,14 @@
+# 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
+
+logname=help_log
+
+make_iraf_help iraf > $logname 2>&1
+make_iraf_help noao >> $logname 2>&1
+make_iraf_help color >> $logname 2>&1
+make_iraf_help vol >> $logname 2>&1
+
+cp -p $logname "$PREFIX/iraf/"
+
diff --git a/iraf-help/meta.yaml b/iraf-help/meta.yaml
new file mode 100644
index 0000000..b6fad01
--- /dev/null
+++ b/iraf-help/meta.yaml
@@ -0,0 +1,16 @@
+about:
+ home: http://iraf.noao.edu
+ license: MIT (and third-party licenses)
+ summary: Core IRAF help & apropos databases (built separately)
+build:
+ binary_relocation: False
+ number: '0'
+package:
+ name: iraf-help
+ version: "2.16.UR"
+requirements:
+ build:
+ - astroconda-iraf-helpers # depends on PyRAF, hence why separate
+ - iraf !=2.16.1,>=2.16.UR
+ run:
+ - iraf !=2.16.1,>=2.16.UR
diff --git a/iraf-x11/bld.bat b/iraf-x11/bld.bat
new file mode 100644
index 0000000..fa5316a
--- /dev/null
+++ b/iraf-x11/bld.bat
@@ -0,0 +1,3 @@
+
+echo Not supported on Windows
+exit 1 \ No newline at end of file
diff --git a/iraf-x11/build.sh b/iraf-x11/build.sh
new file mode 100644
index 0000000..02f6592
--- /dev/null
+++ b/iraf-x11/build.sh
@@ -0,0 +1,19 @@
+# Drop extraneous conda-set environment variables
+unset ARCH CFLAGS CXXFLAGS LDFLAGS MACOSX_DEPLOYMENT_TARGET
+
+# Complement build script
+export TERM=xterm
+
+# Tell the build script where IRAF is (& it will then set up its environment)
+export iraf=$PREFIX/iraf/
+
+# Execute build
+printenv > build_log 2>&1
+./build 32 >> build_log 2>&1
+
+# Copy files into PREFIX
+mkdir -p $PREFIX/{bin,include,lib,share}
+./install.bin $PREFIX
+./install.lib $PREFIX
+./install.man $PREFIX/share
+
diff --git a/iraf-x11/meta.yaml b/iraf-x11/meta.yaml
new file mode 100644
index 0000000..4ccf72a
--- /dev/null
+++ b/iraf-x11/meta.yaml
@@ -0,0 +1,19 @@
+about:
+ home: http://iraf.noao.edu
+ license: MIT
+ summary: X11 support for IRAF
+build:
+ #binary_relocation: False [osx]
+ #detect_binary_files_with_prefix: False [osx]
+ number: '0'
+package:
+ name: iraf-x11
+ version: "2.0"
+requirements:
+ build:
+ - iraf !=2.16.1,>=2.16.UR
+ run:
+ - iraf !=2.16.1,>=2.16.UR
+source:
+ svn_url: https://aeon.stsci.edu/ssb/svn/u-rel/x11iraf/trunk/
+
diff --git a/iraf.fitsutil/ac.iraf.fitsutil.patch b/iraf.fitsutil/ac.iraf.fitsutil.patch
new file mode 100644
index 0000000..1831961
--- /dev/null
+++ b/iraf.fitsutil/ac.iraf.fitsutil.patch
@@ -0,0 +1,17 @@
+diff -ur ../original/lib/cfitsio/mkpkg ./lib/cfitsio/mkpkg
+--- ../original/lib/cfitsio/mkpkg 2011-03-28 02:28:46.000000000 -0300
++++ ./lib/cfitsio/mkpkg 2016-08-10 17:47:41.000000000 -0300
+@@ -8,10 +8,10 @@
+ ;
+
+ libcfitsio.a:
+- # cheat and use Makefile....
+- !(CFLAGS='$(HSI_CF) $(HSI_LF)' ; ./configure)
++ # cheat and use Makefile....
++ !sh -c 'CFLAGS="$(HSI_CF) $(HSI_LF)" ./configure'
+ !make
+ !make fpack funpack
+- !/bin/cp libcfitsio.a ../
++ !/bin/cp libcfitsio.a ../../bin/
+ !/bin/cp fpack funpack ../../bin/
+ ;
diff --git a/iraf.fitsutil/bld.bat b/iraf.fitsutil/bld.bat
new file mode 100644
index 0000000..fa5316a
--- /dev/null
+++ b/iraf.fitsutil/bld.bat
@@ -0,0 +1,3 @@
+
+echo Not supported on Windows
+exit 1 \ No newline at end of file
diff --git a/iraf.fitsutil/build.sh b/iraf.fitsutil/build.sh
new file mode 100644
index 0000000..2353907
--- /dev/null
+++ b/iraf.fitsutil/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.fitsutil/meta.yaml b/iraf.fitsutil/meta.yaml
new file mode 100644
index 0000000..b1d2114
--- /dev/null
+++ b/iraf.fitsutil/meta.yaml
@@ -0,0 +1,27 @@
+about:
+ home: http://iraf.noao.edu/
+ license: IRAF MIT/X11 variant, CFITSIO government notice & GPL
+ summary: FITSUTIL package for IRAF
+build:
+ binary_relocation: False
+ number: '0'
+ # These must be copied from astroconda-iraf-helpers, since conda unhelpfully
+ # 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.fitsutil
+ version: "2011_02_22"
+source:
+ fn: fitsutil-src-2011-02-22.tar.gz
+ url: http://astroconda-source:4440/fitsutil-src-2011-02-22.tar.gz
+ patches:
+ - ac.iraf.fitsutil.patch
+requirements:
+ build:
+ - astroconda-iraf-helpers
+ - iraf !=2.16.1,>=2.16.UR
+ run:
+ - iraf !=2.16.1,>=2.16.UR
+
diff --git a/iraf.fitsutil/post-link.sh b/iraf.fitsutil/post-link.sh
new file mode 100644
index 0000000..fb060b5
--- /dev/null
+++ b/iraf.fitsutil/post-link.sh
@@ -0,0 +1,4 @@
+# Call a common script that updates extern.pkg for the new IRAF package:
+
+"$PREFIX/bin/ac_config_iraf_pkg" fitsutil
+
diff --git a/iraf.fitsutil/ur_extern.pkg b/iraf.fitsutil/ur_extern.pkg
new file mode 100644
index 0000000..9d314ee
--- /dev/null
+++ b/iraf.fitsutil/ur_extern.pkg
@@ -0,0 +1,6 @@
+# ftp://iraf.noao.edu/iraf/v215/REPO
+reset fitsutil = UR_VDIR
+task fitsutil.pkg = fitsutil$fitsutil.cl
+reset helpdb= ( envget("helpdb") + ",fitsutil$lib/helpdb.mip" )
+reset aproposdb= ( envget("aproposdb") + ",fitsutil$lib/apropos.db" )
+
diff --git a/iraf.fitsutil/ur_manifest b/iraf.fitsutil/ur_manifest
new file mode 100644
index 0000000..be6c519
--- /dev/null
+++ b/iraf.fitsutil/ur_manifest
@@ -0,0 +1,7 @@
+bin/fgread.e
+bin/fgwrite.e
+bin/fpack
+bin/funpack
+bin/libmef.a
+bin/sum32
+bin/x_fitsutil.e
diff --git a/iraf.fitsutil/ur_mkpkg_patterns b/iraf.fitsutil/ur_mkpkg_patterns
new file mode 100644
index 0000000..dad5ca8
--- /dev/null
+++ b/iraf.fitsutil/ur_mkpkg_patterns
@@ -0,0 +1,24 @@
+^gcc: -headerpad_max_install_names: linker input file unused because linking not done
+^cfitsio: == Adding
+^cfitsio: == Using
+^[ ]*Congratulations
+^[ ]*You may want
+^!*make
+^drvrfile[.]c: In function .stream_open.:
+^drvrfile[.]c: In function .stream_create.:
+^[A-Za-z0-9_-]*[.]c:[0-9][0-9]*: warning:
+^ar[ ]
+^fpackutil.o: In function .fp_pack_hdu':
+^[ ]*yes[ ]*$
+^[ ]*done[ ]*$
+^no[ ]*$
+^eval_f.c: In function .parse_data.:
+^fpack.c: In function .fp_get_param.:
+^fpackutil.c: In function .fp_init.:
+^fpackutil.c: In function .fp_info_hdu.:
+^fpackutil.c: In function .fp_test.:
+^funpack.c: In function .fu_get_param.:
+^!sh -c
+^fpackutil.c:
+^configure:.* cfitsio:.*No acceptable Fortran compiler
+^configure:.* cfitsio:.*Adding wrapper support
diff --git a/iraf.gemini/ac.iraf.gemini.patch b/iraf.gemini/ac.iraf.gemini.patch
new file mode 100644
index 0000000..297c7b8
--- /dev/null
+++ b/iraf.gemini/ac.iraf.gemini.patch
@@ -0,0 +1,39 @@
+diff -ur ../original/gemini.cl ./gemini.cl
+--- ../original/gemini.cl 2015-11-30 20:26:51.000000000 -0300
++++ ./gemini.cl 2016-10-03 21:17:44.000000000 -0300
+@@ -23,7 +23,9 @@
+ # Dec 7, 2015 KL Release v1.13.1
+ #
+ # The latest version of the Gemini IRAF package is only compatible with
+-# versions of IRAF between v2.14.1 and v2.16 in Ureka
++# versions of IRAF between v2.14.1-v2.15.1a and v2.16 in Ureka or Astroconda
++# -- but that requirement is enforced by installing as a conda package, so the
++# version-check logic has been removed here (avoiding annoying pauses):
+ if (defpar ("release")) {
+ if (release >= "2.16") {
+ # There appear to be several issues related to the new image template
+@@ -31,24 +33,7 @@
+ if (defvar("use_new_imt")) {
+ set use_new_imt = "no"
+ }
+- if (!access("iraf$../bin/ur-setup-real")) {
+- printf ("WARNING: The Gemini IRAF package is not compatible \n")
+- printf (" with IRAF v2.16, unless installed using Ureka\n")
+- printf ("Tested with IRAF 2.16 from Ureka\n")
+- sleep 10
+- }
+- } else if ((release < "2.14.1") || (release > "2.15.1a")) {
+- printf ("WARNING: The Gemini IRAF package is only compatible with\n")
+- printf (" versions of IRAF between v2.14.1 and v2.15.1a\n")
+- printf (" and v2.16 in Ureka\n")
+- printf ("Tested with IRAF 2.16 from Ureka\n")
+- sleep 10
+ }
+-} else {
+- printf ("WARNING: The Gemini IRAF package is only compatible with\n")
+- printf (" versions of IRAF v2.14.1 and v2.16 in Ureka\n")
+- printf ("Tested with IRAF 2.16 from Ureka\n")
+- sleep 10
+ }
+ ;
+
diff --git a/iraf.gemini/bld.bat b/iraf.gemini/bld.bat
new file mode 100644
index 0000000..fa5316a
--- /dev/null
+++ b/iraf.gemini/bld.bat
@@ -0,0 +1,3 @@
+
+echo Not supported on Windows
+exit 1 \ No newline at end of file
diff --git a/iraf.gemini/build.sh b/iraf.gemini/build.sh
new file mode 100644
index 0000000..2353907
--- /dev/null
+++ b/iraf.gemini/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.gemini/meta.yaml b/iraf.gemini/meta.yaml
new file mode 100644
index 0000000..9ae937d
--- /dev/null
+++ b/iraf.gemini/meta.yaml
@@ -0,0 +1,34 @@
+about:
+ home: http://www.gemini.edu/sciops/data-and-results/processing-software
+ license: Fee-free redistribution only (& 3rd-party non-commercial licenses)
+ license_file: COPYRIGHT
+ summary: Gemini IRAF package
+build:
+ binary_relocation: False
+ number: '0'
+ # These must be copied from astroconda-iraf-helpers, since conda unhelpfully
+ # 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.gemini
+ version: "1.13.1"
+source:
+ fn: gemini_v1131_for_iraf_2.16.tar.gz
+ url: http://astroconda-source:4440/gemini_v1131_for_iraf_2.16.tar.gz
+ patches:
+ - ac.iraf.gemini.patch
+requirements:
+ build:
+ - astroconda-iraf-helpers
+ - iraf !=2.16.1,>=2.16.UR
+ - iraf.tables
+ - iraf.stsdas
+ - iraf.fitsutil
+ run:
+ - iraf !=2.16.1,>=2.16.UR
+ - iraf.tables
+ - iraf.stsdas
+ - iraf.fitsutil
+
diff --git a/iraf.gemini/post-link.sh b/iraf.gemini/post-link.sh
new file mode 100644
index 0000000..df12253
--- /dev/null
+++ b/iraf.gemini/post-link.sh
@@ -0,0 +1,4 @@
+# Call a common script that updates extern.pkg for the new IRAF package:
+
+"$PREFIX/bin/ac_config_iraf_pkg" gemini
+
diff --git a/iraf.gemini/ur_extern.pkg b/iraf.gemini/ur_extern.pkg
new file mode 100644
index 0000000..363f018
--- /dev/null
+++ b/iraf.gemini/ur_extern.pkg
@@ -0,0 +1,6 @@
+# http://www.gemini.edu/sciops/data-and-results/processing-software/releases/downloads
+reset gemini = UR_VDIR
+task gemini.pkg = gemini$gemini.cl
+reset helpdb= ( envget("helpdb") + ",gemini$lib/helpdb.mip" )
+reset aproposdb= ( envget("aproposdb") + ",gemini$lib/apropos.db" )
+
diff --git a/iraf.gemini/ur_manifest b/iraf.gemini/ur_manifest
new file mode 100644
index 0000000..19b462f
--- /dev/null
+++ b/iraf.gemini/ur_manifest
@@ -0,0 +1,10 @@
+bin/libdbc.a
+bin/libgemini.a
+bin/libgslalib.a
+bin/libirafdb.a
+bin/libmefio.a
+bin/libpdainterp.a
+bin/x_gemexpr.e
+bin/x_gemtools.e
+bin/x_gmos.e
+bin/x_gnirs.e
diff --git a/iraf.gemini/ur_mkpkg_patterns b/iraf.gemini/ur_mkpkg_patterns
new file mode 100644
index 0000000..6f18567
--- /dev/null
+++ b/iraf.gemini/ur_mkpkg_patterns
@@ -0,0 +1 @@
+^!ln -s
diff --git a/iraf.stecf/bld.bat b/iraf.stecf/bld.bat
new file mode 100644
index 0000000..fa5316a
--- /dev/null
+++ b/iraf.stecf/bld.bat
@@ -0,0 +1,3 @@
+
+echo Not supported on Windows
+exit 1 \ No newline at end of file
diff --git a/iraf.stecf/build.sh b/iraf.stecf/build.sh
new file mode 100644
index 0000000..ff620d5
--- /dev/null
+++ b/iraf.stecf/build.sh
@@ -0,0 +1,17 @@
+name=stecf
+
+# 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
+
+# Copy list of proprietary files to remove, from ../stsci_iraf/release_tools
+# (conda build stops if this fails, due to "set -e"):
+sed -ne "s|^$name/||p" release_tools/numrec_list.txt > $name/numrec_list.txt
+
+# Change to the package subdir (special case for STScI IRAF):
+cd $name
+
+# Build from source in envs/_build (using build script from astroconda-utils):
+ac_build_iraf_pkg
+
diff --git a/iraf.stecf/meta.yaml b/iraf.stecf/meta.yaml
new file mode 100644
index 0000000..6c0447f
--- /dev/null
+++ b/iraf.stecf/meta.yaml
@@ -0,0 +1,29 @@
+about:
+ home: http://www.stsci.edu/institute/software_hardware/stsdas
+ license: US government notice (and third-party licenses)
+ summary: STECF package for IRAF
+build:
+ binary_relocation: False
+ number: '0'
+ # These must be copied from astroconda-iraf-helpers, since conda unhelpfully
+ # 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.stecf
+ version: "3.17"
+source:
+ fn: stsci_iraf-3.17-local.tar.gz # quirky requirement in addition to url
+ url: http://astroconda-source:4440/stsci_iraf-3.17-local.tar.gz
+requirements:
+ build:
+ - astroconda-iraf-helpers
+ - iraf !=2.16.1,>=2.16.UR
+ - iraf.tables
+ - iraf.stsdas
+ run:
+ - iraf !=2.16.1,>=2.16.UR
+ - iraf.tables
+ - iraf.stsdas
+
diff --git a/iraf.stecf/post-link.sh b/iraf.stecf/post-link.sh
new file mode 100644
index 0000000..b7e6898
--- /dev/null
+++ b/iraf.stecf/post-link.sh
@@ -0,0 +1,4 @@
+# Call a common script that updates extern.pkg for the new IRAF package:
+
+"$PREFIX/bin/ac_config_iraf_pkg" stecf
+
diff --git a/iraf.stecf/ur_extern.pkg b/iraf.stecf/ur_extern.pkg
new file mode 100644
index 0000000..e7b3186
--- /dev/null
+++ b/iraf.stecf/ur_extern.pkg
@@ -0,0 +1,7 @@
+reset stecf = UR_VDIR
+task stecf.pkg = stecf$stecf.cl
+if (access("stecf$lib")) {
+ reset helpdb= ( envget("helpdb") + ",stecf$lib/helpdb.mip" )
+ reset aproposdb= ( envget("aproposdb") + ",stecf$lib/apropos.db" )
+}
+
diff --git a/iraf.stecf/ur_manifest b/iraf.stecf/ur_manifest
new file mode 100644
index 0000000..9a25083
--- /dev/null
+++ b/iraf.stecf/ur_manifest
@@ -0,0 +1,4 @@
+bin/x_driztools.e
+bin/x_impol.e
+bin/x_imres.e
+bin/x_specres.e
diff --git a/iraf.stecf/ur_mkpkg_cmd b/iraf.stecf/ur_mkpkg_cmd
new file mode 100644
index 0000000..2216941
--- /dev/null
+++ b/iraf.stecf/ur_mkpkg_cmd
@@ -0,0 +1,21 @@
+# In Ureka, this script used to call make_all from the stsci_iraf tarball but
+# in AstroConda, the applicable parts of make_all are instead included here, to
+# accommodate stsci_iraf being split into separate conda packages:
+
+status=0
+
+#ls -la
+pwd
+
+# Execute the build. We probably don't need a subshell now that we're working
+# directly in the subdirectory:
+echo report: STECF
+mkpkg $IRAFARCH || status=1
+mkpkg -p tables -p stsdas update || status=1
+chmod g+r */*.e || status=1
+
+# Proprietary code now gets removed by build_iraf_package. For stsci_iraf the
+# conda recipe copies the (separately-maintained) list to the right place first.
+
+exit $status
+
diff --git a/iraf.stecf/ur_mkpkg_patterns b/iraf.stecf/ur_mkpkg_patterns
new file mode 100644
index 0000000..d2c0861
--- /dev/null
+++ b/iraf.stecf/ur_mkpkg_patterns
@@ -0,0 +1,60 @@
+^gcc: -headerpad_max_install_names: linker input file unused because linking not done
+^ld: warning
+^libtool: file:
+^libtool: warning same member name
+^report:
+^total[ ][0-9]
+^[drwxl-]{10}
+^/.*/iraf_extern/tables
+^/.*/iraf_extern/stsdas
+^/.*/iraf_extern/stecf
+^_=
+^[A-Za-z0-9_]*=
+^Warning:
+^ apropos
+^ dataio
+^ dbms
+^ fitsio
+^(>.*)?ecl>[ \t]*$
+^ [+]-*[+][ ]*$
+^ [|].*[|][ ]*$
+^ [+]-*[+][ ]*$
+^tables>
+^TABLES[ ]*$
+^STSDAS[ ]*$
+^Warning, mkpkg line
+^-- creating a new uparm directory
+^Terminal types:
+^Enter terminal type
+^You may
+^setting terminal type
+^mH.
+^[ ]*NOAO/IRAF
+^[ ]*This is the EXPORT version
+^[ ]*Welcome to IRAF
+^[ ]*detailed information about
+^[ ]*command[ ]*or[ ]*load
+^[ ]*package, or `logout'
+^[ ]*what is new in
+^[ ]*Visit http://iraf.net
+^[ ]*The following commands
+^stsdas>
+^ analysis
+^ contrib
+^ catfits
+^ fits_exampl
+^ Fits_file
+^fitsio>
+^foc.fits
+^AFTER RFT_READ_FITS
+^STECF
+^Fits_file[ ]
+^[ ]*[A-Za-z0-9_.-]*[.]fits[ ]
+^[ ]*[A-Za-z0-9_.-]*[.]hhh[ ]
+^[ ]*hhh[ ]
+^[ ]*[.]{2}/scidata/
+^[ ]*renamed to
+^0a1$
+^\+ export
+^rm
+^unable to remove
diff --git a/iraf.stsdas/ac.iraf.stsci.patch b/iraf.stsdas/ac.iraf.stsci.patch
new file mode 100644
index 0000000..355d347
--- /dev/null
+++ b/iraf.stsdas/ac.iraf.stsci.patch
@@ -0,0 +1,100 @@
+diff -ur ../original/stsdas/apropos.cl ./stsdas/apropos.cl
+--- ../original/stsdas/apropos.cl 2014-03-14 14:21:23.000000000 -0300
++++ ./stsdas/apropos.cl 2016-08-10 17:47:39.000000000 -0300
+@@ -1,13 +1,66 @@
+ procedure apropos ( topic )
+
+ string topic {prompt = ">Apropos ? ", mode="ql"}
+-file index = "stsdas$lib/apropos.db" {prompt=">index to search"}
++file index = "aproposdb" {prompt=">index to search"}
+
+ begin
+-string csubject
+
+- # remove case sensitivity
++string csubject, dblist, fname, pvar
++int len, n, iend
++bool var_ok
++
++ # Remove case sensitivity
+ csubject = "{"//topic//"}"
+- match ( csubject, index, stop=no, meta=yes, print_file_names=no)
++
++ # As a special case, if we're given the name of the "aproposdb"
++ # environment variable then get the list of database filenames
++ # from that:
++ if (index == "aproposdb") {
++ if (defvar("aproposdb")) {
++ dblist = envget("aproposdb")
++ } else {
++ error(1, "variable aproposdb is not set!")
++ }
++ } else {
++ dblist = index
++ }
++
++ len = strlen(dblist)
++
++ # Loop over the database filenames in the list:
++ while (len > 0) {
++
++ # Parse next name and remove it from the start of the list:
++ iend = stridx(",", dblist) - 1
++ if (iend < 0) iend = len # no more commas; use what's left
++ fname = substr(dblist, 1, iend) # parse next filename
++ if (iend > len-2) { # no more filenames; empty list
++ dblist=""
++ } else { # still have another file
++ dblist = substr(dblist, iend+2, len)
++ }
++ len = strlen(dblist)
++
++ # Extract any path variable and check that it exists,
++ # otherwise IRAF will complain:
++ var_ok = yes
++ iend = stridx("$", fname) - 1
++ if (iend > -1) {
++ pvar = substr(fname, 1, iend)
++ if (!defvar(pvar))
++ var_ok = no
++ }
++
++ # Try to match the query if the database file exists:
++ if (var_ok)
++ if (access(fname)) {
++
++ # Print any matches in this database file:
++ match ( csubject, fname, stop=no, meta=yes, \
++ print_file_names=no)
++
++ }
++
++ } # while loop over database files
+
+ end
+diff -ur ../original/tables/lib/tbtables/mkpkg ./tables/lib/tbtables/mkpkg
+--- ../original/tables/lib/tbtables/mkpkg 2014-03-14 14:21:28.000000000 -0300
++++ ./tables/lib/tbtables/mkpkg 2016-08-10 17:47:39.000000000 -0300
+@@ -233,12 +233,10 @@
+ $ifdef (SPPFITSIO)
+ $echo "NOTE: SPP FITSIO will be used for FITS tables."
+ tbfhp_f.x <tbset.h> tbtables.h tblfits.h
+- @fitsio
+ $else
+ $echo "NOTE: CFITSIO will be used for FITS tables."
+ $echo "NOTE: CFITSIO does not support IRAF networking."
+ tbfhp.x <tbset.h> tbtables.h tblfits.h
+ tbfxff.c <fitsio.h> fitsio_spp.h underscore.h
+- @cfitsio
+ $endif
+ ;
+diff -ur ../original/tables/lib/tbtables/tbfxff.c ./tables/lib/tbtables/tbfxff.c
+--- ../original/tables/lib/tbtables/tbfxff.c 2014-03-14 14:21:28.000000000 -0300
++++ ./tables/lib/tbtables/tbfxff.c 2016-08-10 17:47:39.000000000 -0300
+@@ -1,5 +1,5 @@
+ # include <stdlib.h>
+-# include "cfitsio/fitsio.h" /* CFITSIO include file */
++# include <fitsio.h> /* CFITSIO include file */
+ # include "fitsio_spp.h" /* sizes of SPP strings and Fortran FITSIO */
+ # include "underscore.h" /* appends underscore, if needed */
+
diff --git a/iraf.stsdas/bld.bat b/iraf.stsdas/bld.bat
new file mode 100644
index 0000000..fa5316a
--- /dev/null
+++ b/iraf.stsdas/bld.bat
@@ -0,0 +1,3 @@
+
+echo Not supported on Windows
+exit 1 \ No newline at end of file
diff --git a/iraf.stsdas/build.sh b/iraf.stsdas/build.sh
new file mode 100644
index 0000000..c5b339c
--- /dev/null
+++ b/iraf.stsdas/build.sh
@@ -0,0 +1,22 @@
+name=stsdas
+
+# 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
+
+# Copy list of proprietary files to remove, from ../stsci_iraf/release_tools
+# (conda build stops if this fails, due to "set -e"):
+sed -ne "s|^$name/||p" release_tools/numrec_list.txt > $name/numrec_list.txt
+
+# Copy a couple of files used by the build into the package dir:
+mkdir -p $name/build_check
+cp -p release_tools/read_data_files.grep $name/build_check/
+cp -p release_tools/read_data_files.expect $name/build_check/
+
+# Change to the package subdir (special case for STScI IRAF):
+cd $name
+
+# Build from source in envs/_build (using build script from astroconda-utils):
+ac_build_iraf_pkg
+
diff --git a/iraf.stsdas/meta.yaml b/iraf.stsdas/meta.yaml
new file mode 100644
index 0000000..fd8d9f0
--- /dev/null
+++ b/iraf.stsdas/meta.yaml
@@ -0,0 +1,29 @@
+about:
+ home: http://www.stsci.edu/institute/software_hardware/stsdas
+ license: US government notice (and third-party licenses)
+ summary: STScI STSDAS package for IRAF
+build:
+ binary_relocation: False
+ number: '0'
+ # These must be copied from astroconda-iraf-helpers, since conda unhelpfully
+ # 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.stsdas
+ version: "3.17"
+source:
+ fn: stsci_iraf-3.17-local.tar.gz # quirky requirement in addition to url
+ url: http://astroconda-source:4440/stsci_iraf-3.17-local.tar.gz
+ patches:
+ - ac.iraf.stsci.patch
+requirements:
+ build:
+ - astroconda-iraf-helpers
+ - iraf !=2.16.1,>=2.16.UR
+ - iraf.tables
+ run:
+ - iraf !=2.16.1,>=2.16.UR
+ - iraf.tables
+
diff --git a/iraf.stsdas/post-link.sh b/iraf.stsdas/post-link.sh
new file mode 100644
index 0000000..5b6d8b2
--- /dev/null
+++ b/iraf.stsdas/post-link.sh
@@ -0,0 +1,4 @@
+# Call a common script that updates extern.pkg for the new IRAF package:
+
+"$PREFIX/bin/ac_config_iraf_pkg" stsdas
+
diff --git a/iraf.stsdas/ur_extern.pkg b/iraf.stsdas/ur_extern.pkg
new file mode 100644
index 0000000..63ab4ec
--- /dev/null
+++ b/iraf.stsdas/ur_extern.pkg
@@ -0,0 +1,8 @@
+reset stsdas = UR_VDIR
+task stsdas.pkg = stsdas$stsdas.cl
+task apropos = stsdas$apropos.cl
+if (access("stsdas$lib")) {
+ reset helpdb= ( envget("helpdb") + ",stsdas$lib/helpdb.mip" )
+ reset aproposdb= ( envget("aproposdb") + ",stsdas$lib/apropos.db" )
+}
+
diff --git a/iraf.stsdas/ur_manifest b/iraf.stsdas/ur_manifest
new file mode 100644
index 0000000..3b16102
--- /dev/null
+++ b/iraf.stsdas/ur_manifest
@@ -0,0 +1,91 @@
+bin/cs0.e
+bin/cs1.e
+bin/cs11.e
+bin/cs12.e
+bin/cs2.e
+bin/cs4.e
+bin/cs6.e
+bin/cs7.e
+bin/cs8.e
+bin/inttag.e
+bin/libapplib.a
+bin/libcvos.a
+bin/libf77util.a
+bin/libhstio.a
+bin/libiraf77.a
+bin/libsynphot.a
+bin/slitless.e
+bin/x_acoadd.e
+bin/x_asnexpand.e
+bin/x_biaseq.e
+bin/x_blot.e
+bin/x_calfoc.e
+bin/x_calfos.e
+bin/x_calhrs.e
+bin/x_calnica.e
+bin/x_calnicb.e
+bin/x_calpar.e
+bin/x_calwfp.e
+bin/x_calwp2.e
+bin/x_cdgasp.e
+bin/x_ctools.e
+bin/x_dither.e
+bin/x_doppinfo.e
+bin/x_drizzle.e
+bin/x_echscript.e
+bin/x_fitting.e
+bin/x_focprism.e
+bin/x_fos.e
+bin/x_fourier.e
+bin/x_fquot.e
+bin/x_fweight.e
+bin/x_gcombine.e
+bin/x_headers.e
+bin/x_hrs.e
+bin/x_imgtools.e
+bin/x_infostis.e
+bin/x_isophote.e
+bin/x_msarith.e
+bin/x_msbadpix.e
+bin/x_mscopy.e
+bin/x_msreadnoise.e
+bin/x_msstatistics.e
+bin/x_msstreakflat.e
+bin/x_nebular.e
+bin/x_newgeom.e
+bin/x_nicmos.e
+bin/x_odelaytime.e
+bin/x_ovac2air.e
+bin/x_paperprod.e
+bin/x_pedsky.e
+bin/x_pedsub.e
+bin/x_playpen.e
+bin/x_pltsol.e
+bin/x_plucy.e
+bin/x_psikern.e
+bin/x_pweight.e
+bin/x_restore.e
+bin/x_sdisplay.e
+bin/x_sharp.e
+bin/x_simulators.e
+bin/x_spec_polar.e
+bin/x_spfitpkg.e
+bin/x_splice.e
+bin/x_statistics.e
+bin/x_stplot.e
+bin/x_synphot.e
+bin/x_tastis.e
+bin/x_tools.e
+bin/x_tranback.e
+bin/x_traxy.e
+bin/x_treqxy.e
+bin/x_trxyeq.e
+bin/x_ucrpix.e
+bin/x_w_calib.e
+bin/x_wblot.e
+bin/x_wcs2dr.e
+bin/x_wdrizzle.e
+bin/x_wfpc.e
+bin/x_wtranback.e
+bin/x_wtraxy.e
+bin/x_xcor.e
diff --git a/iraf.stsdas/ur_mkpkg_cmd b/iraf.stsdas/ur_mkpkg_cmd
new file mode 100644
index 0000000..2554a0b
--- /dev/null
+++ b/iraf.stsdas/ur_mkpkg_cmd
@@ -0,0 +1,44 @@
+# In Ureka, this script used to call make_all from the stsci_iraf tarball but
+# in AstroConda, the applicable parts of make_all are instead included here, to
+# accommodate stsci_iraf being split into separate conda packages:
+
+status=0
+
+#ls -la
+pwd
+
+# Execute the build:
+echo report: STSDAS
+mkpkg $IRAFARCH || status=1
+mkpkg -p tables -p stsdas update || status=1
+chmod g+r */*.e || status=1
+
+# Do the additional steps from the tarball's make_all:
+echo report: STSDAS READ DATA FILES
+cd build_check # created by build.sh in iraf.stsdas
+rm -rf iraf
+mkdir iraf
+cd iraf
+echo xterm | mkiraf > mkiraf_tmp 2>&1
+sed 's/^/report: /' < mkiraf_tmp
+touch .hushiraf
+cl > tmp << ARF
+stsdas
+fitsio
+cd stsdas
+cd data/fits
+cl < read_fits.cl
+logout
+ARF
+cd ..
+grep -v -f read_data_files.grep < iraf/tmp > result || status=1
+diff -b read_data_files.expect result || status=1
+
+# Proprietary code now gets removed by build_iraf_package. For stsci_iraf the
+# conda recipe copies the (separately-maintained) list to the right place first.
+
+# Tidy up a bit (unless something failed detectably):
+[ $status = 0 ] && rm -fr iraf/
+
+exit $status
+
diff --git a/iraf.stsdas/ur_mkpkg_patterns b/iraf.stsdas/ur_mkpkg_patterns
new file mode 100644
index 0000000..d2c0861
--- /dev/null
+++ b/iraf.stsdas/ur_mkpkg_patterns
@@ -0,0 +1,60 @@
+^gcc: -headerpad_max_install_names: linker input file unused because linking not done
+^ld: warning
+^libtool: file:
+^libtool: warning same member name
+^report:
+^total[ ][0-9]
+^[drwxl-]{10}
+^/.*/iraf_extern/tables
+^/.*/iraf_extern/stsdas
+^/.*/iraf_extern/stecf
+^_=
+^[A-Za-z0-9_]*=
+^Warning:
+^ apropos
+^ dataio
+^ dbms
+^ fitsio
+^(>.*)?ecl>[ \t]*$
+^ [+]-*[+][ ]*$
+^ [|].*[|][ ]*$
+^ [+]-*[+][ ]*$
+^tables>
+^TABLES[ ]*$
+^STSDAS[ ]*$
+^Warning, mkpkg line
+^-- creating a new uparm directory
+^Terminal types:
+^Enter terminal type
+^You may
+^setting terminal type
+^mH.
+^[ ]*NOAO/IRAF
+^[ ]*This is the EXPORT version
+^[ ]*Welcome to IRAF
+^[ ]*detailed information about
+^[ ]*command[ ]*or[ ]*load
+^[ ]*package, or `logout'
+^[ ]*what is new in
+^[ ]*Visit http://iraf.net
+^[ ]*The following commands
+^stsdas>
+^ analysis
+^ contrib
+^ catfits
+^ fits_exampl
+^ Fits_file
+^fitsio>
+^foc.fits
+^AFTER RFT_READ_FITS
+^STECF
+^Fits_file[ ]
+^[ ]*[A-Za-z0-9_.-]*[.]fits[ ]
+^[ ]*[A-Za-z0-9_.-]*[.]hhh[ ]
+^[ ]*hhh[ ]
+^[ ]*[.]{2}/scidata/
+^[ ]*renamed to
+^0a1$
+^\+ export
+^rm
+^unable to remove
diff --git a/iraf.tables/ac.iraf.stsci.patch b/iraf.tables/ac.iraf.stsci.patch
new file mode 100644
index 0000000..355d347
--- /dev/null
+++ b/iraf.tables/ac.iraf.stsci.patch
@@ -0,0 +1,100 @@
+diff -ur ../original/stsdas/apropos.cl ./stsdas/apropos.cl
+--- ../original/stsdas/apropos.cl 2014-03-14 14:21:23.000000000 -0300
++++ ./stsdas/apropos.cl 2016-08-10 17:47:39.000000000 -0300
+@@ -1,13 +1,66 @@
+ procedure apropos ( topic )
+
+ string topic {prompt = ">Apropos ? ", mode="ql"}
+-file index = "stsdas$lib/apropos.db" {prompt=">index to search"}
++file index = "aproposdb" {prompt=">index to search"}
+
+ begin
+-string csubject
+
+- # remove case sensitivity
++string csubject, dblist, fname, pvar
++int len, n, iend
++bool var_ok
++
++ # Remove case sensitivity
+ csubject = "{"//topic//"}"
+- match ( csubject, index, stop=no, meta=yes, print_file_names=no)
++
++ # As a special case, if we're given the name of the "aproposdb"
++ # environment variable then get the list of database filenames
++ # from that:
++ if (index == "aproposdb") {
++ if (defvar("aproposdb")) {
++ dblist = envget("aproposdb")
++ } else {
++ error(1, "variable aproposdb is not set!")
++ }
++ } else {
++ dblist = index
++ }
++
++ len = strlen(dblist)
++
++ # Loop over the database filenames in the list:
++ while (len > 0) {
++
++ # Parse next name and remove it from the start of the list:
++ iend = stridx(",", dblist) - 1
++ if (iend < 0) iend = len # no more commas; use what's left
++ fname = substr(dblist, 1, iend) # parse next filename
++ if (iend > len-2) { # no more filenames; empty list
++ dblist=""
++ } else { # still have another file
++ dblist = substr(dblist, iend+2, len)
++ }
++ len = strlen(dblist)
++
++ # Extract any path variable and check that it exists,
++ # otherwise IRAF will complain:
++ var_ok = yes
++ iend = stridx("$", fname) - 1
++ if (iend > -1) {
++ pvar = substr(fname, 1, iend)
++ if (!defvar(pvar))
++ var_ok = no
++ }
++
++ # Try to match the query if the database file exists:
++ if (var_ok)
++ if (access(fname)) {
++
++ # Print any matches in this database file:
++ match ( csubject, fname, stop=no, meta=yes, \
++ print_file_names=no)
++
++ }
++
++ } # while loop over database files
+
+ end
+diff -ur ../original/tables/lib/tbtables/mkpkg ./tables/lib/tbtables/mkpkg
+--- ../original/tables/lib/tbtables/mkpkg 2014-03-14 14:21:28.000000000 -0300
++++ ./tables/lib/tbtables/mkpkg 2016-08-10 17:47:39.000000000 -0300
+@@ -233,12 +233,10 @@
+ $ifdef (SPPFITSIO)
+ $echo "NOTE: SPP FITSIO will be used for FITS tables."
+ tbfhp_f.x <tbset.h> tbtables.h tblfits.h
+- @fitsio
+ $else
+ $echo "NOTE: CFITSIO will be used for FITS tables."
+ $echo "NOTE: CFITSIO does not support IRAF networking."
+ tbfhp.x <tbset.h> tbtables.h tblfits.h
+ tbfxff.c <fitsio.h> fitsio_spp.h underscore.h
+- @cfitsio
+ $endif
+ ;
+diff -ur ../original/tables/lib/tbtables/tbfxff.c ./tables/lib/tbtables/tbfxff.c
+--- ../original/tables/lib/tbtables/tbfxff.c 2014-03-14 14:21:28.000000000 -0300
++++ ./tables/lib/tbtables/tbfxff.c 2016-08-10 17:47:39.000000000 -0300
+@@ -1,5 +1,5 @@
+ # include <stdlib.h>
+-# include "cfitsio/fitsio.h" /* CFITSIO include file */
++# include <fitsio.h> /* CFITSIO include file */
+ # include "fitsio_spp.h" /* sizes of SPP strings and Fortran FITSIO */
+ # include "underscore.h" /* appends underscore, if needed */
+
diff --git a/iraf.tables/bld.bat b/iraf.tables/bld.bat
new file mode 100644
index 0000000..fa5316a
--- /dev/null
+++ b/iraf.tables/bld.bat
@@ -0,0 +1,3 @@
+
+echo Not supported on Windows
+exit 1 \ No newline at end of file
diff --git a/iraf.tables/build.sh b/iraf.tables/build.sh
new file mode 100644
index 0000000..58cd9c8
--- /dev/null
+++ b/iraf.tables/build.sh
@@ -0,0 +1,17 @@
+name=tables
+
+# 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
+
+# Copy list of proprietary files to remove, from ../stsci_iraf/release_tools
+# (conda build stops if this fails, due to "set -e"):
+sed -ne "s|^$name/||p" release_tools/numrec_list.txt > $name/numrec_list.txt
+
+# Change to the package subdir (special case for STScI IRAF):
+cd $name
+
+# Build from source in envs/_build (using build script from astroconda-utils):
+ac_build_iraf_pkg
+
diff --git a/iraf.tables/meta.yaml b/iraf.tables/meta.yaml
new file mode 100644
index 0000000..5a5a36b
--- /dev/null
+++ b/iraf.tables/meta.yaml
@@ -0,0 +1,27 @@
+about:
+ home: http://www.stsci.edu/institute/software_hardware/stsdas
+ license: US government notice (and third-party licenses)
+ summary: STScI TABLES package for IRAF
+build:
+ binary_relocation: False
+ number: '0'
+ # These must be copied from astroconda-iraf-helpers, since conda unhelpfully
+ # 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.tables
+ version: "3.17"
+source:
+ fn: stsci_iraf-3.17-local.tar.gz # quirky requirement in addition to url
+ url: http://astroconda-source:4440/stsci_iraf-3.17-local.tar.gz
+ patches:
+ - ac.iraf.stsci.patch
+requirements:
+ build:
+ - astroconda-iraf-helpers
+ - iraf !=2.16.1,>=2.16.UR
+ run:
+ - iraf !=2.16.1,>=2.16.UR
+
diff --git a/iraf.tables/post-link.sh b/iraf.tables/post-link.sh
new file mode 100644
index 0000000..6165d02
--- /dev/null
+++ b/iraf.tables/post-link.sh
@@ -0,0 +1,4 @@
+# Call a common script that updates extern.pkg for the new IRAF package:
+
+"$PREFIX/bin/ac_config_iraf_pkg" tables
+
diff --git a/iraf.tables/ur_extern.pkg b/iraf.tables/ur_extern.pkg
new file mode 100644
index 0000000..b092f30
--- /dev/null
+++ b/iraf.tables/ur_extern.pkg
@@ -0,0 +1,7 @@
+reset tables = UR_VDIR
+task tables.pkg = tables$tables.cl
+if (access("tables$lib")) {
+ reset helpdb= ( envget("helpdb") + ",tables$lib/helpdb.mip" )
+ reset aproposdb= ( envget("aproposdb") + ",tables$lib/apropos.db" )
+}
+
diff --git a/iraf.tables/ur_manifest b/iraf.tables/ur_manifest
new file mode 100644
index 0000000..6cd6f55
--- /dev/null
+++ b/iraf.tables/ur_manifest
@@ -0,0 +1,11 @@
+bin/libdisplay.a
+bin/libgflib.a
+bin/libgilib.a
+bin/libstxtools.a
+bin/libtbtables.a
+bin/libuttables.a
+bin/trename.e
+bin/x_fitsio.e
+bin/x_tbplot.e
+bin/x_threed.e
+bin/x_ttools.e
diff --git a/iraf.tables/ur_mkpkg_cmd b/iraf.tables/ur_mkpkg_cmd
new file mode 100644
index 0000000..16f9e19
--- /dev/null
+++ b/iraf.tables/ur_mkpkg_cmd
@@ -0,0 +1,36 @@
+# In Ureka, this script used to call make_all from the stsci_iraf tarball but
+# in AstroConda, the applicable parts of make_all are instead included here, to
+# accommodate stsci_iraf being split into separate conda packages:
+
+status=0
+
+ls -la
+pwd
+
+# (JT: I think stsci_iraf just does this to log the path to the version that
+# gets picked up, for troubleshooting purposes:)
+(
+(
+env | sort
+
+cl << ARF
+tables
+cd tables$
+! pwd
+logout
+ARF
+) 2>&1
+) | sed 's/^/report: /' || status=1
+
+# Execute the build. We probably don't need a subshell now that we're working
+# directly in the tables subdirectory:
+echo report: TABLES
+mkpkg $IRAFARCH || status=1
+mkpkg -p tables update || status=1
+chmod g+r */*.e || status=1
+
+# Proprietary code now gets removed by build_iraf_package. For stsci_iraf the
+# conda recipe copies the (separately-maintained) list to the right place first.
+
+exit $status
+
diff --git a/iraf.tables/ur_mkpkg_patterns b/iraf.tables/ur_mkpkg_patterns
new file mode 100644
index 0000000..c540e81
--- /dev/null
+++ b/iraf.tables/ur_mkpkg_patterns
@@ -0,0 +1,58 @@
+^gcc: -headerpad_max_install_names: linker input file unused because linking not done
+^ld: warning
+^libtool: file:
+^libtool: warning same member name
+^report:
+^total[ ][0-9]
+^[drwxl-]{10}
+^/.*/iraf_extern/tables
+^/.*/iraf_extern/stsdas
+^/.*/iraf_extern/stecf
+^_=
+^[A-Za-z0-9_]*=
+^Warning:
+^ apropos
+^ dataio
+^ dbms
+^ fitsio
+^ecl>
+^ [+]-*[+][ ]*$
+^ [|].*[|][ ]*$
+^ [+]-*[+][ ]*$
+^tables>
+^TABLES[ ]*$
+^STSDAS[ ]*$
+^Warning, mkpkg line
+^-- creating a new uparm directory
+^Terminal types:
+^Enter terminal type
+^You may
+^setting terminal type
+^mH.
+^[ ]*NOAO/IRAF
+^[ ]*This is the EXPORT version
+^[ ]*Welcome to IRAF
+^[ ]*detailed information about
+^[ ]*command[ ]*or[ ]*load
+^[ ]*package, or `logout'
+^[ ]*what is new in
+^[ ]*Visit http://iraf.net
+^[ ]*The following commands
+^stsdas>
+^ analysis
+^ contrib
+^ catfits
+^ fits_exampl
+^ Fits_file
+^fitsio>
+^foc.fits
+^AFTER RFT_READ_FITS
+^STECF
+^Fits_file[ ]
+^[ ]*[A-Za-z0-9_.-]*[.]fits[ ]
+^[ ]*[A-Za-z0-9_.-]*[.]hhh[ ]
+^[ ]*hhh[ ]
+^[ ]*[.]{2}/scidata/
+^[ ]*renamed to
+^0a1$
+^\+ export
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..2bd7031
--- /dev/null
+++ b/iraf/meta.yaml
@@ -0,0 +1,15 @@
+about:
+ home: http://iraf.noao.edu
+ license: MIT (and third-party licenses)
+ summary: NOAO Image Reduction and Analysis Facility
+build:
+ binary_relocation: False
+ #detect_binary_files_with_prefix: False [osx]
+ number: '0'
+package:
+ name: iraf
+ version: 2.16.UR
+source:
+ # svn_url: https://aeon.stsci.edu/ssb/svn/u-rel/iraf-2.16/branches/jhunk-patches
+ # svn_rev: 4156
+ svn_url: https://aeon.stsci.edu/ssb/svn/u-rel/iraf-2.16/branches/conda_patches