file_copy_recursive: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-10-27 21:18:39 +01:00
parent 4b1fa6417a
commit bd0077ccf7

View File

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