summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJustin S <3630356+codeandkey@users.noreply.github.com>2020-04-20 15:39:53 -0500
committerGitHub <noreply@github.com>2020-04-20 15:39:53 -0500
commit73e0dd9f614a17f89da263d1641a2f0eca5de1fc (patch)
treed9ade121401e080d07426ad1cadc22ae986c89b7 /var
parent1f49fb8cebe5dfe1ca2f5caeb614f266dc5912e6 (diff)
downloadspack-73e0dd9f614a17f89da263d1641a2f0eca5de1fc.tar.gz
spack-73e0dd9f614a17f89da263d1641a2f0eca5de1fc.tar.bz2
spack-73e0dd9f614a17f89da263d1641a2f0eca5de1fc.tar.xz
spack-73e0dd9f614a17f89da263d1641a2f0eca5de1fc.zip
prism: new package at 4.5 (#16187)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/prism/package.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/prism/package.py b/var/spack/repos/builtin/packages/prism/package.py
new file mode 100644
index 0000000000..a76f33ac7a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/prism/package.py
@@ -0,0 +1,43 @@
+# Copyright 2013-2020 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 Prism(MakefilePackage):
+ """PRISM is a probabilistic model checker, a tool for formal modelling and
+ analysis of systems that exhibit random or probabilistic behaviour."""
+
+ homepage = "https://www.prismmodelchecker.org/"
+ url = "https://github.com/prismmodelchecker/prism/archive/v4.5.tar.gz"
+
+ version('4.5', sha256='1cb7a77538b5c997d98a8c209030c46f9e8f021f7a8332e5eb2fd3b4a23936fd')
+
+ build_directory = 'prism'
+
+ depends_on('java', type=('build', 'run'))
+
+ def setup_run_environment(self, env):
+ env.set('PRISM_DIR', self.prefix)
+
+ def install(self, spec, prefix):
+ with working_dir(self.build_directory):
+ # after building, remove PRISM_DIR lines from startup scripts,
+ # as they point to the stage and not the prefix
+ for f in ['prism', 'xprism']:
+ filter_file('^PRISM_DIR.*', '', 'bin/{0}'.format(f))
+
+ dirs = [
+ 'bin',
+ 'classes',
+ 'dtds',
+ 'etc',
+ 'include',
+ 'images',
+ 'lib',
+ ]
+
+ for d in dirs:
+ install_tree(d, join_path(prefix, d))