summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Volkl <valentin.volkl@cern.ch>2022-11-29 17:54:14 +0100
committerGitHub <noreply@github.com>2022-11-29 09:54:14 -0700
commitd9b438ec760d21868ef3ae1469b0257087541faa (patch)
tree39c2d4530d73ecb27851341a481b853653b40d79
parentc6ee30497c59d19d78a9ccf48ce54fb7430818d3 (diff)
downloadspack-d9b438ec760d21868ef3ae1469b0257087541faa.tar.gz
spack-d9b438ec760d21868ef3ae1469b0257087541faa.tar.bz2
spack-d9b438ec760d21868ef3ae1469b0257087541faa.tar.xz
spack-d9b438ec760d21868ef3ae1469b0257087541faa.zip
evtgen: add v02.02.00 (#34187)
* evtgen: add v02.02.00 * format
-rw-r--r--var/spack/repos/builtin/packages/evtgen/package.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/evtgen/package.py b/var/spack/repos/builtin/packages/evtgen/package.py
index 7b2fe05f6e..c9f6b236e2 100644
--- a/var/spack/repos/builtin/packages/evtgen/package.py
+++ b/var/spack/repos/builtin/packages/evtgen/package.py
@@ -17,6 +17,7 @@ class Evtgen(CMakePackage):
maintainers = ["vvolkl"]
+ version("02.02.00", sha256="0c626e51cb17e799ad0ffd0beea5cb94d7ac8a5f8777b746aa1944dd26071ecf")
version("02.00.00", sha256="02372308e1261b8369d10538a3aa65fe60728ab343fcb64b224dac7313deb719")
# switched to cmake in 02.00.00
version(
@@ -51,6 +52,16 @@ class Evtgen(CMakePackage):
)
conflicts("+hepmc3", when="@:01", msg="hepmc3 support was added in 02.00.00")
+ @property
+ def root_cmakelists_dir(self):
+ # deal with inconsistent intermediate folders of tarballs
+ # 02.00.00 only has 'R02-00-00'
+ # but 02.02.00 has 'EvtGen/R02-02-00'
+ if self.spec.satisfies("@02.02.00:"):
+ return "R" + str(self.version).replace(".", "-")
+ else:
+ return ""
+
def cmake_args(self):
args = []
@@ -66,7 +77,7 @@ class Evtgen(CMakePackage):
# the `-undefined dynamic_lookup` flag enables weak linking on Mac
# Patch taken from CMS recipe:
# https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_12_1_X/master/evtgen.spec#L48
- if not self.spec.satisfies("platform=darwin"):
+ if not self.spec.satisfies("%gcc platform=darwin"):
return
filter_file("-shared", "-dynamiclib -undefined dynamic_lookup", "make.inc")