Merge pull request #257 from eschnett/eschnett/hwloc-1.11.2

Update hwloc; don't require libpciaccess on OS X
This commit is contained in:
Todd Gamblin 2015-12-22 15:18:39 -08:00
commit d1d23ec5e6
2 changed files with 9 additions and 1 deletions

View file

@ -15,6 +15,8 @@ class Hwloc(Package):
homepage = "http://www.open-mpi.org/projects/hwloc/"
url = "http://www.open-mpi.org/software/hwloc/v1.9/downloads/hwloc-1.9.tar.gz"
version('1.11.2', '486169cbe111cdea57be12638828ebbf',
url='http://www.open-mpi.org/software/hwloc/v1.11/downloads/hwloc-1.11.2.tar.bz2')
version('1.11.1', '002742efd3a8431f98d6315365a2b543',
url='http://www.open-mpi.org/software/hwloc/v1.11/downloads/hwloc-1.11.1.tar.bz2')
version('1.9', '1f9f9155682fe8946a97c08896109508')
@ -26,4 +28,3 @@ def install(self, spec, prefix):
make()
make("install")

View file

@ -1,4 +1,5 @@
from spack import *
import os.path
class Libpciaccess(Package):
"""Generic PCI access library."""
@ -13,6 +14,12 @@ class Libpciaccess(Package):
depends_on('libtool')
def install(self, spec, prefix):
# libpciaccess does not support OS X
if spec.satisfies('=darwin-x86_64'):
# create a dummy directory
mkdir(prefix.lib)
return
from subprocess import call
call(["./autogen.sh"])
configure("--prefix=%s" % prefix)