role_tiny: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-09-22 22:00:14 +02:00
parent f8508e94a1
commit 272267e2e7

View File

@@ -0,0 +1,48 @@
SUMMARY="Roles: a nouvelle cuisine portion size slice of Moose"
DESCRIPTION="Role::Tiny is a minimalist role composition tool."
HOMEPAGE="https://metacpan.org/pod/Role::Tiny"
COPYRIGHT="2010-2012 the Role::Tiny author and contributors"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/H/HA/HAARG/Role-Tiny-$portVersion.tar.gz"
CHECKSUM_SHA256="d7bdee9e138a4f83aa52d0a981625644bda87ff16642dfa845dcb44d9a242b45"
SOURCE_DIR="Role-Tiny-$portVersion"
ARCHITECTURES="any"
PROVIDES="
role_tiny = $portVersion
"
REQUIRES="
haiku
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
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
}