mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
test_file: new perl module recipe
This commit is contained in:
58
dev-perl/test_file/test_file-1.993.recipe
Normal file
58
dev-perl/test_file/test_file-1.993.recipe
Normal file
@@ -0,0 +1,58 @@
|
||||
SUMMARY="Test file attributes"
|
||||
DESCRIPTION="This modules provides a collection of test utilities for file attributes.
|
||||
Some file attributes depend on the owner of the process testing the file in the same way the file \
|
||||
test operators do. For instance, root (or super-user or Administrator) may always be able to read \
|
||||
files no matter the permissions.
|
||||
Some attributes don't make sense outside of Unix, either, so some tests automatically skip if \
|
||||
they think they won't work on the platform. If you have a way to make these functions work on \
|
||||
Windows, for instance, please send me a patch. :) If you want to pretend to be Windows on a \
|
||||
non-Windows machine (for instance, to test skip()), you can set the PRETEND_TO_BE_WINDOWS \
|
||||
environment variable.
|
||||
The optional NAME parameter for every function allows you to specify a name for the test. If not \
|
||||
supplied, a reasonable default will be generated."
|
||||
HOMEPAGE="https://metacpan.org/pod/Test::File"
|
||||
COPYRIGHT="2002-2023, brian d foy"
|
||||
LICENSE="Artistic"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Test-File-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ef2ffe1aaec7b42d874ad411ec647547b9b9bc2f5fb93e49e3399488456afc7a"
|
||||
SOURCE_DIR="Test-File-$portVersion"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
test_file = $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
|
||||
}
|
||||
Reference in New Issue
Block a user