aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Turner <jturner@gemini.edu>2016-12-07 14:27:57 -0500
committerJames Turner <jturner@gemini.edu>2016-12-07 14:27:57 -0500
commit0fa57d74bbdc1958bff662be487eacdeb68bd635 (patch)
tree0988e634efe8c462eca5fd86d076b63cfe3d88aa
parent162293e8024bba18d40f7d125eba3b0e9a1796e1 (diff)
downloadastroconda-iraf-0fa57d74bbdc1958bff662be487eacdeb68bd635.tar.gz
Add ctio, cutoutpkg & deitab IRAF packages.
-rw-r--r--iraf.ctio/ac.iraf.ctio.patch29
-rw-r--r--iraf.ctio/bld.bat2
-rw-r--r--iraf.ctio/build.sh8
-rw-r--r--iraf.ctio/post-link.sh3
-rw-r--r--iraf.ctio/pre-unlink.sh1
-rw-r--r--iraf.ctio/ur_extern.pkg6
-rw-r--r--iraf.ctio/ur_manifest3
-rw-r--r--iraf.ctio/ur_mkpkg_patterns1
-rw-r--r--iraf.cutoutpkg/ac.iraf.cutoutpkg.patch68
-rw-r--r--iraf.cutoutpkg/bld.bat2
-rw-r--r--iraf.cutoutpkg/build.sh8
-rw-r--r--iraf.cutoutpkg/meta.yaml27
-rw-r--r--iraf.cutoutpkg/post-link.sh3
-rw-r--r--iraf.cutoutpkg/pre-unlink.sh1
-rw-r--r--iraf.cutoutpkg/ur_extern.pkg6
-rw-r--r--iraf.cutoutpkg/ur_manifest1
-rw-r--r--iraf.cutoutpkg/ur_mkpkg_cmd2
-rw-r--r--iraf.cutoutpkg/ur_mkpkg_patterns0
-rw-r--r--iraf.deitab/bld.bat2
-rw-r--r--iraf.deitab/build.sh8
-rw-r--r--iraf.deitab/meta.yaml27
-rw-r--r--iraf.deitab/post-link.sh3
-rw-r--r--iraf.deitab/pre-unlink.sh1
-rw-r--r--iraf.deitab/ur_extern.pkg6
-rw-r--r--iraf.deitab/ur_mkpkg_patterns0
25 files changed, 218 insertions, 0 deletions
diff --git a/iraf.ctio/ac.iraf.ctio.patch b/iraf.ctio/ac.iraf.ctio.patch
new file mode 100644
index 0000000..6fba107
--- /dev/null
+++ b/iraf.ctio/ac.iraf.ctio.patch
@@ -0,0 +1,29 @@
+diff -Nur ../original/ctio.cl ./ctio.cl
+--- ../original/ctio.cl 1994-02-17 12:16:43.000000000 -0300
++++ ./ctio.cl 2016-05-03 13:32:08.000000000 -0300
+@@ -12,15 +12,16 @@
+ set fabry = "ctio$fabry/"
+ set manuals = "ctio$manuals/"
+
+-# Apropos database. This environment variable is used by the apropos task.
+-# It should have one entry per external package, but the total string length
+-# shouldn't exceed SZ_APROPOSDB (defined in ctio$src/t_apropos.x).
+-
+-set aproposdb = "ctio$src/apropos/db/root.db\
+- ,ctio$src/apropos/db/noao.db\
+- ,ctio$src/apropos/db/ctio.db\
+- ,ctio$src/apropos/db/stsdas.db\
+- "
++# Ureka: don't do this; we have our own aproposdb setting instead
++# # Apropos database. This environment variable is used by the apropos task.
++# # It should have one entry per external package, but the total string length
++# # shouldn't exceed SZ_APROPOSDB (defined in ctio$src/t_apropos.x).
++#
++# set aproposdb = "ctio$src/apropos/db/root.db\
++# ,ctio$src/apropos/db/noao.db\
++# ,ctio$src/apropos/db/ctio.db\
++# ,ctio$src/apropos/db/stsdas.db\
++# "
+
+ # Subpackages
+
diff --git a/iraf.ctio/bld.bat b/iraf.ctio/bld.bat
new file mode 100644
index 0000000..e1aca7a
--- /dev/null
+++ b/iraf.ctio/bld.bat
@@ -0,0 +1,2 @@
+echo Not supported on Windows
+exit 1
diff --git a/iraf.ctio/build.sh b/iraf.ctio/build.sh
new file mode 100644
index 0000000..2353907
--- /dev/null
+++ b/iraf.ctio/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.ctio/post-link.sh b/iraf.ctio/post-link.sh
new file mode 100644
index 0000000..3a246b2
--- /dev/null
+++ b/iraf.ctio/post-link.sh
@@ -0,0 +1,3 @@
+# Call a common script that updates extern.pkg for the new IRAF package:
+
+"$PREFIX/bin/ac_config_iraf_pkg" ctio
diff --git a/iraf.ctio/pre-unlink.sh b/iraf.ctio/pre-unlink.sh
new file mode 100644
index 0000000..83ccef7
--- /dev/null
+++ b/iraf.ctio/pre-unlink.sh
@@ -0,0 +1 @@
+"$PREFIX/bin/ac_config_iraf_pkg" --remove ctio
diff --git a/iraf.ctio/ur_extern.pkg b/iraf.ctio/ur_extern.pkg
new file mode 100644
index 0000000..565d607
--- /dev/null
+++ b/iraf.ctio/ur_extern.pkg
@@ -0,0 +1,6 @@
+# ftp://iraf.noao.edu/iraf/v215/REPO
+reset ctio = UR_VDIR
+task ctio.pkg = ctio$ctio.cl
+reset helpdb= ( envget("helpdb") + ",ctio$lib/helpdb.mip" )
+reset aproposdb= ( envget("aproposdb") + ",ctio$lib/apropos.db" )
+
diff --git a/iraf.ctio/ur_manifest b/iraf.ctio/ur_manifest
new file mode 100644
index 0000000..9758d07
--- /dev/null
+++ b/iraf.ctio/ur_manifest
@@ -0,0 +1,3 @@
+bin/x_ctio.e
+bin/x_fabry.e
+bin/x_spcombine.e
diff --git a/iraf.ctio/ur_mkpkg_patterns b/iraf.ctio/ur_mkpkg_patterns
new file mode 100644
index 0000000..2f9f359
--- /dev/null
+++ b/iraf.ctio/ur_mkpkg_patterns
@@ -0,0 +1 @@
+^ entry rftres:
diff --git a/iraf.cutoutpkg/ac.iraf.cutoutpkg.patch b/iraf.cutoutpkg/ac.iraf.cutoutpkg.patch
new file mode 100644
index 0000000..24c76e2
--- /dev/null
+++ b/iraf.cutoutpkg/ac.iraf.cutoutpkg.patch
@@ -0,0 +1,68 @@
+diff -Nur ../original/cutoutpkg.cl ./cutoutpkg.cl
+--- ../original/cutoutpkg.cl 1969-12-31 21:00:00.000000000 -0300
++++ ./cutoutpkg.cl 2016-05-03 13:32:00.000000000 -0300
+@@ -0,0 +1,14 @@
++#{ Package script task for the cutout package, added for Ureka.
++
++print ("Parent package for cutout tasks, added in Ureka mainly to provide IRAF help")
++print ("")
++
++# cl < "cutoutpkg$lib/zzsetenv.def"
++
++package cutoutpkg, bin = cutoutpkg$
++
++task cutout,
++ ndwfsget = "cutoutpkg$x_cutout.e"
++
++clbye()
++
+diff -Nur ../original/cutoutpkg.hd ./cutoutpkg.hd
+--- ../original/cutoutpkg.hd 1969-12-31 21:00:00.000000000 -0300
++++ ./cutoutpkg.hd 2016-05-03 13:32:00.000000000 -0300
+@@ -0,0 +1,10 @@
++# Help directory for the cutout package (added for UR).
++
++$doc = "cutoutpkg$"
++$srcdir = "cutoutpkg$"
++
++cutoutpkg hlp=cutoutpkg$cutoutpkg.men
++
++cutout hlp=doc$cutout.hlp, src=srcdir$t_cutout.x
++ndwfsget hlp=doc$ndwfsget.hlp, src=srcdir$t_ndwfsget.x
++
+diff -Nur ../original/cutoutpkg.men ./cutoutpkg.men
+--- ../original/cutoutpkg.men 1969-12-31 21:00:00.000000000 -0300
++++ ./cutoutpkg.men 2016-05-03 13:32:00.000000000 -0300
+@@ -0,0 +1,3 @@
++ cutout - Extract FITS cutout images from a survey using world coordinates
++ ndwfsget - Extract FITS cutout images from the NDWFS survey using WCS info.
++
+diff -Nur ../original/cutoutpkg.par ./cutoutpkg.par
+--- ../original/cutoutpkg.par 1969-12-31 21:00:00.000000000 -0300
++++ ./cutoutpkg.par 2016-05-03 13:32:00.000000000 -0300
+@@ -0,0 +1,2 @@
++# cutout package parameter file.
++version,s,h,"05Apr2001-UR"
+Binary files ../original/lib/helpdb.mip and ./lib/helpdb.mip differ
+diff -Nur ../original/lib/rootcutoutpkg.hd ./lib/rootcutoutpkg.hd
+--- ../original/lib/rootcutoutpkg.hd 1969-12-31 21:00:00.000000000 -0300
++++ ./lib/rootcutoutpkg.hd 2016-05-03 13:32:00.000000000 -0300
+@@ -0,0 +1,6 @@
++cutoutpkg men = cutoutpkg$cutoutpkg.men,
++ hlp = cutoutpkg$cutoutpkg.men,
++ sys = cutoutpkg$cutoutpkg.hlp,
++ pkg = cutoutpkg$cutoutpkg.hd,
++ src = cutoutpkg$cutoutpkg.cl
++
+diff -Nur ../original/lib/root.hd ./lib/root.hd
+--- ../original/lib/root.hd 1969-12-31 21:00:00.000000000 -0300
++++ ./lib/root.hd 2016-05-03 13:32:00.000000000 -0300
+@@ -0,0 +1 @@
++_cutoutpkg pkg = cutoutpkg$lib/rootcutoutpkg.hd
+diff -Nur ../original/lib/zzsetenv.def ./lib/zzsetenv.def
+--- ../original/lib/zzsetenv.def 1969-12-31 21:00:00.000000000 -0300
++++ ./lib/zzsetenv.def 2016-05-03 13:32:00.000000000 -0300
+@@ -0,0 +1,3 @@
++set cutoutpkgbin = "cutoutpkg$bin(arch)/"
++
++keep
diff --git a/iraf.cutoutpkg/bld.bat b/iraf.cutoutpkg/bld.bat
new file mode 100644
index 0000000..e1aca7a
--- /dev/null
+++ b/iraf.cutoutpkg/bld.bat
@@ -0,0 +1,2 @@
+echo Not supported on Windows
+exit 1
diff --git a/iraf.cutoutpkg/build.sh b/iraf.cutoutpkg/build.sh
new file mode 100644
index 0000000..2353907
--- /dev/null
+++ b/iraf.cutoutpkg/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.cutoutpkg/meta.yaml b/iraf.cutoutpkg/meta.yaml
new file mode 100644
index 0000000..0bedf01
--- /dev/null
+++ b/iraf.cutoutpkg/meta.yaml
@@ -0,0 +1,27 @@
+about:
+ home: http://iraf.noao.edu/
+ license: IRAF MIT/X11 variant
+ summary: CUTOUTPKG package for IRAF
+build:
+ binary_relocation: False
+ number: '0'
+ # These must be copied from astroconda-iraf-helpers, since conda 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.cutoutpkg
+ version: "2001_04_05"
+source:
+ fn: cutout-2001-04-05.tar.Z
+ url: http://astroconda-source:4440/cutout-2001-04-05.tar.Z
+ patches:
+ - ac.iraf.cutoutpkg.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.cutoutpkg/post-link.sh b/iraf.cutoutpkg/post-link.sh
new file mode 100644
index 0000000..9bfc9a5
--- /dev/null
+++ b/iraf.cutoutpkg/post-link.sh
@@ -0,0 +1,3 @@
+# Call a common script that updates extern.pkg for the new IRAF package:
+
+"$PREFIX/bin/ac_config_iraf_pkg" cutoutpkg
diff --git a/iraf.cutoutpkg/pre-unlink.sh b/iraf.cutoutpkg/pre-unlink.sh
new file mode 100644
index 0000000..f513ae0
--- /dev/null
+++ b/iraf.cutoutpkg/pre-unlink.sh
@@ -0,0 +1 @@
+"$PREFIX/bin/ac_config_iraf_pkg" --remove cutoutpkg
diff --git a/iraf.cutoutpkg/ur_extern.pkg b/iraf.cutoutpkg/ur_extern.pkg
new file mode 100644
index 0000000..e387524
--- /dev/null
+++ b/iraf.cutoutpkg/ur_extern.pkg
@@ -0,0 +1,6 @@
+# http://archive.noao.edu/ndwfs/data-cutout.html
+reset cutoutpkg = UR_VDIR # UR - define pkg to find help database
+task cutoutpkg.pkg = cutoutpkg$cutoutpkg.cl
+reset helpdb= ( envget("helpdb") + ",cutoutpkg$lib/helpdb.mip" ) # Added for UR
+reset aproposdb= ( envget("aproposdb") + ",cutoutpkg$lib/apropos.db" ) # UR
+
diff --git a/iraf.cutoutpkg/ur_manifest b/iraf.cutoutpkg/ur_manifest
new file mode 100644
index 0000000..12ce32f
--- /dev/null
+++ b/iraf.cutoutpkg/ur_manifest
@@ -0,0 +1 @@
+x_cutout.e
diff --git a/iraf.cutoutpkg/ur_mkpkg_cmd b/iraf.cutoutpkg/ur_mkpkg_cmd
new file mode 100644
index 0000000..6bdb790
--- /dev/null
+++ b/iraf.cutoutpkg/ur_mkpkg_cmd
@@ -0,0 +1,2 @@
+mkpkg
+# mv x_cutout.e bin/ # Not found here automatically with current setup
diff --git a/iraf.cutoutpkg/ur_mkpkg_patterns b/iraf.cutoutpkg/ur_mkpkg_patterns
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/iraf.cutoutpkg/ur_mkpkg_patterns
diff --git a/iraf.deitab/bld.bat b/iraf.deitab/bld.bat
new file mode 100644
index 0000000..e1aca7a
--- /dev/null
+++ b/iraf.deitab/bld.bat
@@ -0,0 +1,2 @@
+echo Not supported on Windows
+exit 1
diff --git a/iraf.deitab/build.sh b/iraf.deitab/build.sh
new file mode 100644
index 0000000..2353907
--- /dev/null
+++ b/iraf.deitab/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.deitab/meta.yaml b/iraf.deitab/meta.yaml
new file mode 100644
index 0000000..486cf8f
--- /dev/null
+++ b/iraf.deitab/meta.yaml
@@ -0,0 +1,27 @@
+about:
+ home: http://iraf.noao.edu/
+ license: IRAF MIT/X11 variant
+ summary: DEITAB package for IRAF
+build:
+ binary_relocation: False
+ number: '0'
+ # These must be copied from astroconda-iraf-helpers, since conda 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.deitab
+ version: "2013_01_02"
+source:
+ fn: deitab-src-2013-01-02.tar.gz
+ url: http://astroconda-source:4440/deitab-src-2013-01-02.tar.gz
+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.deitab/post-link.sh b/iraf.deitab/post-link.sh
new file mode 100644
index 0000000..bc4fc92
--- /dev/null
+++ b/iraf.deitab/post-link.sh
@@ -0,0 +1,3 @@
+# Call a common script that updates extern.pkg for the new IRAF package:
+
+"$PREFIX/bin/ac_config_iraf_pkg" deitab
diff --git a/iraf.deitab/pre-unlink.sh b/iraf.deitab/pre-unlink.sh
new file mode 100644
index 0000000..3b52c43
--- /dev/null
+++ b/iraf.deitab/pre-unlink.sh
@@ -0,0 +1 @@
+"$PREFIX/bin/ac_config_iraf_pkg" --remove deitab
diff --git a/iraf.deitab/ur_extern.pkg b/iraf.deitab/ur_extern.pkg
new file mode 100644
index 0000000..0416d81
--- /dev/null
+++ b/iraf.deitab/ur_extern.pkg
@@ -0,0 +1,6 @@
+# ftp://iraf.noao.edu/iraf/v216/REPO
+reset deitab = UR_VDIR
+task deitab.pkg = deitab$deitab.cl
+reset helpdb= ( envget("helpdb") + ",deitab$lib/helpdb.mip" )
+reset aproposdb= ( envget("aproposdb") + ",deitab$lib/apropos.db" )
+
diff --git a/iraf.deitab/ur_mkpkg_patterns b/iraf.deitab/ur_mkpkg_patterns
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/iraf.deitab/ur_mkpkg_patterns