Add latest version of util-linux (#3551)
This commit is contained in:
parent
821155470c
commit
6461737bba
@ -25,20 +25,28 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class UtilLinux(Package):
|
class UtilLinux(AutotoolsPackage):
|
||||||
"""Util-linux is a suite of essential utilities for any Linux system."""
|
"""Util-linux is a suite of essential utilities for any Linux system."""
|
||||||
|
|
||||||
homepage = "http://freecode.com/projects/util-linux"
|
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.29.1', 'c7d5c111ef6bc5df65659e0b523ac9d9')
|
||||||
version('2.25', 'f6d7fc6952ec69c4dc62c8d7c59c1d57')
|
version('2.25', 'f6d7fc6952ec69c4dc62c8d7c59c1d57')
|
||||||
|
|
||||||
depends_on("python@2.7:")
|
depends_on('python@2.7:')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def url_for_version(self, version):
|
||||||
configure("--prefix=%s" % prefix,
|
url = "https://www.kernel.org/pub/linux/utils/util-linux/v{0}/util-linux-{1}.tar.gz"
|
||||||
"PKG_CONFIG_PATH=%s/pkgconfig" % spec['python'].prefix.lib,
|
return url.format(version.up_to(2), version)
|
||||||
"--disable-use-tty-group")
|
|
||||||
|
|
||||||
make()
|
def configure_args(self):
|
||||||
make("install")
|
spec = self.spec
|
||||||
|
|
||||||
|
return [
|
||||||
|
'PKG_CONFIG_PATH={0}'.format(
|
||||||
|
join_path(spec['python'].prefix.lib, 'pkgconfig')),
|
||||||
|
'--disable-use-tty-group',
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user