Files
haikuports/sys-apps/moreutils/moreutils-0.70.recipe
2025-02-10 14:54:19 -07:00

119 lines
2.8 KiB
Bash

SUMMARY="Collection of tools that nobody thought to write when Unix was young"
DESCRIPTION="What's included...
* combine: combine the lines in two files using boolean operations
* errno: look up errno names and descriptions
* ifdata: get network interface info without parsing ifconfig output
* ifne: run a program if the standard input is not empty
* isutf8: check if a file or standard input is utf-8
* lckdo: execute a program with a lock held
* mispipe: pipe two commands, returning the exit status of the first
* parallel-moreutils: run multiple jobs at once
* pee: tee standard input to pipes
* sponge: soak up standard input and write to a file
* vidir: edit a directory in your text editor
* vipe: insert a text editor into a pipe
* zrun: automatically uncompress arguments to command
"
HOMEPAGE="https://joeyh.name/code/moreutils/"
COPYRIGHT="2006-2015 Joey Hess
2016 Julien Palard
2006-2008 Tollef Fog Heen
2002 Benjamin BAYART
2006 Miek Gieben
2006 Chung-chieh Shan
2004 Nathanael Nerode
Michael Tokarev
2008 Javier Merino
2012 Lars Wirzenius
2000-2006 Free Software Foundation, Inc.
"
LICENSE="GNU GPL v2
BSD (2-clause)
Public Domain
"
REVISION="1"
SOURCE_URI="https://git.joeyh.name/index.cgi/moreutils.git/snapshot/moreutils-0.70.tar.gz"
CHECKSUM_SHA256="f2bf46d410ba567cc8d01507e94916994e48742722e690dc498fab59f5250132"
PATCHES="moreutils-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
moreutils$secondaryArchSuffix = $portVersion
cmd:combine
cmd:errno
cmd:ifdata
cmd:ifne
cmd:isutf8
cmd:lckdo
cmd:mispipe
cmd:parallel_moreutils
cmd:pee
cmd:sponge
cmd:vidir
cmd:vipe
cmd:zrun
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:perl
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
docbook_xsl_stylesheets
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:pod2man
cmd:xmllint
cmd:xsltproc
"
defineDebugInfoPackage moreutils$secondaryArchSuffix \
"$prefix/bin/errno" \
"$prefix/bin/ifdata" \
"$prefix/bin/ifne" \
"$prefix/bin/isutf8" \
"$prefix/bin/lckdo" \
"$prefix/bin/mispipe" \
"$prefix/bin/parallel-moreutils" \
"$prefix/bin/pee" \
"$prefix/bin/sponge"
BUILD()
{
make \
LDFLAGS="-Wl,--as-needed" \
LDLIBS="-lnetwork" \
DOCBOOKXSL="http://docbook.sourceforge.net/release/xsl/current"
}
INSTALL()
{
make PREFIX=$prefix install
# man page cleanup
mkdir -pv $manDir
mv -v $prefix/share/man/man1 $manDir
rm -r $prefix/share
# remove some commands that we don't have perl modules for
rm $prefix/bin/chronic $manDir/man1/chronic.1 \
$prefix/bin/ts $manDir/man1/ts.1
# move parallel so we don't conflict with GNU parallel
mv -v $prefix/bin/parallel $prefix/bin/parallel-moreutils
mv -v $manDir/man1/parallel.1 $manDir/man1/parallel-moreutils.1
}
TEST()
{
make check
}