From 272267e2e7c699f7d6f2bfcd2898d8e792cc583c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 22 Sep 2024 22:00:14 +0200 Subject: [PATCH] role_tiny: new perl module recipe --- dev-perl/role_tiny/role_tiny-2.002004.recipe | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 dev-perl/role_tiny/role_tiny-2.002004.recipe diff --git a/dev-perl/role_tiny/role_tiny-2.002004.recipe b/dev-perl/role_tiny/role_tiny-2.002004.recipe new file mode 100644 index 000000000..a401f73cc --- /dev/null +++ b/dev-perl/role_tiny/role_tiny-2.002004.recipe @@ -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 +}