diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-03-24 16:44:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-24 16:44:54 -0500 |
commit | 6461737bba24e9a66c09e9b60e9c9148a9406e49 (patch) | |
tree | fc52da30c6e8cb968be0659ce1c14cc70750856d /var | |
parent | 821155470c6bb3e3d3c0d7d4be93430f4591f12c (diff) | |
download | spack-6461737bba24e9a66c09e9b60e9c9148a9406e49.tar.gz spack-6461737bba24e9a66c09e9b60e9c9148a9406e49.tar.bz2 spack-6461737bba24e9a66c09e9b60e9c9148a9406e49.tar.xz spack-6461737bba24e9a66c09e9b60e9c9148a9406e49.zip |
Add latest version of util-linux (#3551)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/util-linux/package.py | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/var/spack/repos/builtin/packages/util-linux/package.py b/var/spack/repos/builtin/packages/util-linux/package.py index 99af170ca1..5bbaa995f8 100644 --- a/var/spack/repos/builtin/packages/util-linux/package.py +++ b/var/spack/repos/builtin/packages/util-linux/package.py @@ -25,20 +25,28 @@ from spack import * -class UtilLinux(Package): +class UtilLinux(AutotoolsPackage): """Util-linux is a suite of essential utilities for any Linux system.""" homepage = "http://freecode.com/projects/util-linux" - url = "https://www.kernel.org/pub/linux/utils/util-linux/v2.25/util-linux-2.25.tar.gz" + url = "https://www.kernel.org/pub/linux/utils/util-linux/v2.29/util-linux-2.29.1.tar.gz" + list_url = "https://www.kernel.org/pub/linux/utils/util-linux" + list_depth = 2 - version('2.25', 'f6d7fc6952ec69c4dc62c8d7c59c1d57') + version('2.29.1', 'c7d5c111ef6bc5df65659e0b523ac9d9') + version('2.25', 'f6d7fc6952ec69c4dc62c8d7c59c1d57') - depends_on("python@2.7:") + depends_on('python@2.7:') - def install(self, spec, prefix): - configure("--prefix=%s" % prefix, - "PKG_CONFIG_PATH=%s/pkgconfig" % spec['python'].prefix.lib, - "--disable-use-tty-group") + def url_for_version(self, version): + url = "https://www.kernel.org/pub/linux/utils/util-linux/v{0}/util-linux-{1}.tar.gz" + return url.format(version.up_to(2), version) - make() - make("install") + def configure_args(self): + spec = self.spec + + return [ + 'PKG_CONFIG_PATH={0}'.format( + join_path(spec['python'].prefix.lib, 'pkgconfig')), + '--disable-use-tty-group', + ] |