mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
clone_pp: new perl module recipe (version 1.08)
This commit is contained in:
50
dev-perl/clone_pp/clone_pp-1.08.recipe
Normal file
50
dev-perl/clone_pp/clone_pp-1.08.recipe
Normal file
@@ -0,0 +1,50 @@
|
||||
SUMMARY="Recursively copy Perl datatypes"
|
||||
DESCRIPTION="This module provides a general-purpose clone function to make deep copies of Perl \
|
||||
data structures. It calls itself recursively to copy nested hash, array, scalar and reference \
|
||||
types, including tied variables and objects."
|
||||
HOMEPAGE="https://metacpan.org/pod/Clone::PP"
|
||||
COPYRIGHT="2003 Matthew Simon Cavalletto"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Clone-PP-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="57203094a5d8574b6a00951e8f2399b666f4e74f9511d9c9fb5b453d5d11f578"
|
||||
SOURCE_DIR="Clone-PP-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
clone_pp = $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