clone_pp: new perl module recipe (version 1.08)

This commit is contained in:
Joachim Mairböck
2025-12-25 16:10:41 +01:00
parent 38c1144e5b
commit 5858c87c11

View 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
}