Files
haikuports/dev-perl/pathtools/pathtools-3.75.recipe
Joachim Mairböck fdd2fadee0 pathtools: revbump, switch to secondaryArch, cleanup, add tests
Some tests fail, presumably because of errno mismatches and '.' being in PATH unexpectedly (i.e. typical Haiku oddities).
2024-07-06 17:38:03 +02:00

56 lines
1.4 KiB
Bash

SUMMARY="Portably perform operations on file names"
DESCRIPTION="This module is designed to support operations commonly performed on file \
specifications (usually called 'file names', but not to be confused with the contents of a file, \
or Perl's file handles), such as concatenating several directory and file names into a single \
path, or determining whether a path is rooted. It is based on code directly taken from MakeMaker \
5.17, code written by Andreas König, Andy Dougherty, Charles Bailey, Ilya Zakharevich, \
Paul Schinder, and others."
HOMEPAGE="https://metacpan.org/pod/File::Spec"
COPYRIGHT="2004-2013 by the Perl 5 Porters"
LICENSE="Artistic"
REVISION="3"
SOURCE_URI="https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/PathTools-$portVersion.tar.gz"
CHECKSUM_SHA256="a558503aa6b1f8c727c0073339081a77888606aa701ada1ad62dd9d8c3f945a2"
SOURCE_DIR="PathTools-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
pathtools$secondaryArchSuffix = $portVersion
"
if [ -n "$secondaryArchSuffix" ]; then
PROVIDES+="
pathtools = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix
vendor_perl
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:make
cmd:perl
"
BUILD()
{
perl Makefile.PL PREFIX=$prefix
make
}
INSTALL()
{
make pure_install
}
TEST()
{
make test
}