From 90a7c846f6d34eb37af087a83abc4c3a45620714 Mon Sep 17 00:00:00 2001 From: arjun-raj-kuppala <60718144+arjun-raj-kuppala@users.noreply.github.com> Date: Thu, 21 Jan 2021 08:47:55 -0800 Subject: [PATCH] install lib/headers option support (#21186) --- var/spack/repos/builtin/packages/pciutils/package.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)