diff options
author | iarspider <iarspider@gmail.com> | 2022-06-28 02:09:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 18:09:45 -0600 |
commit | 7dd2ca02077dc15b3a79d9c6ec990973cc46eb7d (patch) | |
tree | 7a5b6fa8fa2b2731651c383bf794ba2cca66eaed /var | |
parent | 7aedf9da37925e8b14644bd519917cc43c16473d (diff) | |
download | spack-7dd2ca02077dc15b3a79d9c6ec990973cc46eb7d.tar.gz spack-7dd2ca02077dc15b3a79d9c6ec990973cc46eb7d.tar.bz2 spack-7dd2ca02077dc15b3a79d9c6ec990973cc46eb7d.tar.xz spack-7dd2ca02077dc15b3a79d9c6ec990973cc46eb7d.zip |
Sherpa: add libs (shared, static, both) variant (#31318)
* Sherpa: add libs (shared, static, both) variant
* PEP-8
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/sherpa/package.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/sherpa/package.py b/var/spack/repos/builtin/packages/sherpa/package.py index d7bb762d26..6ddb10a5cb 100644 --- a/var/spack/repos/builtin/packages/sherpa/package.py +++ b/var/spack/repos/builtin/packages/sherpa/package.py @@ -61,8 +61,10 @@ class Sherpa(AutotoolsPackage): variant('pythia', default=True, description='Enable fragmentation/decay interface to Pythia') variant('blackhat', default=False, description='Enable BLACKHAT support') variant('ufo', default=False, description='Enable UFO support') - # cernlib not yet in spack variant('hztool', default=False, description='Enable HZTOOL support') + variant('libs', default='shared,static', values=('shared', 'static'), + multi=True, description='Build shared libs, static libs or both') + # cernlib not yet in spack # variant('cernlib', default=False, description='Enable CERNLIB support') variant('cms', default=False, description="Append CXXFLAGS used by CMS experiment") @@ -113,11 +115,10 @@ class Sherpa(AutotoolsPackage): def configure_args(self): args = [] - args.append('--enable-shared') args.append('--enable-binreloc') - args.append('--enable-static') args.append('--enable-hepevtsize=200000') args.append('--with-sqlite3=' + self.spec['sqlite'].prefix) + args.extend(self.enable_or_disable('libs')) args.extend(self.enable_or_disable('mpi')) args.extend(self.enable_or_disable('pyext', variant='python')) args.extend(self.enable_or_disable('analysis')) |