summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-01-26 16:01:17 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2016-01-26 16:01:17 -0800
commitc344b30fc4c09cf9258313df2d1bcaedc0af4c65 (patch)
treea4ef6d21ec95f3f7ebb9eeba1999acd7eea539e9 /var
parentd7bd023afa4bd8d2649edee9117caa9b6b993e44 (diff)
parent58f18d5b12a30b6f567a3278dc44201a1e6d0119 (diff)
downloadspack-c344b30fc4c09cf9258313df2d1bcaedc0af4c65.tar.gz
spack-c344b30fc4c09cf9258313df2d1bcaedc0af4c65.tar.bz2
spack-c344b30fc4c09cf9258313df2d1bcaedc0af4c65.tar.xz
spack-c344b30fc4c09cf9258313df2d1bcaedc0af4c65.zip
Merge pull request #342 from adamjstewart/features/hwloc
Add url_for_version function to calculate url
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hwloc/package.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/hwloc/package.py b/var/spack/repos/builtin/packages/hwloc/package.py
index 7ebede76a3..60b315119b 100644
--- a/var/spack/repos/builtin/packages/hwloc/package.py
+++ b/var/spack/repos/builtin/packages/hwloc/package.py
@@ -14,15 +14,18 @@ class Hwloc(Package):
efficiently."""
homepage = "http://www.open-mpi.org/projects/hwloc/"
url = "http://www.open-mpi.org/software/hwloc/v1.9/downloads/hwloc-1.9.tar.gz"
+ list_url = "http://www.open-mpi.org/software/hwloc/"
+ list_depth = 3
- 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')
+ version('1.11.2', '486169cbe111cdea57be12638828ebbf')
+ version('1.11.1', '002742efd3a8431f98d6315365a2b543')
+ version('1.9', '1f9f9155682fe8946a97c08896109508')
depends_on('libpciaccess')
+ def url_for_version(self, version):
+ return "http://www.open-mpi.org/software/hwloc/v%s/downloads/hwloc-%s.tar.gz" % (version.up_to(2), version)
+
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)