0
0
Fork 0
haikuports/sys-apps/grep/grep-3.6.recipe

93 lines
2.1 KiB
Bash
Raw Permalink Normal View History

2017-02-16 21:28:29 +00:00
SUMMARY="GNU regular expression matcher"
DESCRIPTION="The grep command searches one or more input files for lines \
containing a match to a specified pattern. By default, grep prints the \
matching lines."
HOMEPAGE="https://www.gnu.org/software/grep/"
COPYRIGHT="1992-2016 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="2"
2017-02-16 21:28:29 +00:00
SOURCE_URI="http://ftp.gnu.org/gnu/grep/grep-$portVersion.tar.xz"
2020-11-19 16:02:36 +00:00
CHECKSUM_SHA256="667e15e8afe189e93f9f21a7cd3a7b3f776202f417330b248c2ad4f997d9373e"
PATCHES="grep-$portVersion.patchset"
2017-02-16 21:28:29 +00:00
ARCHITECTURES="all !x86_gcc2 ?arm"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
2017-02-16 21:28:29 +00:00
PROVIDES="
grep$secondaryArchSuffix = $portVersion compat >= 3
cmd:egrep$commandSuffix = $portVersion compat >= 2
cmd:fgrep$commandSuffix = $portVersion compat >= 2
cmd:grep$commandSuffix = $portVersion compat >= 2
2017-02-16 21:28:29 +00:00
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libpcre$secondaryArchSuffix
2017-02-16 21:28:29 +00:00
"
if [ "$targetArchitecture" = x86_gcc2 ]; then
REPLACES="
grep
"
fi
2017-02-16 21:28:29 +00:00
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libpcre$secondaryArchSuffix
2017-02-16 21:28:29 +00:00
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
2017-02-16 21:28:29 +00:00
cmd:make
cmd:makeinfo
cmd:pkg_config$secondaryArchSuffix
2017-02-16 21:28:29 +00:00
"
defineDebugInfoPackage grep$secondaryArchSuffix \
$commandBinDir/grep
2017-02-16 21:28:29 +00:00
BUILD()
{
autoreconf -f -I m4
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir \
--without-included-regex --disable-gcc-warnings
2017-02-16 21:28:29 +00:00
make $jobArgs
}
INSTALL()
{
make install
}
TEST()
{
2018-12-25 22:15:53 +00:00
# SKIPPED: big-hole, big-match, fmbtest, long-line-vs-2GiB-read, \
# long-pattern-perf, mb-non-UTF8-performance, pcre*, proc \
2020-11-19 16:02:36 +00:00
# turkish-eyes, write-error-msg, many-regex-performance
2018-12-25 22:15:53 +00:00
#
2020-11-19 16:02:36 +00:00
# TOTAL: 116
# PASS: 91
# SKIP: 23
2018-12-25 22:15:53 +00:00
# XFAIL: 2
# FAIL: 0
2018-12-25 22:15:53 +00:00
# XPASS: 0
# ERROR: 0
2017-02-16 21:28:29 +00:00
make check
}