mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
51 lines
1.1 KiB
Bash
51 lines
1.1 KiB
Bash
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
|
|
}
|