diff options
-rw-r--r-- | var/spack/repos/builtin/packages/pciutils/package.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/pciutils/package.py b/var/spack/repos/builtin/packages/pciutils/package.py index c48aef17e8..8dbb649f1a 100644 --- a/var/spack/repos/builtin/packages/pciutils/package.py +++ b/var/spack/repos/builtin/packages/pciutils/package.py @@ -16,8 +16,13 @@ class Pciutils(MakefilePackage): version('3.6.4', sha256='551d0ac33f030868b7e95c29e58dc2b1882455dbc9c15c15adf7086e664131f1') version('3.6.3', sha256='7ab0fbb35cffa326eb852539260562bac14f3d27cda8c70bc2cf3211ed97c014') + variant('lib', default=False, description='Install libraries with headers') + def install(self, spec, prefix): - make('install', 'PREFIX={0}'.format(prefix)) + if '+lib' in spec: + make('install-lib', 'install', 'PREFIX={0}'.format(prefix)) + else: + make('install', 'PREFIX={0}'.format(prefix)) def setup_run_environment(self, env): env.prepend_path('PATH', self.prefix.sbin) |