install lib/headers option support (#21186)
This commit is contained in:
parent
2957f76cb1
commit
90a7c846f6
1 changed files with 6 additions and 1 deletions
|
@ -16,8 +16,13 @@ class Pciutils(MakefilePackage):
|
||||||
version('3.6.4', sha256='551d0ac33f030868b7e95c29e58dc2b1882455dbc9c15c15adf7086e664131f1')
|
version('3.6.4', sha256='551d0ac33f030868b7e95c29e58dc2b1882455dbc9c15c15adf7086e664131f1')
|
||||||
version('3.6.3', sha256='7ab0fbb35cffa326eb852539260562bac14f3d27cda8c70bc2cf3211ed97c014')
|
version('3.6.3', sha256='7ab0fbb35cffa326eb852539260562bac14f3d27cda8c70bc2cf3211ed97c014')
|
||||||
|
|
||||||
|
variant('lib', default=False, description='Install libraries with headers')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
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):
|
def setup_run_environment(self, env):
|
||||||
env.prepend_path('PATH', self.prefix.sbin)
|
env.prepend_path('PATH', self.prefix.sbin)
|
||||||
|
|
Loading…
Reference in a new issue