mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
53 lines
1.3 KiB
Bash
53 lines
1.3 KiB
Bash
SUMMARY="Capture STDOUT and STDERR from Perl, XS or external programs"
|
|
DESCRIPTION="Capture::Tiny provides a simple, portable way to capture almost anything sent to \
|
|
STDOUT or STDERR, regardless of whether it comes from Perl, from XS code or from an external \
|
|
program. Optionally, output can be teed so that it is captured while being passed through to the \
|
|
original filehandles. Yes, it even works on Windows (usually). Stop guessing which of a dozen \
|
|
capturing modules to use in any particular situation and just use this one."
|
|
HOMEPAGE="https://metacpan.org/pod/Capture::Tiny"
|
|
COPYRIGHT="2009 by David Golden"
|
|
LICENSE="Apache v2"
|
|
REVISION="3"
|
|
SOURCE_URI="https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Capture-Tiny-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="6c23113e87bad393308c90a207013e505f659274736638d8c79bac9c67cc3e19"
|
|
SOURCE_DIR="Capture-Tiny-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
capture_tiny = $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
|
|
}
|