From a19b648c0a631982e8bf086a2f002d3489d5a4da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 9 Jun 2024 21:00:45 +0200 Subject: [PATCH] file_slurp: cleanup, add tests --- dev-perl/file_slurp/file_slurp-9999.32.recipe | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dev-perl/file_slurp/file_slurp-9999.32.recipe b/dev-perl/file_slurp/file_slurp-9999.32.recipe index 3716e0f8c..0cfb97ece 100644 --- a/dev-perl/file_slurp/file_slurp-9999.32.recipe +++ b/dev-perl/file_slurp/file_slurp-9999.32.recipe @@ -5,7 +5,7 @@ contents and to be very efficient. There is also a sub to read in all the files HOMEPAGE="https://metacpan.org/pod/File::Slurp" COPYRIGHT="2003-2022 Uri Guttman" LICENSE="Artistic" -REVISION="1" +REVISION="2" SOURCE_URI="https://cpan.metacpan.org/authors/id/C/CA/CAPOEIRAB/File-Slurp-$portVersion.tar.gz" CHECKSUM_SHA256="4c3c21992a9d42be3a79dd74a3c83d27d38057269d65509a2f555ea0fb2bc5b0" SOURCE_DIR="File-Slurp-$portVersion" @@ -36,5 +36,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 }