-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
236e666
commit 0178e65
Showing
5 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ dune_packages_with_ci=( | |
"lbrulibs" | ||
"nddaqconf" | ||
"snbmodules" | ||
"tpgtools" | ||
) | ||
|
||
dune_packages=( | ||
|
46 changes: 46 additions & 0 deletions
46
spack-repos/fddaq-repo-template/packages/tpgtools/package.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright 2013-2021 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 Tpgtools(CMakePackage): | ||
"""A collection of utility tools and applications to emulate, plot, parse and test Trigger Primitive Generation algorithms""" | ||
|
||
homepage = "https://dune-daq-sw.readthedocs.io/en/latest/packages/tpgtools/" | ||
git = "https://github.com/DUNE-DAQ/tpgtools.git" | ||
|
||
maintainers = ['jcfreeman2'] | ||
|
||
version("XVERSIONX", commit="XHASHX") | ||
|
||
depends_on("ers") | ||
depends_on("logging") | ||
depends_on("readoutlibs") | ||
depends_on("fdreadoutlibs") | ||
depends_on("daqdataformats") | ||
depends_on("detchannelmaps") | ||
depends_on("detdataformats") | ||
depends_on("fddetdataformats") | ||
depends_on("trigger") | ||
depends_on("hdf5libs") | ||
|
||
depends_on("boost") | ||
|
||
depends_on("daq-cmake") | ||
|
||
# DBT_DEBUG is used by daq-cmake to set compiler options | ||
def cmake_args(self): | ||
if str(self.spec.variants['build_type']) == "build_type=Debug": | ||
return ["-DDBT_DEBUG=true"] | ||
else: | ||
return ["-DDBT_DEBUG=false"] | ||
|
||
def setup_run_environment(self, env): | ||
env.set(self.__module__.split(".")[-1].upper().replace("-", "_") + "_SHARE", self.prefix + "/share" ) | ||
env.prepend_path("DUNEDAQ_SHARE_PATH", self.prefix + "/share") | ||
env.prepend_path('CET_PLUGIN_PATH', self.prefix.lib + "64") | ||
env.prepend_path("PYTHONPATH", self.prefix.lib + "64/python") |