diff --git a/dev-perl/file_sharedir/file_sharedir-1.118.recipe b/dev-perl/file_sharedir/file_sharedir-1.118.recipe index bbd7abc06..44fbd5b44 100644 --- a/dev-perl/file_sharedir/file_sharedir-1.118.recipe +++ b/dev-perl/file_sharedir/file_sharedir-1.118.recipe @@ -5,7 +5,7 @@ gets a little tricky, and make it more available to the larger Perl community." HOMEPAGE="https://metacpan.org/pod/File::ShareDir" COPYRIGHT="2005 - 2011 Adam Kennedy" LICENSE="Artistic" -REVISION="2" +REVISION="3" SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RE/REHSACK/File-ShareDir-$portVersion.tar.gz" CHECKSUM_SHA256="3bb2a20ba35df958dc0a4f2306fc05d903d8b8c4de3c8beefce17739d281c958" SOURCE_DIR="File-ShareDir-$portVersion" @@ -18,6 +18,7 @@ PROVIDES=" REQUIRES=" haiku class_inspector +# file_sharedir_install # missing (tests check for this) vendor_perl " @@ -29,6 +30,11 @@ BUILD_PREREQUIRES=" cmd:perl " +TEST_REQUIRES=" + class_inspector +# file_sharedir_install # missing + " + BUILD() { perl Makefile.PL PREFIX=$prefix @@ -37,5 +43,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 }