Skip to content

Commit

Permalink
feat: add language dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Nov 19, 2024
1 parent 9a90296 commit 2048905
Show file tree
Hide file tree
Showing 35 changed files with 67 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/afterburner/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class Afterburner(CMakePackage):
variant("root", default=False, description="Support reading ROOT files")
variant("zlib", default=True, description="Support reading compressed files")

depends_on("cxx", type="build")

depends_on("gsl")
depends_on("hepmc3")
depends_on("clhep")
Expand Down
2 changes: 2 additions & 0 deletions packages/algorithms/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class Algorithms(CMakePackage):
version("main", branch="main")
version("master", branch="master", deprecated=True)

depends_on("cxx", type="build")

depends_on("dd4hep +ddrec")
depends_on("edm4hep")
depends_on("edm4eic")
Expand Down
2 changes: 2 additions & 0 deletions packages/athena-eic/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class AthenaEic(CMakePackage):
description="Depend on reconstruction libraries",
)

depends_on("cxx", type="build")

depends_on("dd4hep +ddg4 +hepmc3")
depends_on("acts +dd4hep +identification +tgeo")
depends_on("fmt +shared")
Expand Down
1 change: 1 addition & 0 deletions packages/bmf/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ class Bmf(CMakePackage):
version("master", branch="master")
version("2020-04-13", commit="d00c54dc812bfa1804acb5fe370bb9c27b3539f9")

depends_on("cxx", type="build")
depends_on("cmake@2.8.10:", type="build")
3 changes: 3 additions & 0 deletions packages/dawn/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class Dawn(MakefilePackage):
sha256="81d855ead1117681b188242dd0be3a24e005d9bd4063fd2bda9a7a794ebcf5f4",
)

depends_on("c", type="build")
depends_on("cxx", type="build")

depends_on("tcl")
depends_on("tk")

Expand Down
3 changes: 3 additions & 0 deletions packages/dawncut/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ class Dawncut(MakefilePackage):
expand=False,
)

depends_on("c", type="build")
depends_on("cxx", type="build")

phases = ["unpack", "repatch", "edit", "build", "install"]

def unpack(self, spec, prefix):
Expand Down
2 changes: 2 additions & 0 deletions packages/east/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ class East(CMakePackage):

version("main", branch="main")

depends_on("cxx", type="build")

depends_on("geant4@10.7.0: +threads")
depends_on("hepmc3")
1 change: 1 addition & 0 deletions packages/edm4eic/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class Edm4eic(CMakePackage):
description="Use the specified C++ standard when building.",
)

depends_on("cxx", type="build")
depends_on("python", type="build")
depends_on("cmake@3.3:", type="build")
depends_on("py-jinja2", type="build")
Expand Down
2 changes: 2 additions & 0 deletions packages/eic-ip6/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class EicIp6(CMakePackage):
sha256="b59b99cbc1c772d1d3fe281bc424b8a59afb7a999467da7b554d479b6c5092be",
)

depends_on("cxx", type="build")

depends_on("dd4hep +ddg4")
depends_on("acts +dd4hep +tgeo")
depends_on("root +gdml")
Expand Down
4 changes: 3 additions & 1 deletion packages/eic-smear/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,13 @@ class EicSmear(CMakePackage):
sha256="be994c94b5b665f3802723a51e5983a0d9221ca3b13138146d68ba48eb0b2d93",
)

depends_on("cxx", type="build")
depends_on("cmake", type="build")

depends_on("root +pythia6", when="+pythia6")
depends_on("root", when="-pythia6")
depends_on("zlib")
depends_on("hepmc3")
depends_on("cmake", type="build")
depends_on("pythia6", when="+pythia6")

conflicts(
Expand Down
1 change: 1 addition & 0 deletions packages/eicd/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class Eicd(CMakePackage):
description="Use the specified C++ standard when building.",
)

depends_on("cxx", type="build")
depends_on("python", type="build")
depends_on("cmake@3.3:", type="build")
depends_on("py-jinja2", type="build")
Expand Down
1 change: 1 addition & 0 deletions packages/eicrecon/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ class Eicrecon(CMakePackage):
sha256="dcc8b60530a627c825413c07472659ba155600339ef8b8e742e3c997bcc504ae",
)

depends_on("cxx", type="build")
depends_on("cmake@3.16:", type="build")

depends_on("jana2 +root +zmq")
Expand Down
2 changes: 2 additions & 0 deletions packages/eicroot/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class Eicroot(CMakePackage):
sha256="94cd28763ef99832efd619f47c9b5b000d31a445e940e6c8204a373ade7d6334",
)

depends_on("cxx", type="build")

depends_on("root@6.18.04: -vmc")
depends_on("geant3-vmc")
depends_on("geant4-vmc")
Expand Down
2 changes: 2 additions & 0 deletions packages/eictoymodel/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ class Eictoymodel(CMakePackage):
sha256="633b3566c7c24af970a0ccb2487207a9f9b43ab84404ccead95ffd30f21a8b94",
)

depends_on("cxx", type="build")

depends_on("opencascade")
depends_on("root")
depends_on("vgm")
Expand Down
1 change: 1 addition & 0 deletions packages/ejana/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Ejana(CMakePackage):
variant("acts", default=False, description="Use ACTS")
variant("genfit", default=False, description="Use genfit")

depends_on("cxx", type="build")
depends_on("cmake@3.9:", type="build")
depends_on("jana2 +root")
depends_on("hepmc3")
Expand Down
2 changes: 2 additions & 0 deletions packages/epic/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def cmake_flags(self):
description="Interaction point design",
)

depends_on("cxx", type="build")

depends_on("dd4hep@1.21: +ddg4 +ddrec", when="@:23.03.0")
depends_on("dd4hep@1.21: +ddrec", when="@23.05.0:")

Expand Down
3 changes: 3 additions & 0 deletions packages/escalate/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ class Escalate(BundlePackage):
tags = ["eic"]

version("develop", preferred=True)

depends_on("cxx", type="build")

# Dev
depends_on("cmake")
depends_on("boost")
Expand Down
2 changes: 2 additions & 0 deletions packages/estarlight/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class Estarlight(CMakePackage):
variant("pythia6", default=False, description="Use Pythia6 for parton showers")
variant("dpmjet", default=False, description="Use dpmjet for jets")

depends_on("cxx", type="build")

depends_on("hepmc3", when="+hepmc3")
depends_on("doxygen", when="+doxygen")
depends_on("pythia8", when="+pythia8")
Expand Down
2 changes: 2 additions & 0 deletions packages/farmhash/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class Farmhash(AutotoolsPackage):

version("master", branch="master")

depends_on("cxx", type="build")

depends_on("autoconf", type="build", when="@master")
depends_on("automake", type="build", when="@master")
depends_on("libtool", type="build", when="@master")
Expand Down
2 changes: 2 additions & 0 deletions packages/fluka/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ class Fluka(Package):

conflicts("%gcc@:7", when="@4.2.0")

depends_on("fortran", type="build")

manual_download = True

@property
Expand Down
2 changes: 2 additions & 0 deletions packages/g4e/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class G4e(CMakePackage):
default=False,
description="Validated working version with fixed dependencies",
)

depends_on("cxx", type="build")
depends_on("cmake@3.0.0:", type="build", when="~validated")
depends_on("root@6.00.00:", when="~validated")
depends_on("geant4@10.6:", when="~validated")
Expand Down
2 changes: 2 additions & 0 deletions packages/hepmcmerger/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class Hepmcmerger(CMakePackage):
version("1.0.1", sha256="419732c2d46afbad89e32362d339a643dc1e6e5ff9724c3027a45aef1b8fbf95")
version("1.0.0", sha256="5f36b0b65f1062aab79dc6653b6f6fecb9682022f1a471efa62b5614c9731618")

depends_on("cxx", type="build")

depends_on("hepmc3")
depends_on("root")

Expand Down
2 changes: 2 additions & 0 deletions packages/irt/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class Irt(CMakePackage):

variant("root_io", default=False, description="Build dictionaries for ROOT IO", when="@1.0.6:")

depends_on("cxx", type="build")

depends_on("root@6: +root7")

def cmake_args(self):
Expand Down
1 change: 1 addition & 0 deletions packages/jana2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class Jana2(CMakePackage, CudaPackage):
variant("xerces", default=True, description="Build with XML support.")
variant("zmq", default=False, description="Use zeroMQ for janacontrol.")

depends_on("cxx", type="build")
depends_on("cmake@3.16:", type="build")
depends_on("cppzmq", when="+zmq")
depends_on("py-pybind11@2.6.1:", when="+python")
Expand Down
2 changes: 2 additions & 0 deletions packages/juggler/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ class Juggler(CMakePackage):
description="Use the specified C++ standard when building.",
)

depends_on("cxx", type="build")

depends_on("root")
depends_on("geant4")
depends_on("genfit", when="@:8")
Expand Down
2 changes: 2 additions & 0 deletions packages/libodbcpp/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Libodbcpp(AutotoolsPackage):
sha256="ba3030a27b34e4aafbececa2ddbbf42a38815e9534f34c051620540531b5e23e",
)

depends_on("cxx", type="build")

def patch(self):
filter_file("ODBCXX_STRING_PERCENT", '"%"', "src/dtconv.h")

Expand Down
2 changes: 2 additions & 0 deletions packages/milou/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class Milou(MakefilePackage):

version("master", branch="master")

depends_on("fortran", type="build")

depends_on("cernlib")
depends_on("pythia6")
# depends_on('jetset')
Expand Down
1 change: 1 addition & 0 deletions packages/nanocernlib/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ class Nanocernlib(CMakePackage):
sha256="00b23d2613272951c1771d917ec0a7c30920e9d114caf1b421c44a806a06356a",
)

depends_on("fortran", type="build")
depends_on("cmake", type="build")
2 changes: 2 additions & 0 deletions packages/npdet/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ class Npdet(CMakePackage):
variant("http", default=False, description="Build web display services")
variant("geocad", default=False, description="Build the geocad interface")

depends_on("cxx", type="build")

depends_on("fmt +shared")
depends_on("acts")
depends_on("eigen")
Expand Down
2 changes: 2 additions & 0 deletions packages/npsim/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class Npsim(CMakePackage):
variant("http", default=False, description="Build web display services")
variant("geocad", default=False, description="Build the geocad interface")

depends_on("cxx", type="build")

depends_on("fmt +shared")
depends_on("root")
depends_on("py-pyyaml", type="build")
Expand Down
2 changes: 2 additions & 0 deletions packages/pepsi/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class Pepsi(MakefilePackage):

version("master", branch="master")

depends_on("fortran", type="build")

depends_on("cernlib")

def patch(self):
Expand Down
1 change: 1 addition & 0 deletions packages/pythia6m/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Pythia6m(CMakePackage):

version("master", branch="master", submodules=True)

depends_on("fortran", type="build")
depends_on("cmake@2.8:", type="build")
depends_on("root")

Expand Down
2 changes: 2 additions & 0 deletions packages/sartre/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class Sartre(CMakePackage):

parallel = False

depends_on("cxx", type="build")

depends_on("gsl")
depends_on("root")
depends_on("boost@1.39: +thread")
Expand Down
2 changes: 2 additions & 0 deletions packages/synrad/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class Synrad(CMakePackage):

variant("cli", default=True, description="Enable only the command line interface")

depends_on("cxx", type="build")

depends_on("curl")
depends_on("gsl")
depends_on("sdl2")
Expand Down
3 changes: 3 additions & 0 deletions packages/tensorflow-lite/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ class TensorflowLite(CMakePackage):

depends_on("cmake@3.16:", type="build")

depends_on("c", type="build")
depends_on("cxx", type="build")

# TODO this package still overrides the upstream software with its own FetchContent
depends_on("abseil-cpp")
depends_on("eigen")
Expand Down

0 comments on commit 2048905

Please sign in to comment.