summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJustin Stanley <molecuul@users.noreply.github.com>2018-12-31 16:11:20 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2018-12-31 16:11:20 -0600
commit7f528a5ed2df8c07f5fd9ffd2f9d264228f01932 (patch)
treeb079eb60cdf6ad065dc156c193fe99aa074c5058 /var
parenta1d651e80f51aed7e42211016517563dfbba0c65 (diff)
downloadspack-7f528a5ed2df8c07f5fd9ffd2f9d264228f01932.tar.gz
spack-7f528a5ed2df8c07f5fd9ffd2f9d264228f01932.tar.bz2
spack-7f528a5ed2df8c07f5fd9ffd2f9d264228f01932.tar.xz
spack-7f528a5ed2df8c07f5fd9ffd2f9d264228f01932.zip
ds: new package at 9.8.0 (#9852)
* ds: new package at 9.8.0rc6 * ds: move patches to patch func * ds: use built-in configure phase, remove autoreconf skip * ds: revert to stable 9.8.0 * ds: remove unnecessary dep types * ds: make url consistent with versions
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ds/package.py58
1 files changed, 58 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ds/package.py b/var/spack/repos/builtin/packages/ds/package.py
new file mode 100644
index 0000000000..b11c365638
--- /dev/null
+++ b/var/spack/repos/builtin/packages/ds/package.py
@@ -0,0 +1,58 @@
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+from os import symlink
+
+
+class Ds(AutotoolsPackage):
+ """SAOImage DS9 is an astronomical imaging and data visualization
+ application."""
+
+ homepage = "http://ds9.si.edu/"
+ url = "http://ds9.si.edu/download/source/ds9.8.0.tar.gz"
+
+ version('9.8.0', sha256='f3bdb46c1653997202f98c6f76632a4eb444707f4b64c14f8b96863d9c890304')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('m4', type='build')
+ depends_on('libtool', type='build')
+
+ depends_on('libx11')
+ depends_on('libxml2')
+ depends_on('libxslt')
+ depends_on('openssl')
+ depends_on('tcl')
+ depends_on('tcl-tclxml')
+ depends_on('tk')
+
+ def patch(self):
+ # the package provides it's own TCL utilities
+ # compiling and manually setting paths for all of them is contrived
+ # (most of the utilities are small and not included in spack)
+
+ # inject libxml, libxslt prefixes into configure search paths
+ filter_file('/usr/bin/xml2-config',
+ join_path(self.spec['libxml2'].prefix, 'bin/xml2-config'),
+ 'tclxml/configure', string=True)
+
+ filter_file('/usr/bin/xslt-config',
+ join_path(self.spec['libxslt'].prefix, 'bin/xslt-config'),
+ 'tclxml/configure', string=True)
+
+ # symlink the master configure script into the source directory
+ symlink('unix/configure', 'configure')
+
+ def configure_args(self):
+ srcdir = join_path(self.stage.source_path, 'unix')
+ return ['--srcdir={0}'.format(srcdir)]
+
+ def install(self, spec, prefix):
+ # no install target provided in Makefile, install manually
+
+ install_tree('bin', prefix.bin)
+ install_tree('share', prefix.share)
+ install_tree('lib', prefix.lib)