From 7c52e85997bb86e65107928a84a866717f2b48b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 30 Nov 2024 18:24:48 +0100 Subject: [PATCH] clone: new perl module recipe --- dev-perl/clone/clone-0.47.recipe | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 dev-perl/clone/clone-0.47.recipe diff --git a/dev-perl/clone/clone-0.47.recipe b/dev-perl/clone/clone-0.47.recipe new file mode 100644 index 000000000..c0b8ed2e4 --- /dev/null +++ b/dev-perl/clone/clone-0.47.recipe @@ -0,0 +1,55 @@ +SUMMARY="Recursively copy Perl datatypes" +DESCRIPTION="This module provides a clone() method which makes recursive copies of nested hash, \ +array, scalar and reference types, including tied variables and objects." +HOMEPAGE="https://metacpan.org/pod/Clone" +COPYRIGHT="2001-2022 Ray Finch" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/Clone-$portVersion.tar.gz" +CHECKSUM_SHA256="4c2c0cb9a483efbf970cb1a75b2ca75b0e18cb84bcb5c09624f86e26b09c211d" +SOURCE_DIR="Clone-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + clone$secondaryArchSuffix = $portVersion + " +if [ -n "$secondaryArchSuffix" ]; then + PROVIDES+=" + clone = $portVersion + " +fi +REQUIRES=" + haiku$secondaryArchSuffix + vendor_perl + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + b_cow$secondaryArchSuffix + " + +BUILD() +{ + perl Makefile.PL PREFIX=$prefix + make +} + +INSTALL() +{ + make pure_install +} + +TEST() +{ + make test +}