Skip to content

Commit

Permalink
Add a recipe for CLDConfig (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored Jun 6, 2024
1 parent 20ac81a commit 354e3ce
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions packages/cldconfig/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright 2013-2020 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 Cldconfig(CMakePackage):
"""Configuration files for the CLD detector concept"""

homepage = "https://github.com/key4hep/CLDConfig"
git = "https://github.com/key4hep/CLDConfig"

maintainers = ["jmcarcell"]

version("main", branch="main")
# Old tag to make sure there is at least one, can be removed when
# there is another
version("v02-04-01", tag="v02-04-01")

depends_on("k4geo", type="test")
depends_on("dd4hep", type="test")
depends_on("k4fwcore", type="test")
depends_on("k4marlinwrapper", type="test")
depends_on("marlintrkprocessors", type="test")
depends_on("conformaltracking", type="test")
depends_on("ddmarlinpandora", type="test")
depends_on("clicperformance", type="test")
depends_on("lcfiplus", type="test")
depends_on("marlinfastjet", type="test")

def cmake_args(self):
args = []
args.append("-DBUILD_TESTING=%s" % self.run_tests)
return args

def setup_run_environment(self, env):
env.prepend_path("CLDCONFIG", self.prefix)
1 change: 1 addition & 0 deletions packages/key4hep-stack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class Key4hepStack(BundlePackage, Key4hepPackage):
depends_on("babayaga")
depends_on("bdsim")
depends_on("bhlumi")
depends_on("cldconfig")
depends_on("dd4hep")
depends_on("delphes")
depends_on("edm4hep")
Expand Down
1 change: 1 addition & 0 deletions scripts/fetch_nightly_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def get_latest_commit(
("ced", "ilcsoft/ced"),
("cedviewer", "ilcsoft/cedviewer"),
# ("cepcsw", "cepc/cepcsw"),
("cldconfig", "key4hep/CLDConfig"),
("clicperformance", "ilcsoft/clicperformance"),
("conformaltracking", "ilcsoft/conformaltracking"),
("dd4hep", "aidasoft/dd4hep"),
Expand Down

0 comments on commit 354e3ce

Please sign in to comment.