mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
cpan_meta_check: new perl module recipe
This commit is contained in:
48
dev-perl/cpan_meta_check/cpan_meta_check-0.018.recipe
Normal file
48
dev-perl/cpan_meta_check/cpan_meta_check-0.018.recipe
Normal file
@@ -0,0 +1,48 @@
|
||||
SUMMARY="Verify requirements in a CPAN::Meta object"
|
||||
DESCRIPTION="This module verifies if requirements described in a CPAN::Meta object are present."
|
||||
HOMEPAGE="https://metacpan.org/pod/CPAN::Meta::Check"
|
||||
COPYRIGHT="2012 by Leon Timmermans"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/L/LE/LEONT/CPAN-Meta-Check-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="f619d2df5ea0fd91c8cf83eb54acccb5e43d9e6ec1a3f727b3d0ac15d0cf378a"
|
||||
SOURCE_DIR="CPAN-Meta-Check-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
cpan_meta_check = $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