0
0
Fork 0
haikuports/sys-apps/sed/sed-4.4.recipe

78 lines
1.8 KiB
Bash

SUMMARY="The famous stream editor"
DESCRIPTION="Sed is a stream editor, i.e. it can be used to perform basic \
text transformations on an input stream (a file or input from a pipeline).
While in some ways similar to an editor which permits scripted edits (such as \
ed), sed works by making only one pass over the input(s), and is consequently \
more efficient. But it is sed's ability to filter text in a pipeline which \
particularly distinguishes it from other types of editors."
HOMEPAGE="https://www.gnu.org/software/sed/"
COPYRIGHT="1989-2017 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="3"
SOURCE_URI="https://ftpmirror.gnu.org/sed/sed-$portVersion.tar.xz
https://ftp.gnu.org/gnu/sed/sed-$portVersion.tar.xz"
CHECKSUM_SHA256="cbd6ebc5aaf080ed60d0162d7f6aeae58211a1ee9ba9bb25623daa6cd942683b"
PATCHES="sed-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2 ?arm"
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="x86"
fi
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandBinDir=$prefix/bin
fi
PROVIDES="
sed$secondaryArchSuffix = $portVersion compat >= 4
cmd:sed = $portVersion compat >= 4
"
REQUIRES="
haiku$secondaryArchSuffix
"
if [ -n "$secondaryArchSuffix" ]; then
CONFLICTS="
sed
"
fi
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:g++$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:make
"
TEST_REQUIRES="
cmd:cmp
"
defineDebugInfoPackage sed$secondaryArchSuffix \
"$commandBinDir"/sed
BUILD()
{
runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir" \
--enable-regex-tests --without-included-regex \
--disable-rpath --with-gnu-ld
make $jobArgs
}
INSTALL()
{
make install
rm "$libDir"/charset.alias
rmdir "$libDir"
}
TEST()
{
make check
}