aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames E.H. Turner <jturner@gemini.edu>2016-09-30 13:38:44 -0400
committerJames E.H. Turner <jturner@gemini.edu>2016-09-30 13:38:44 -0400
commita66143a3e1d020f1beb93ae3731ca2557a00f4c2 (patch)
treea65c450c5d05c81424ee8f8f9322f409df717113
parent708688dfa7293de3f7a93192a19721580fc54c84 (diff)
downloadastroconda-iraf-a66143a3e1d020f1beb93ae3731ca2557a00f4c2.tar.gz
Add STECF package (similar to TABLES & STSDAS).
-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
8 files changed, 145 insertions, 0 deletions
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..ea56c03
--- /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-build-utils, 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-build-utils
+ - 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