mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
role_tiny: new perl module recipe
This commit is contained in:
48
dev-perl/role_tiny/role_tiny-2.002004.recipe
Normal file
48
dev-perl/role_tiny/role_tiny-2.002004.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user