summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorValentin Volkl <valentin.volkl@cern.ch>2022-03-07 10:30:13 +0100
committerGitHub <noreply@github.com>2022-03-07 02:30:13 -0700
commit53fb5963ebc556ca1956a0e983f2e2a4b63303aa (patch)
tree18028695f69dc381b1686f9b0f9d1434c3008deb /var
parent022aa496a5efc7a27a3f0c0ec45a84fee41c68ad (diff)
downloadspack-53fb5963ebc556ca1956a0e983f2e2a4b63303aa.tar.gz
spack-53fb5963ebc556ca1956a0e983f2e2a4b63303aa.tar.bz2
spack-53fb5963ebc556ca1956a0e983f2e2a4b63303aa.tar.xz
spack-53fb5963ebc556ca1956a0e983f2e2a4b63303aa.zip
starlight: add new package (#29158)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/starlight/package.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/starlight/package.py b/var/spack/repos/builtin/packages/starlight/package.py
new file mode 100644
index 0000000000..5530289191
--- /dev/null
+++ b/var/spack/repos/builtin/packages/starlight/package.py
@@ -0,0 +1,26 @@
+# 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 import *
+
+
+class Starlight(CMakePackage):
+ """STARlight is a Monte Carlo that simulates two-photon
+ and photon-Pomeron interactions between relativistic nuclei and protons."""
+
+ homepage = "https://starlight.hepforge.org"
+ url = "https://starlight.hepforge.org/downloads?f=starlight_r313.tar"
+
+ tags = ['hep']
+
+ maintainers = ['vvolkl']
+
+ version('313', sha256='afff1ac01bc312cb443931eb425808a85ac7e349ed3df228405a4ba87d780f23',
+ url='https://starlight.hepforge.org/downloads?f=starlight_r313.tar')
+ version('300', sha256='e754212f173fb42a96611b3519cb386c772429e690f3e088396bd103c2cf9348',
+ url='https://starlight.hepforge.org/downloads?f=starlight_r300.tar')
+
+ patch('https://gitlab.cern.ch/sft/lcgcmake/-/raw/master/generators/patches/starlight-r313.patch', sha256='c70f70fd7c96dc0417f9254d25b584222abcb2c452e1e6dd4b8cfb0b64bf10e0', when='@300:', level=0)