mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
ipc_run3: new perl module recipe
This commit is contained in:
53
dev-perl/ipc_run3/ipc_run3-0.049.recipe
Normal file
53
dev-perl/ipc_run3/ipc_run3-0.049.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user