summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Volkl <valentin.volkl@cern.ch>2022-04-26 18:25:41 +0200
committerGitHub <noreply@github.com>2022-04-26 09:25:41 -0700
commit84befcdfe26f4b079e9839014f77932ada0e46a7 (patch)
treee3c408749da5581ce551bd43f26dd7e127d0d0dc
parentdef8fce250f5c96ac75af0609b114017b81badd3 (diff)
downloadspack-84befcdfe26f4b079e9839014f77932ada0e46a7.tar.gz
spack-84befcdfe26f4b079e9839014f77932ada0e46a7.tar.bz2
spack-84befcdfe26f4b079e9839014f77932ada0e46a7.tar.xz
spack-84befcdfe26f4b079e9839014f77932ada0e46a7.zip
opendatadetector: add new package (#30298)
* opendatadetector: add new package * style * opendatadetector: add hep tag
-rw-r--r--var/spack/repos/builtin/packages/opendatadetector/package.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/opendatadetector/package.py b/var/spack/repos/builtin/packages/opendatadetector/package.py
new file mode 100644
index 0000000000..5b77a1a1d3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/opendatadetector/package.py
@@ -0,0 +1,36 @@
+# 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 Opendatadetector(CMakePackage):
+ """Open Data Detector for High Energy Physics."""
+ homepage = "https://gitlab.cern.ch/acts/OpenDataDetector.git"
+ git = "https://gitlab.cern.ch/acts/OpenDataDetector.git"
+
+ maintainers = ['vvolkl']
+
+ tags = ['hep']
+
+ version('main', branch='main')
+ version("v2", tag="v2")
+ version("v1", tag="v1")
+
+ depends_on('dd4hep')
+ depends_on('root')
+ depends_on('boost')
+
+ def cmake_args(self):
+ args = []
+ # C++ Standard
+ args.append('-DCMAKE_CXX_STANDARD=%s' %
+ self.spec['root'].variants['cxxstd'].value)
+ return args
+
+ def setup_run_environment(self, env):
+ env.prepend_path('LD_LIBRARY_PATH', self.prefix.lib)
+ env.prepend_path('LD_LIBRARY_PATH', self.prefix.lib64)