diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2019-10-07 04:11:17 -0500 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2019-10-07 11:11:17 +0200 |
commit | c8c795e7dbde22dc47c9ae285a4dd59004b115b1 (patch) | |
tree | e9f1cdda36c1d4b7856349a6a60abd23d4b3f9fc /var | |
parent | 7d0e7efabb8d7ea01b2d7f163065e76a17e135b4 (diff) | |
download | spack-c8c795e7dbde22dc47c9ae285a4dd59004b115b1.tar.gz spack-c8c795e7dbde22dc47c9ae285a4dd59004b115b1.tar.bz2 spack-c8c795e7dbde22dc47c9ae285a4dd59004b115b1.tar.xz spack-c8c795e7dbde22dc47c9ae285a4dd59004b115b1.zip |
watch: added new package (#13044)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/watch/package.py | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/watch/package.py b/var/spack/repos/builtin/packages/watch/package.py new file mode 100644 index 0000000000..760bd8b187 --- /dev/null +++ b/var/spack/repos/builtin/packages/watch/package.py @@ -0,0 +1,49 @@ +# 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 Watch(AutotoolsPackage): + """Executes a program periodically, showing output fullscreen.""" + + # Note: there is a separate procps package, but it doesn't build on macOS. + # This package only contains the `watch` program, a subset of procps which + # does build on macOS. + # https://github.com/NixOS/nixpkgs/issues/18929#issuecomment-249388571 + 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('ncurses') + + # https://github.com/Homebrew/homebrew-core/blob/master/Formula/watch.rb + def autoreconf(self, spec, prefix): + sh = which('sh') + sh('autogen.sh') + + def configure_args(self): + return [ + '--with-ncurses', + # Required to avoid libintl linking errors + '--disable-nls', + ] + + def build(self, spec, prefix): + make('watch') + + def install(self, spec, prefix): + mkdirp(prefix.bin) + mkdirp(prefix.man.man1) + + install('watch', prefix.bin) + install('watch.1', prefix.man.man1) |