summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/attr/package.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/attr/package.py b/var/spack/repos/builtin/packages/attr/package.py
index a58dc75f4d..549909d209 100644
--- a/var/spack/repos/builtin/packages/attr/package.py
+++ b/var/spack/repos/builtin/packages/attr/package.py
@@ -12,9 +12,17 @@ class Attr(AutotoolsPackage):
homepage = "https://savannah.nongnu.org/projects/attr"
url = "http://download.savannah.gnu.org/releases/attr/attr-2.4.47.src.tar.gz"
+ version('2.4.48', sha256='5ead72b358ec709ed00bbf7a9eaef1654baad937c001c044fe8b74c57f5324e7')
version('2.4.47', sha256='25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859')
version('2.4.46', sha256='dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f')
+ def url_for_version(self, version):
+ if version >= Version('2.4.48'):
+ url = 'http://download.savannah.gnu.org/releases/attr/attr-{0}.tar.gz'
+ else:
+ url = 'http://download.savannah.gnu.org/releases/attr/attr-{0}.src.tar.gz'
+ return url.format(version)
+
def configure_args(self):
args = []
args.append('--disable-static')
@@ -22,5 +30,7 @@ class Attr(AutotoolsPackage):
# Ref. http://www.linuxfromscratch.org/blfs/view/7.5/postlfs/attr.html
def install(self, spec, prefix):
- make()
- make('install', 'install-dev', 'install-lib')
+ if self.version >= Version('2.4.48'):
+ make('install')
+ else:
+ make('install', 'install-dev', 'install-lib')