summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hwloc/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hwloc/package.py b/var/spack/repos/builtin/packages/hwloc/package.py
index cb1a23c33e..4edabfbf4a 100644
--- a/var/spack/repos/builtin/packages/hwloc/package.py
+++ b/var/spack/repos/builtin/packages/hwloc/package.py
@@ -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 @@ class Hwloc(AutotoolsPackage):
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'))