mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
file_slurper: new perl module recipe
This commit is contained in:
54
dev-perl/file_slurper/file_slurper-0.014.recipe
Normal file
54
dev-perl/file_slurper/file_slurper-0.014.recipe
Normal file
@@ -0,0 +1,54 @@
|
||||
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="1"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user