Files
haikuports/dev-perl/extutils_helpers/extutils_helpers-0.028.recipe
2025-12-25 18:31:44 +01:00

48 lines
1005 B
Bash

SUMMARY="Various portability utilities for module builders"
DESCRIPTION="This module provides various portable helper functions for module building modules."
HOMEPAGE="https://metacpan.org/pod/ExtUtils::Helpers"
COPYRIGHT="2004 by Ken Williams, Leon Timmermans"
LICENSE="Artistic"
REVISION="2"
SOURCE_URI="https://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-Helpers-$portVersion.tar.gz"
CHECKSUM_SHA256="c8574875cce073e7dc5345a7b06d502e52044d68894f9160203fcaab379514fe"
SOURCE_DIR="ExtUtils-Helpers-$portVersion"
ARCHITECTURES="any"
PROVIDES="
extutils_helpers = $portVersion
"
REQUIRES="
haiku
vendor_perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
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
}