diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/lrslib/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/lrslib/package.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/lrslib/package.py b/var/spack/repos/builtin/packages/lrslib/package.py index 68a907ea59..3825867bb6 100644 --- a/var/spack/repos/builtin/packages/lrslib/package.py +++ b/var/spack/repos/builtin/packages/lrslib/package.py @@ -33,10 +33,6 @@ class Lrslib(Package): homepage = "http://cgm.cs.mcgill.ca/~avis/C/lrs.html" url = "http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-062.tar.gz" - def url_for_version(self, version): - return ("http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-%s.tar.gz" % - ('0' + str(version).replace('.', ''))) - version('6.2', 'be5da7b3b90cc2be628dcade90c5d1b9') version('6.1', '0b3687c8693cd7d1f234a3f65e147551') version('6.0', 'd600a2e62969ad03f7ab2f85f1b3709c') @@ -51,6 +47,10 @@ class Lrslib(Package): patch("Makefile.spack.patch") + def url_for_version(self, version): + url = "http://cgm.cs.mcgill.ca/~avis/C/lrslib/archive/lrslib-0{0}.tar.gz" + return url.format(version.joined) + def install(self, spec, prefix): # The Makefile isn't portable; use our own instead makeargs = ["-f", "Makefile.spack", |