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

71 lines
1.2 KiB
Bash
Raw Permalink Normal View History

SUMMARY="GNU regular expression matcher"
2014-01-02 21:40:58 +00:00
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."
2018-09-05 12:26:47 +00:00
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"
2018-09-05 12:26:47 +00:00
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
"
2018-09-05 12:26:47 +00:00
BUILD_REQUIRES="
devel:libiconv
devel:libintl
"
BUILD_PREREQUIRES="
haiku_devel
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc
2013-06-15 19:54:07 +00:00
cmd:gettext
cmd:ld
cmd:libtoolize
cmd:make
"
defineDebugInfoPackage grep \
$binDir/egrep \
$binDir/fgrep \
$binDir/grep
BUILD()
{
2013-03-29 14:04:07 +00:00
libtoolize --force --copy --install
aclocal -I m4
autoconf
runConfigure ./configure \
2013-03-29 14:04:07 +00:00
--disable-perl-regexp
make $jobArgs
2013-03-29 14:04:07 +00:00
}
INSTALL()
{
2013-03-29 14:04:07 +00:00
make install
rm $libDir/charset.alias
rmdir $libDir
2013-03-29 14:04:07 +00:00
}
TEST()
{
2013-03-29 14:04:07 +00:00
make check
}