
Add language dependencies `c`, `cxx`, and `fortran`. These `depends_on` statements are auto-generated based on file extensions found in source tarballs/zipfiles. The `# generated` comment can be removed by package maintainers after validating correctness.
37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
# Copyright 2013-2024 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.package 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")
|
|
|
|
license("GPL-2.0-or-later")
|
|
|
|
version("0.65", sha256="ba0cfaa1ff6ead2b15c62a67292de66a366f9b815a09697b54677f7e15f5a2b2")
|
|
version("0.63", sha256="01f0b331e07e62c70d58c2dabbb68f5c4ddae4ee6f2d8f070fd1e316108af72c")
|
|
|
|
depends_on("c", type="build") # generated
|
|
|
|
depends_on("perl", type="build")
|
|
depends_on("docbook-xsl", type="build")
|
|
depends_on("libxml2", type="build")
|
|
depends_on("libxslt", 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
|