From 4ea1774be37dcb0a344d1eacd5c21cd8608b495f Mon Sep 17 00:00:00 2001 From: Marijn van Vliet Date: Thu, 15 Apr 2021 15:52:03 +0300 Subject: MDSplus: neww package (#21957) MDSplus is a set of software tools for data acquisition and storage and a methodology for management of complex scientific data. https://www.mdsplus.org Co-authored-by: Marijn van Vliet --- .../repos/builtin/packages/mdsplus/package.py | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 var/spack/repos/builtin/packages/mdsplus/package.py diff --git a/var/spack/repos/builtin/packages/mdsplus/package.py b/var/spack/repos/builtin/packages/mdsplus/package.py new file mode 100644 index 0000000000..c7a8a7af01 --- /dev/null +++ b/var/spack/repos/builtin/packages/mdsplus/package.py @@ -0,0 +1,55 @@ +# Copyright 2013-2021 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 * + + +class Mdsplus(AutotoolsPackage): + """A set of software tools for data acquisition and storage and a + methodology for management of complex scientific data.""" + homepage = "https://mdsplus.org" + git = "https://github.com/MDSplus/mdsplus.git" + + maintainers = ['wmvanvliet'] + + parallel = False + + version('stable_release-7-96-17', tag='stable_release-7-96-17', + submodules=True) + + variant('java', default=True, + description='Build java libraries and applications') + variant('python', default=True, + description='Install python module') + + # Autotools needed for building + depends_on('autoconf', type='build') + depends_on('autoconf-archive', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') + depends_on('pkgconfig', type='build') + + # Libs needed for building and linking + depends_on('libxml2') + depends_on('readline') + + # GUI bindings + depends_on('motif') + + # Language bindings + depends_on('java', type=('build', 'run'), when='+java') + + def configure_args(self): + return self.enable_or_disable('java') + + def autoreconf(self, spec, prefix): + bash = which('bash') + bash('./bootstrap') + + def setup_run_environment(self, env): + env.set('MDSPLUS_DIR', self.prefix) + if '+python' in self.spec: + env.prepend_path('PYTHONPATH', '{0}/python'.format(self.prefix)) -- cgit v1.2.3-70-g09d2