summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter Deconinck <wdconinc@gmail.com>2023-02-06 10:09:22 -0600
committerGitHub <noreply@github.com>2023-02-06 09:09:22 -0700
commit42a452d54c8a25f9f415fef8cf9e3a5c64b7a46a (patch)
tree6c0c7a19fc1c1c4d5fffbbba9c5fd3b0dcdd65c0
parenta913ed229d62e8291cc0328ebea86aaa300bf1bb (diff)
downloadspack-42a452d54c8a25f9f415fef8cf9e3a5c64b7a46a.tar.gz
spack-42a452d54c8a25f9f415fef8cf9e3a5c64b7a46a.tar.bz2
spack-42a452d54c8a25f9f415fef8cf9e3a5c64b7a46a.tar.xz
spack-42a452d54c8a25f9f415fef8cf9e3a5c64b7a46a.zip
estarlight, dpmjet: new packages (#32834)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/dpmjet/package.py36
-rw-r--r--var/spack/repos/builtin/packages/estarlight/package.py41
2 files changed, 77 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dpmjet/package.py b/var/spack/repos/builtin/packages/dpmjet/package.py
new file mode 100644
index 0000000000..d1fa92b41f
--- /dev/null
+++ b/var/spack/repos/builtin/packages/dpmjet/package.py
@@ -0,0 +1,36 @@
+# Copyright 2013-2022 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.package import *
+
+
+class Dpmjet(MakefilePackage):
+ """DPMJET-III is a Monte Carlo event generator for hadron, photon
+ and nuclear collisions."""
+
+ homepage = "https://github.com/DPMJET/DPMJET"
+ url = "https://github.com/DPMJET/DPMJET/archive/refs/tags/v19.3.3.zip"
+ list_url = "https://github.com/DPMJET/DPMJET/tags"
+ git = "https://github.com/DPMJET/DPMJET.git"
+
+ maintainers = ["wdconinc"]
+
+ version("19.3.5", sha256="5a546ca20f86abaecda1828eb5b577aee8a532dffb2c5e7244667d5f25777909")
+ version("19.3.4", sha256="646f520aa67ef6355c45cde155a5dd55f7c9d661314358a7668f6ff472f5d5f9")
+ version("19.3.3", sha256="4f449a36b48ff551beb4303d66bac18bebc52dbcac907f84ab7716c914ad6d8a")
+ version("19.2.0", sha256="0f5c1af4419e1a8fa4b46cc24ae1da98abe5c119064275e1848538fe033f02cc")
+ version("19.1.3", sha256="f2f7f9eee0fcd1e2770382fa6e3491418607e33de2272e04b6d75ebc97640474")
+
+ depends_on("python@3:")
+
+ def edit(self, spec, prefix):
+ makefile = FileFilter("Makefile")
+ makefile.filter(r"install: \$\(pylib\)", "install:")
+
+ def install(self, spec, prefix):
+ install_tree("bin", prefix.bin)
+ install_tree("lib", prefix.lib)
+ install_tree("include", prefix.include)
diff --git a/var/spack/repos/builtin/packages/estarlight/package.py b/var/spack/repos/builtin/packages/estarlight/package.py
new file mode 100644
index 0000000000..7f531338d8
--- /dev/null
+++ b/var/spack/repos/builtin/packages/estarlight/package.py
@@ -0,0 +1,41 @@
+# Copyright 2013-2022 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.package import *
+
+
+class Estarlight(CMakePackage):
+ """Monte Carlo event generator for coherent vector meson photo- and electro-
+ production in electron-ion collisions."""
+
+ homepage = "https://github.com/eic/estarlight"
+ url = "https://github.com/eic/estarlight/archive/refs/tags/v1.0.0.zip"
+ list_url = "https://github.com/eic/estarlight/tags"
+ git = "https://github.com/eic/estarlight.git"
+
+ maintainers = ["wdconinc"]
+
+ version("master", branch="master")
+ version("1.0.1", sha256="b43c1dd3663d8f325f30b17dd7cf4b49f2eb8ceeed7319c5aabebec8676279fd")
+
+ variant("dpmjet", default=False, description="Use dpmjet for jets")
+ variant("hepmc3", default=False, description="Support HepMC3 writing")
+ variant("pythia6", default=False, description="Use Pythia6 for parton showers")
+ variant("pythia8", default=False, description="Use Pythia8 for parton showers")
+
+ depends_on("dpmjet", when="+dpmjet")
+ depends_on("hepmc3", when="+hepmc3")
+ depends_on("pythia6", when="+pythia6")
+ depends_on("pythia8", when="+pythia8")
+
+ def cmake_args(self):
+ args = [
+ self.define_from_variant("ENABLE_DPMJET", "dpmjet"),
+ self.define_from_variant("ENABLE_HEPMC3", "hepmc3"),
+ self.define_from_variant("ENABLE_PYTHIA6", "pythia6"),
+ self.define_from_variant("ENABLE_PYTHIA", "pythia8"),
+ ]
+ return args