aboutsummaryrefslogtreecommitdiff
path: root/iraf.gemini
diff options
context:
space:
mode:
authorJames E.H. Turner <jturner@gemini.edu>2016-10-04 13:23:29 -0400
committerJames E.H. Turner <jturner@gemini.edu>2016-10-04 13:23:29 -0400
commit6173807e3dcc404d7c8b5343b57f78158e9e9046 (patch)
tree762e525521653cfa4a2b102bf7c51515e392918e /iraf.gemini
parent6e9b90e5c1cc5603de6966c3aab5bbfd59845f56 (diff)
downloadastroconda-iraf-6173807e3dcc404d7c8b5343b57f78158e9e9046.tar.gz
Add latest public Gemini IRAF package (1.13.1).
Diffstat (limited to 'iraf.gemini')
-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
8 files changed, 105 insertions, 0 deletions
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..d12ec38
--- /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-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.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-build-utils
+ - 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