From bd0077ccf7ab67785f110b97aace74235077c786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sun, 27 Oct 2024 21:18:39 +0100 Subject: [PATCH] file_copy_recursive: new perl module recipe --- .../file_copy_recursive-0.45.recipe | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 dev-perl/file_copy_recursive/file_copy_recursive-0.45.recipe diff --git a/dev-perl/file_copy_recursive/file_copy_recursive-0.45.recipe b/dev-perl/file_copy_recursive/file_copy_recursive-0.45.recipe new file mode 100644 index 000000000..542314ac9 --- /dev/null +++ b/dev-perl/file_copy_recursive/file_copy_recursive-0.45.recipe @@ -0,0 +1,57 @@ +SUMMARY="Perl extension for recursively copying files and directories" +DESCRIPTION="This module copies and moves directories recursively (or single files, well... \ +singley) to an optional depth and attempts to preserve each file or directory's mode." +HOMEPAGE="https://metacpan.org/pod/File::Copy::Recursive" +COPYRIGHT="2004 by Daniel Muey" +LICENSE="Artistic" +REVISION="1" +SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DM/DMUEY/File-Copy-Recursive-$portVersion.tar.gz" +CHECKSUM_SHA256="d3971cf78a8345e38042b208bb7b39cb695080386af629f4a04ffd6549df1157" +SOURCE_DIR="File-Copy-Recursive-$portVersion" + +ARCHITECTURES="any" + +PROVIDES=" + file_copy_recursive = $portVersion + " +REQUIRES=" + haiku + vendor_perl + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + cmd:make + cmd:perl + " + +TEST_REQUIRES=" + path_tiny + test_deep + test_fatal + test_file + test_warnings + " + +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 +}