ipc_run3: new perl module recipe

This commit is contained in:
Joachim Mairböck
2024-11-30 17:22:31 +01:00
parent f2e3a378f5
commit 8c0ee95461

View File

@@ -0,0 +1,53 @@
SUMMARY="Run a subprocess with input/output redirection"
DESCRIPTION="This module allows you to run a subprocess and redirect stdin, stdout, and/or stderr \
to files and perl data structures. It aims to satisfy 99% of the need for using system, qx, and \
open3 with a simple, extremely Perlish API.
Speed, simplicity, and portability are paramount. (That's speed of Perl code; which is often much \
slower than the kind of buffered I/O that this module uses to spool input to and output from the \
child command.)"
HOMEPAGE="https://metacpan.org/pod/IPC::Run3"
COPYRIGHT="2003, R. Barrie Slaymaker, Jr."
LICENSE="Artistic"
REVISION="1"
SOURCE_URI="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/IPC-Run3-$portVersion.tar.gz"
CHECKSUM_SHA256="9d048ae7b9ae63871bae976ba01e081d887392d904e5d48b04e22d35ed22011a"
SOURCE_DIR="IPC-Run3-$portVersion"
ARCHITECTURES="any"
PROVIDES="
ipc_run3 = $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
}