From ac6d5e2ee9c12dbb69f00988a41b19c3d8ea9f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 30 Nov 2024 19:40:27 +0100 Subject: [PATCH] data_dump: new perl module recipe --- dev-perl/data_dump/data_dump-1.25.recipe | 50 ++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 dev-perl/data_dump/data_dump-1.25.recipe diff --git a/dev-perl/data_dump/data_dump-1.25.recipe b/dev-perl/data_dump/data_dump-1.25.recipe new file mode 100644 index 000000000..1f9bbf64c --- /dev/null +++ b/dev-perl/data_dump/data_dump-1.25.recipe @@ -0,0 +1,50 @@ +SUMMARY="Pretty printing of data structures" +DESCRIPTION="This module provides a few functions that traverse their argument list and return a \ +string containing Perl code that, when evaled, produces a deep copy of the original arguments." +HOMEPAGE="https://metacpan.org/pod/Data::Dump" +COPYRIGHT="1998-2010 Gisle Aas + 1996-1998 Gurusamy Sarathy" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/G/GA/GARU/Data-Dump-$portVersion.tar.gz" +CHECKSUM_SHA256="a4aa6e0ddbf39d5ad49bddfe0f89d9da864e3bc00f627125d1bc580472f53fbd" +SOURCE_DIR="Data-Dump-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + data_dump = $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 +}