diff options
author | Valentin Volkl <valentin.volkl@cern.ch> | 2021-10-13 02:13:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-13 02:13:50 +0200 |
commit | 81d157b05eb324c8d4de2bfecc1073b4772cdf1e (patch) | |
tree | 31b22cee158b32de50968869017d7b7cdf53b80b /var | |
parent | 0f9080738f2491ff2d5884990949cf514e619604 (diff) | |
download | spack-81d157b05eb324c8d4de2bfecc1073b4772cdf1e.tar.gz spack-81d157b05eb324c8d4de2bfecc1073b4772cdf1e.tar.bz2 spack-81d157b05eb324c8d4de2bfecc1073b4772cdf1e.tar.xz spack-81d157b05eb324c8d4de2bfecc1073b4772cdf1e.zip |
garfieldpp: update dependencies, add variant (#25816)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/garfieldpp/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/garfieldpp/package.py b/var/spack/repos/builtin/packages/garfieldpp/package.py index 1d5905345b..ab51dadf6c 100644 --- a/var/spack/repos/builtin/packages/garfieldpp/package.py +++ b/var/spack/repos/builtin/packages/garfieldpp/package.py @@ -18,8 +18,18 @@ class Garfieldpp(CMakePackage): maintainers = ['mirguest'] + variant('examples', default=False, description="Build garfield examples") + version('master', branch='master') version('4.0', sha256='82bc1f0395213bd30a7cd854426e6757d0b4155e99ffd4405355c9648fa5ada3') version('3.0', sha256='c1282427a784658bc38b71c8e8cfc8c9f5202b185f0854d85f7c9c5a747c5406') depends_on('root') + depends_on('gsl') + depends_on('geant4', when='+examples') + + def cmake_args(self): + args = [ + self.define_from_variant('WITH_EXAMPLES', 'examples') + ] + return args |