hwloc: Add libudev variant. (#16615)

* hwloc: Add libudev variant.

* typo fix.

* Wrong version for libudev variant is fixed.

* Add maintainers.
This commit is contained in:
Toyohisa Kameyama 2020-05-18 10:00:23 +09:00 committed by GitHub
parent a4d64402ae
commit ffdd94dd9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,8 @@ class Hwloc(AutotoolsPackage):
list_depth = 2
git = 'https://github.com/open-mpi/hwloc.git'
maintainers = ['bgoglin']
version('master', branch='master')
version('2.2.0', sha256='2defba03ddd91761b858cbbdc2e3a6e27b44e94696dbfa21380191328485a433')
version('2.1.0', sha256='1fb8cc1438de548e16ec3bb9e4b2abb9f7ce5656f71c0906583819fcfa8c2031')
@ -50,6 +52,7 @@ class Hwloc(AutotoolsPackage):
variant('gl', default=False, description="Support GL device discovery")
variant('cuda', default=False, description="Support CUDA devices")
variant('libxml2', default=True, description="Build with libxml2")
variant('libudev', default=False, description="Build with libudev")
variant('pci', default=(sys.platform != 'darwin'),
description="Support analyzing devices on PCI bus")
variant('shared', default=True, description="Build shared libraries")
@ -67,6 +70,9 @@ class Hwloc(AutotoolsPackage):
# netloc isn't available until version 2.0.0
conflicts('+netloc', when="@:1.99.99")
# libudev isn't available until version 1.11.0
conflicts('+libudev', when="@:1.10")
depends_on('pkgconfig', type='build')
depends_on('m4', type='build', when='@master')
depends_on('autoconf', type='build', when='@master')
@ -102,6 +108,7 @@ def configure_args(self):
args.extend(self.enable_or_disable('gl'))
args.extend(self.enable_or_disable('cuda'))
args.extend(self.enable_or_disable('libxml2'))
args.extend(self.enable_or_disable('libudev'))
args.extend(self.enable_or_disable('pci'))
args.extend(self.enable_or_disable('shared'))