install lib/headers option support (#21186)

This commit is contained in:
arjun-raj-kuppala 2021-01-21 08:47:55 -08:00 committed by GitHub
parent 2957f76cb1
commit 90a7c846f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,12 @@ 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):
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):