Files
haikuports/dev-perl/test_file/test_file-1.995.recipe
2025-12-25 17:04:49 +01:00

59 lines
1.7 KiB
Bash

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-2025, brian d foy"
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/B/BR/BRIANDFOY/Test-File-$portVersion.tar.gz"
CHECKSUM_SHA256="8f1cc36b871493dfdac29bda459763711b5fd828895c0f326b6c8654babd5f09"
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
}