summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarijn van Vliet <w.m.vanvliet@gmail.com>2021-04-15 15:52:03 +0300
committerGitHub <noreply@github.com>2021-04-15 14:52:03 +0200
commit4ea1774be37dcb0a344d1eacd5c21cd8608b495f (patch)
tree19c896514cca5251bd1daae4547b249686c96d78
parent12224930552272d0d6686a606eca6be6c91dc8d4 (diff)
downloadspack-4ea1774be37dcb0a344d1eacd5c21cd8608b495f.tar.gz
spack-4ea1774be37dcb0a344d1eacd5c21cd8608b495f.tar.bz2
spack-4ea1774be37dcb0a344d1eacd5c21cd8608b495f.tar.xz
spack-4ea1774be37dcb0a344d1eacd5c21cd8608b495f.zip
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 <marijn.vanvliet@aalto.fi>
-rw-r--r--var/spack/repos/builtin/packages/mdsplus/package.py55
1 files changed, 55 insertions, 0 deletions
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))