diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/bld.bat | 2 | ||||
-rw-r--r-- | template/build.sh | 8 | ||||
-rw-r--r-- | template/meta.yaml | 27 | ||||
-rw-r--r-- | template/post-link.sh | 3 | ||||
-rw-r--r-- | template/pre-unlink.sh | 1 | ||||
-rw-r--r-- | template/ur_extern.pkg | 6 | ||||
-rw-r--r-- | template/ur_mkpkg_patterns | 0 |
7 files changed, 47 insertions, 0 deletions
diff --git a/template/bld.bat b/template/bld.bat new file mode 100644 index 0000000..e1aca7a --- /dev/null +++ b/template/bld.bat @@ -0,0 +1,2 @@ +echo Not supported on Windows +exit 1 diff --git a/template/build.sh b/template/build.sh new file mode 100644 index 0000000..2353907 --- /dev/null +++ b/template/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/template/meta.yaml b/template/meta.yaml new file mode 100644 index 0000000..d4b2a96 --- /dev/null +++ b/template/meta.yaml @@ -0,0 +1,27 @@ +about: + home: http://iraf.noao.edu/ + license: IRAF MIT/X11 variant + summary: PKGNAME 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.pkgname + version: "VERSION" +source: + fn: FILENAME + url: http://astroconda-source:4440/FILENAME + patches: + - ac.iraf.pkgname.patch +requirements: + build: + - astroconda-iraf-helpers + - iraf !=2.16.1,>=2.16.UR + run: + - iraf !=2.16.1,>=2.16.UR + diff --git a/template/post-link.sh b/template/post-link.sh new file mode 100644 index 0000000..1056b72 --- /dev/null +++ b/template/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" pkgname diff --git a/template/pre-unlink.sh b/template/pre-unlink.sh new file mode 100644 index 0000000..2d221ce --- /dev/null +++ b/template/pre-unlink.sh @@ -0,0 +1 @@ +"$PREFIX/bin/ac_config_iraf_pkg" --remove pkgname diff --git a/template/ur_extern.pkg b/template/ur_extern.pkg new file mode 100644 index 0000000..402520f --- /dev/null +++ b/template/ur_extern.pkg @@ -0,0 +1,6 @@ +# ftp://iraf.noao.edu/iraf/v216/REPO +reset adccdrom = UR_VDIR +task adccdrom.pkg = adccdrom$adccdrom.cl +reset helpdb= ( envget("helpdb") + ",adccdrom$lib/helpdb.mip" ) +reset aproposdb= ( envget("aproposdb") + ",adccdrom$lib/apropos.db" ) + diff --git a/template/ur_mkpkg_patterns b/template/ur_mkpkg_patterns new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/template/ur_mkpkg_patterns |