summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-10-05 04:39:55 -0500
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-10-05 11:39:55 +0200
commitc45ecafd71025b9d5edce99f3c22a23e63fa5781 (patch)
tree56b66fe35e0f01c5d74c86665d34c821c529c912 /var
parent6a1021b81cb3e0de3510c5d0b410d49055d73f0e (diff)
downloadspack-c45ecafd71025b9d5edce99f3c22a23e63fa5781.tar.gz
spack-c45ecafd71025b9d5edce99f3c22a23e63fa5781.tar.bz2
spack-c45ecafd71025b9d5edce99f3c22a23e63fa5781.tar.xz
spack-c45ecafd71025b9d5edce99f3c22a23e63fa5781.zip
procps: new package (#13043)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/procps/package.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/procps/package.py b/var/spack/repos/builtin/packages/procps/package.py
new file mode 100644
index 0000000000..ff51b4e57a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/procps/package.py
@@ -0,0 +1,43 @@
+# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class Procps(AutotoolsPackage):
+ """Command line and full screen utilities for browsing procfs, a "pseudo"
+ file system dynamically generated by the kernel to provide information
+ about the status of entries in its process table."""
+
+ homepage = "https://gitlab.com/procps-ng/procps"
+ git = "https://gitlab.com/procps-ng/procps.git"
+
+ version('master', branch='master')
+ version('3.3.15', tag='v3.3.15')
+
+ depends_on('autoconf', type='build')
+ depends_on('automake', type='build')
+ depends_on('libtool', type='build')
+ depends_on('m4', type='build')
+ depends_on('pkgconfig@0.9.0:', type='build')
+ depends_on('dejagnu', type='test')
+ depends_on('libiconv')
+ depends_on('gettext')
+ depends_on('ncurses')
+
+ conflicts('platform=darwin', msg='procps is linux-only')
+
+ def autoreconf(self, spec, prefix):
+ sh = which('sh')
+ sh('autogen.sh')
+
+ def configure_args(self):
+ return [
+ '--with-libiconv-prefix={0}'.format(self.spec['libiconv'].prefix),
+ '--with-libintl-prefix={0}'.format(self.spec['gettext'].prefix),
+ '--with-ncurses',
+ # Required to avoid libintl linking errors
+ '--disable-nls',
+ ]