diff options
author | Alfredo Gimenez <gimenez1@llnl.gov> | 2015-02-07 09:18:34 -0800 |
---|---|---|
committer | Alfredo Gimenez <gimenez1@llnl.gov> | 2015-02-07 09:18:34 -0800 |
commit | 932f3930f43e10f22c06ede6bb963a23989443c1 (patch) | |
tree | a10e1decae626f1f63c360bc7bf84d9a750d2cb8 | |
parent | 676cc84c9e0a845fab117fde4ff0b1dca0b2d792 (diff) | |
download | spack-932f3930f43e10f22c06ede6bb963a23989443c1.tar.gz spack-932f3930f43e10f22c06ede6bb963a23989443c1.tar.bz2 spack-932f3930f43e10f22c06ede6bb963a23989443c1.tar.xz spack-932f3930f43e10f22c06ede6bb963a23989443c1.zip |
util-linux added
-rw-r--r-- | var/spack/packages/libdrm/package.py | 5 | ||||
-rw-r--r-- | var/spack/packages/util-linux/package.py | 20 |
2 files changed, 20 insertions, 5 deletions
diff --git a/var/spack/packages/libdrm/package.py b/var/spack/packages/libdrm/package.py index 9164db8141..3a657e8ecc 100644 --- a/var/spack/packages/libdrm/package.py +++ b/var/spack/packages/libdrm/package.py @@ -10,13 +10,8 @@ class Libdrm(Package): version('2.4.59', '105ac7af1afcd742d402ca7b4eb168b6') - # FIXME: Add dependencies if this package requires them. - # depends_on("foo") - def install(self, spec, prefix): - # FIXME: Modify the configure line to suit your build system here. configure("--prefix=%s" % prefix) - # FIXME: Add logic to build and install here make() make("install") diff --git a/var/spack/packages/util-linux/package.py b/var/spack/packages/util-linux/package.py new file mode 100644 index 0000000000..cb7ceabf57 --- /dev/null +++ b/var/spack/packages/util-linux/package.py @@ -0,0 +1,20 @@ +from spack import * +import os + +class UtilLinux(Package): + """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" + + version('2.25', 'f6d7fc6952ec69c4dc62c8d7c59c1d57') + + 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") + + make() + make("install") |