Skip to content

Commit 94def87

Browse files
matthiasdieneradamjstewart
authored andcommitted
Moreutils: add new package (spack#14653)
* moreutils: add new package * fix flake8
1 parent f17ce36 commit 94def87

File tree

1 file changed

+30
-0
lines changed
  • var/spack/repos/builtin/packages/moreutils

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
2+
# Spack Project Developers. See the top-level COPYRIGHT file for details.
3+
#
4+
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
5+
6+
7+
from spack import *
8+
9+
10+
class Moreutils(MakefilePackage):
11+
"""Additional Unix utilities. This is a growing collection of the Unix
12+
tools that nobody thought to write long ago, when Unix was young."""
13+
14+
homepage = "https://joeyh.name/code/moreutils"
15+
url = "https://deb.debian.org/debian/pool/main/m/moreutils/moreutils_0.63.orig.tar.xz"
16+
17+
maintainers = ['matthiasdiener']
18+
19+
version('0.63', sha256='01f0b331e07e62c70d58c2dabbb68f5c4ddae4ee6f2d8f070fd1e316108af72c')
20+
21+
depends_on('perl', type='build')
22+
depends_on('docbook-xsl', type='build')
23+
depends_on('libxml2', type='build')
24+
25+
def edit(self, spec, prefix):
26+
isutf8_makefile = FileFilter('is_utf8/Makefile')
27+
isutf8_makefile.filter('CC = .*', '')
28+
29+
env['DOCBOOKXSL'] = spec['docbook-xsl'].prefix
30+
env['PREFIX'] = self.prefix

0 commit comments

Comments
 (0)