mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
78 lines
1.8 KiB
Bash
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-2018 Free Software Foundation, Inc."
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://ftpmirror.gnu.org/sed/sed-$portVersion.tar.xz
|
|
https://ftp.gnu.org/gnu/sed/sed-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="7aad73c8839c2bdadca9476f884d2953cdace9567ecd0d90f9959f229d146b40"
|
|
PATCHES="sed-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64 ?arm"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
sed$secondaryArchSuffix = $portVersion compat >= 4
|
|
cmd:sed$commandSuffix = $portVersion compat >= 4
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
if [ -n "$secondaryArchSuffix" -a -z "$commandSuffix" ]; 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
|
|
}
|