mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
file_copy_recursive: new perl module recipe
This commit is contained in:
57
dev-perl/file_copy_recursive/file_copy_recursive-0.45.recipe
Normal file
57
dev-perl/file_copy_recursive/file_copy_recursive-0.45.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user