mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
extutils_helpers: new perl module recipe
This commit is contained in:
47
dev-perl/extutils_helpers/extutils_helpers-0.028.recipe
Normal file
47
dev-perl/extutils_helpers/extutils_helpers-0.028.recipe
Normal file
@@ -0,0 +1,47 @@
|
||||
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="1"
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user