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

71 lines
1.2 KiB
Bash

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="http://www.gnu.org/software/grep/"
COPYRIGHT="1992-2012 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="5"
SOURCE_URI="http://ports-space.haiku-files.org/source/grep-2.14.tar.bz2"
CHECKSUM_SHA256="0aa728dbb92eeec776f9551fcee1931717984a91cfd8c3df3dfb40709243ae6f"
PATCHES="grep-2.14-gcc2.patch"
ARCHITECTURES="all ?x86_gcc2"
PROVIDES="
grep = $portVersion compat >= 2
cmd:egrep = $portVersion compat >= 2
cmd:fgrep = $portVersion compat >= 2
cmd:grep = $portVersion compat >= 2
"
REQUIRES="
haiku
lib:libiconv
lib:libintl
"
BUILD_REQUIRES="
devel:libiconv
devel:libintl
"
BUILD_PREREQUIRES="
haiku_devel
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc
cmd:gettext
cmd:ld
cmd:libtoolize
cmd:make
"
defineDebugInfoPackage grep \
$binDir/egrep \
$binDir/fgrep \
$binDir/grep
BUILD()
{
libtoolize --force --copy --install
aclocal -I m4
autoconf
runConfigure ./configure \
--disable-perl-regexp
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/charset.alias
rmdir $libDir
}
TEST()
{
make check
}