From 5b2f2bb0a2f858539959f5d1077089525c9c7cc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 17 Sep 2023 10:29:37 +0200 Subject: [PATCH] capture_tiny: add tests, cleanup --- dev-perl/capture_tiny/capture_tiny-0.48.recipe | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dev-perl/capture_tiny/capture_tiny-0.48.recipe b/dev-perl/capture_tiny/capture_tiny-0.48.recipe index 42cc9d3bb..b57d89dc5 100644 --- a/dev-perl/capture_tiny/capture_tiny-0.48.recipe +++ b/dev-perl/capture_tiny/capture_tiny-0.48.recipe @@ -7,7 +7,7 @@ capturing modules to use in any particular situation and just use this one." HOMEPAGE="https://metacpan.org/pod/Capture::Tiny" COPYRIGHT="2009 by David Golden" LICENSE="Apache v2" -REVISION="1" +REVISION="2" SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-$portVersion.tar.gz" CHECKSUM_SHA256="6c23113e87bad393308c90a207013e505f659274736638d8c79bac9c67cc3e19" SOURCE_DIR="Capture-Tiny-$portVersion" @@ -38,5 +38,15 @@ BUILD() INSTALL() { - make install DESTDIR="${DESTDIR}" + 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 }