From 7f528a5ed2df8c07f5fd9ffd2f9d264228f01932 Mon Sep 17 00:00:00 2001 From: Justin Stanley Date: Mon, 31 Dec 2018 16:11:20 -0600 Subject: 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 --- var/spack/repos/builtin/packages/ds/package.py | 58 ++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 var/spack/repos/builtin/packages/ds/package.py 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) -- cgit v1.2.3-60-g2f50