From fdd2fadee0da1f5d5d368b7fe08653160b7f0c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 6 Jul 2024 17:38:03 +0200 Subject: [PATCH] pathtools: revbump, switch to secondaryArch, cleanup, add tests Some tests fail, presumably because of errno mismatches and '.' being in PATH unexpectedly (i.e. typical Haiku oddities). --- dev-perl/pathtools/pathtools-3.75.recipe | 25 +++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/dev-perl/pathtools/pathtools-3.75.recipe b/dev-perl/pathtools/pathtools-3.75.recipe index c6f1d091e..ba8766f95 100644 --- a/dev-perl/pathtools/pathtools-3.75.recipe +++ b/dev-perl/pathtools/pathtools-3.75.recipe @@ -8,26 +8,32 @@ Paul Schinder, and others." HOMEPAGE="https://metacpan.org/pod/File::Spec" COPYRIGHT="2004-2013 by the Perl 5 Porters" LICENSE="Artistic" -REVISION="2" +REVISION="3" SOURCE_URI="https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/PathTools-$portVersion.tar.gz" CHECKSUM_SHA256="a558503aa6b1f8c727c0073339081a77888606aa701ada1ad62dd9d8c3f945a2" SOURCE_DIR="PathTools-$portVersion" -ARCHITECTURES="all" +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" PROVIDES=" - pathtools = $portVersion + pathtools$secondaryArchSuffix = $portVersion " +if [ -n "$secondaryArchSuffix" ]; then + PROVIDES+=" + pathtools = $portVersion + " +fi REQUIRES=" - haiku + haiku$secondaryArchSuffix vendor_perl " BUILD_REQUIRES=" - haiku_devel + haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" - cmd:gcc + cmd:gcc$secondaryArchSuffix cmd:make cmd:perl " @@ -40,5 +46,10 @@ BUILD() INSTALL() { - make install DESTDIR="${DESTDIR}" + make pure_install +} + +TEST() +{ + make test }