diff options
author | Matthias Diener <mdiener@illinois.edu> | 2020-01-28 15:02:07 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2020-01-28 15:02:07 -0600 |
commit | 94def872ee41ebfeb0736745d031b64304dc2983 (patch) | |
tree | 4a1a19c43472f1e0136dfc7d35d951aad3f90cb2 | |
parent | f17ce36da2a7baafbab82633b511cfc2ce81408c (diff) | |
download | spack-94def872ee41ebfeb0736745d031b64304dc2983.tar.gz spack-94def872ee41ebfeb0736745d031b64304dc2983.tar.bz2 spack-94def872ee41ebfeb0736745d031b64304dc2983.tar.xz spack-94def872ee41ebfeb0736745d031b64304dc2983.zip |
Moreutils: add new package (#14653)
* moreutils: add new package
* fix flake8
-rw-r--r-- | var/spack/repos/builtin/packages/moreutils/package.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/moreutils/package.py b/var/spack/repos/builtin/packages/moreutils/package.py new file mode 100644 index 0000000000..96e081c92a --- /dev/null +++ b/var/spack/repos/builtin/packages/moreutils/package.py @@ -0,0 +1,30 @@ +# Copyright 2013-2020 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 Moreutils(MakefilePackage): + """Additional Unix utilities. This is a growing collection of the Unix + tools that nobody thought to write long ago, when Unix was young.""" + + homepage = "https://joeyh.name/code/moreutils" + url = "https://deb.debian.org/debian/pool/main/m/moreutils/moreutils_0.63.orig.tar.xz" + + maintainers = ['matthiasdiener'] + + version('0.63', sha256='01f0b331e07e62c70d58c2dabbb68f5c4ddae4ee6f2d8f070fd1e316108af72c') + + depends_on('perl', type='build') + depends_on('docbook-xsl', type='build') + depends_on('libxml2', type='build') + + def edit(self, spec, prefix): + isutf8_makefile = FileFilter('is_utf8/Makefile') + isutf8_makefile.filter('CC = .*', '') + + env['DOCBOOKXSL'] = spec['docbook-xsl'].prefix + env['PREFIX'] = self.prefix |