2018-10-08 04:52:23 +08:00
|
|
|
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
|
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
2016-05-12 12:22:25 +08:00
|
|
|
#
|
2018-10-08 04:52:23 +08:00
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
2015-02-08 01:18:34 +08:00
|
|
|
from spack import *
|
2016-08-10 16:50:00 +08:00
|
|
|
|
2015-02-08 01:18:34 +08:00
|
|
|
|
2017-03-25 05:44:54 +08:00
|
|
|
class UtilLinux(AutotoolsPackage):
|
2015-02-08 01:18:34 +08:00
|
|
|
"""Util-linux is a suite of essential utilities for any Linux system."""
|
|
|
|
|
|
|
|
homepage = "http://freecode.com/projects/util-linux"
|
2017-05-16 01:47:03 +08:00
|
|
|
url = "https://www.kernel.org/pub/linux/utils/util-linux/v2.29/util-linux-2.29.2.tar.gz"
|
2017-03-25 05:44:54 +08:00
|
|
|
list_url = "https://www.kernel.org/pub/linux/utils/util-linux"
|
2017-04-02 05:03:54 +08:00
|
|
|
list_depth = 1
|
2015-02-08 01:18:34 +08:00
|
|
|
|
2017-05-16 01:47:03 +08:00
|
|
|
version('2.29.2', '24e0c67aac6f5c2535208866a42aeea2')
|
2017-03-25 05:44:54 +08:00
|
|
|
version('2.29.1', 'c7d5c111ef6bc5df65659e0b523ac9d9')
|
|
|
|
version('2.25', 'f6d7fc6952ec69c4dc62c8d7c59c1d57')
|
2015-02-08 01:18:34 +08:00
|
|
|
|
2017-03-25 05:44:54 +08:00
|
|
|
depends_on('python@2.7:')
|
2015-02-08 01:18:34 +08:00
|
|
|
|
2017-03-25 05:44:54 +08:00
|
|
|
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)
|
2015-02-08 01:18:34 +08:00
|
|
|
|
2017-03-25 05:44:54 +08:00
|
|
|
def configure_args(self):
|
|
|
|
spec = self.spec
|
|
|
|
|
|
|
|
return [
|
|
|
|
'PKG_CONFIG_PATH={0}'.format(
|
|
|
|
join_path(spec['python'].prefix.lib, 'pkgconfig')),
|
|
|
|
'--disable-use-tty-group',
|
|
|
|
]
|