From 40c15d641386dae7c645f25eb0d76c3947f8d5f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 9 Jun 2024 16:51:15 +0200 Subject: [PATCH] archive_extract: cleanup, add tests (#9403) * archive_extract: remove unneeded architure-specific files these are: * `perllocal.pod` (in archlib): this is a documentation file intended to list all locally installed packages, but the file is shared by all packages and is therefore useless. * `.packlist` (in vendorarch): this is package specific and lists all other installed files. It is probably used for supporting `make uninstall` which isn't needed for packaged software. * archive_extract: use `make pure_install` to deal with perllocal.pod, add tests --- .../archive_extract/archive_extract-0.88.recipe | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dev-perl/archive_extract/archive_extract-0.88.recipe b/dev-perl/archive_extract/archive_extract-0.88.recipe index f34db1333..50bec2a94 100644 --- a/dev-perl/archive_extract/archive_extract-0.88.recipe +++ b/dev-perl/archive_extract/archive_extract-0.88.recipe @@ -6,7 +6,7 @@ commandline tools" HOMEPAGE="https://metacpan.org/pod/Archive::Extract" COPYRIGHT="2006-2021 Andy Lester" LICENSE="Artistic" -REVISION="1" +REVISION="2" SOURCE_URI="https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Archive-Extract-$portVersion.tar.gz" CHECKSUM_SHA256="cffcf135cd0622287d3b02154f7d6716495449fcaed03966621948e25ea5f742" SOURCE_DIR="Archive-Extract-$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 }