parent
c6ee30497c
commit
d9b438ec76
@ -17,6 +17,7 @@ class Evtgen(CMakePackage):
|
|||||||
|
|
||||||
maintainers = ["vvolkl"]
|
maintainers = ["vvolkl"]
|
||||||
|
|
||||||
|
version("02.02.00", sha256="0c626e51cb17e799ad0ffd0beea5cb94d7ac8a5f8777b746aa1944dd26071ecf")
|
||||||
version("02.00.00", sha256="02372308e1261b8369d10538a3aa65fe60728ab343fcb64b224dac7313deb719")
|
version("02.00.00", sha256="02372308e1261b8369d10538a3aa65fe60728ab343fcb64b224dac7313deb719")
|
||||||
# switched to cmake in 02.00.00
|
# switched to cmake in 02.00.00
|
||||||
version(
|
version(
|
||||||
@ -51,6 +52,16 @@ class Evtgen(CMakePackage):
|
|||||||
)
|
)
|
||||||
conflicts("+hepmc3", when="@:01", msg="hepmc3 support was added in 02.00.00")
|
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):
|
def cmake_args(self):
|
||||||
args = []
|
args = []
|
||||||
|
|
||||||
@ -66,7 +77,7 @@ def patch(self):
|
|||||||
# the `-undefined dynamic_lookup` flag enables weak linking on Mac
|
# the `-undefined dynamic_lookup` flag enables weak linking on Mac
|
||||||
# Patch taken from CMS recipe:
|
# Patch taken from CMS recipe:
|
||||||
# https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_12_1_X/master/evtgen.spec#L48
|
# 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
|
return
|
||||||
|
|
||||||
filter_file("-shared", "-dynamiclib -undefined dynamic_lookup", "make.inc")
|
filter_file("-shared", "-dynamiclib -undefined dynamic_lookup", "make.inc")
|
||||||
|
Loading…
Reference in New Issue
Block a user