mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
55 lines
1.1 KiB
Bash
55 lines
1.1 KiB
Bash
SUMMARY="A simple, sane and efficient module to slurp a file"
|
|
DESCRIPTION="This module provides functions for fast and correct slurping and spewing. All \
|
|
functions are optionally exported. All functions throw exceptions on errors, write functions \
|
|
don't return any meaningful value."
|
|
HOMEPAGE="https://metacpan.org/pod/File::Slurper"
|
|
COPYRIGHT="2014 by Leon Timmermans"
|
|
LICENSE="Artistic"
|
|
REVISION="2"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/L/LE/LEONT/File-Slurper-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="d5a36487339888c3cd758e648160ee1d70eb4153cacbaff57846dbcefb344b0c"
|
|
SOURCE_DIR="File-Slurper-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
file_slurper = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
vendor_perl
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:make
|
|
cmd:perl
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
test_warnings
|
|
"
|
|
|
|
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
|
|
}
|