mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
52 lines
924 B
Bash
52 lines
924 B
Bash
SUMMARY="A grep-like text finder"
|
|
DESCRIPTION="ack is designed as an alternative to grep for programmers."
|
|
HOMEPAGE="https://beyondgrep.com/"
|
|
COPYRIGHT="2005-2020 Andy Lester"
|
|
LICENSE="Artistic"
|
|
REVISION="3"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/ack-v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="ea7caa14f757de083310ed2cba298661ddcca5dee06ec8f18043ea625a79df20"
|
|
SOURCE_DIR="ack-v$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
ack = $portVersion
|
|
cmd:ack
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
file_next
|
|
vendor_perl
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
file_next >= 1.18
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
perl Makefile.PL PREFIX=$prefix
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make pure_install
|
|
|
|
# remove architecture-specific files
|
|
cd $prefix
|
|
rm -r $(perl -V:vendorarch | cut -d\' -f2 | cut -d/ -f5-)
|
|
# cut extracts the quoted string and strips the prefix (which is perl's and not ours)
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make test
|
|
}
|