summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@informatik.uni-hamburg.de>2020-01-29 18:40:39 +0100
committerGitHub <noreply@github.com>2020-01-29 11:40:39 -0600
commit52a7f94d9e74620913b57b28680ddbc7215c1bac (patch)
tree6a7fcc578252031e1bc8100d8a5129afc0ed9c50
parent4e3617fe1df1e6e19ac5e7a6fbd19a1a600d5916 (diff)
downloadspack-52a7f94d9e74620913b57b28680ddbc7215c1bac.tar.gz
spack-52a7f94d9e74620913b57b28680ddbc7215c1bac.tar.bz2
spack-52a7f94d9e74620913b57b28680ddbc7215c1bac.tar.xz
spack-52a7f94d9e74620913b57b28680ddbc7215c1bac.zip
pythia8: add new package (#14665)
-rw-r--r--var/spack/repos/builtin/packages/pythia8/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pythia8/package.py b/var/spack/repos/builtin/packages/pythia8/package.py
new file mode 100644
index 0000000000..0afbb8dc91
--- /dev/null
+++ b/var/spack/repos/builtin/packages/pythia8/package.py
@@ -0,0 +1,29 @@
+# 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 Pythia8(AutotoolsPackage):
+ """The Pythia program is a standard tool for the generation of events in
+ high-energy collisions, comprising a coherent set of physics models for
+ the evolution from a few-body hard process to a complex multiparticle
+ final state."""
+
+ homepage = "http://home.thep.lu.se/Pythia/"
+ url = "http://home.thep.lu.se/~torbjorn/pythia8/pythia8244.tgz"
+
+ version('8301', sha256='51382768eb9aafb97870dca1909516422297b64ef6a6b94659259b3e4afa7f06')
+ version('8244', sha256='e34880f999daf19cdd893a187123927ba77d1bf851e30f6ea9ec89591f4c92ca', preferred=True)
+
+ variant('shared', default=True, description='Build shared library')
+
+ def configure_args(self):
+ args = []
+
+ if '+shared' in self.spec:
+ args.append('--enable-shared')
+
+ return args