From 8c0ee95461014e6c4f3ff76871bfecf855a1f792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= Date: Sat, 30 Nov 2024 17:22:31 +0100 Subject: [PATCH] ipc_run3: new perl module recipe --- dev-perl/ipc_run3/ipc_run3-0.049.recipe | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 dev-perl/ipc_run3/ipc_run3-0.049.recipe diff --git a/dev-perl/ipc_run3/ipc_run3-0.049.recipe b/dev-perl/ipc_run3/ipc_run3-0.049.recipe new file mode 100644 index 000000000..8569b386a --- /dev/null +++ b/dev-perl/ipc_run3/ipc_run3-0.049.recipe @@ -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 +}