git: b5580f211c8f - main - devel/p5-IPC-System-Options: Add p5-IPC-System-Options 0.341
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Sep 2024 06:19:19 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=b5580f211c8fa03aa008d7153b9ccb44b63d4384 commit b5580f211c8fa03aa008d7153b9ccb44b63d4384 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-09-05 05:13:46 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-09-05 06:11:16 +0000 devel/p5-IPC-System-Options: Add p5-IPC-System-Options 0.341 IPC::System::Options provides replacement (wrapper) for Perl's system(), readpipe() (qx//, a.k.a. the backtick operator), as well as IPC::Run's start() and run(). The wrappers give you options like forcing/avoiding use of shell (like what IPC::System::Simple offers you), logging the arguments and/or output (using Log::ger), temporarily setting environment variables, temporarily setting working directory, dying on non-zero exit code, capturing (or tee-ing) output (stdout/stderr) (using Capture::Tiny), and a few others. They are meant as a convenience so you can just call system() (or the other wrapper target) instead of doing some additional setup and cleanup yourself. --- devel/Makefile | 1 + devel/p5-IPC-System-Options/Makefile | 28 ++++++++++++++++++++++++++++ devel/p5-IPC-System-Options/distinfo | 3 +++ devel/p5-IPC-System-Options/pkg-descr | 9 +++++++++ devel/p5-IPC-System-Options/pkg-plist | 2 ++ 5 files changed, 43 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index e0db5a09b286..bb846bc6e6aa 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2793,6 +2793,7 @@ SUBDIR += p5-IPC-SharedCache SUBDIR += p5-IPC-ShellCmd SUBDIR += p5-IPC-Signal + SUBDIR += p5-IPC-System-Options SUBDIR += p5-IPC-System-Simple SUBDIR += p5-IRI SUBDIR += p5-Import-Base diff --git a/devel/p5-IPC-System-Options/Makefile b/devel/p5-IPC-System-Options/Makefile new file mode 100644 index 000000000000..1bd237dc33f2 --- /dev/null +++ b/devel/p5-IPC-System-Options/Makefile @@ -0,0 +1,28 @@ +PORTNAME= IPC-System-Options +PORTVERSION= 0.341 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Perl system(), readpipe()/qx, IPC::Run's run(), start() (with more options) +WWW= https://metacpan.org/dist/IPC-System-Options + +LICENSE= ART10 GPLv1+ +LICENSE_COMB= dual +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= p5-Capture-Tiny>=0:devel/p5-Capture-Tiny \ + p5-IPC-Run>=0:devel/p5-IPC-Run \ + p5-Log-ger>=0.018:devel/p5-Log-ger \ + p5-Proc-ChildError>=0:devel/p5-Proc-ChildError \ + p5-String-ShellQuote>=0:textproc/p5-String-ShellQuote +TEST_DEPENDS= p5-Test-Exception>=0:devel/p5-Test-Exception + +USES= perl5 +USE_PERL5= configure + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/p5-IPC-System-Options/distinfo b/devel/p5-IPC-System-Options/distinfo new file mode 100644 index 000000000000..8dae5c1d3359 --- /dev/null +++ b/devel/p5-IPC-System-Options/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724084458 +SHA256 (IPC-System-Options-0.341.tar.gz) = cb3349a3424d744d7171e9a0f9a48681898af7ab714f875fffecd5914e2b8522 +SIZE (IPC-System-Options-0.341.tar.gz) = 25187 diff --git a/devel/p5-IPC-System-Options/pkg-descr b/devel/p5-IPC-System-Options/pkg-descr new file mode 100644 index 000000000000..b9820ab1b1d5 --- /dev/null +++ b/devel/p5-IPC-System-Options/pkg-descr @@ -0,0 +1,9 @@ +IPC::System::Options provides replacement (wrapper) for Perl's system(), +readpipe() (qx//, a.k.a. the backtick operator), as well as IPC::Run's start() +and run(). The wrappers give you options like forcing/avoiding use of shell +(like what IPC::System::Simple offers you), logging the arguments and/or output +(using Log::ger), temporarily setting environment variables, temporarily setting +working directory, dying on non-zero exit code, capturing (or tee-ing) output +(stdout/stderr) (using Capture::Tiny), and a few others. They are meant as a +convenience so you can just call system() (or the other wrapper target) instead +of doing some additional setup and cleanup yourself. diff --git a/devel/p5-IPC-System-Options/pkg-plist b/devel/p5-IPC-System-Options/pkg-plist new file mode 100644 index 000000000000..6a08d0f3b1d9 --- /dev/null +++ b/devel/p5-IPC-System-Options/pkg-plist @@ -0,0 +1,2 @@ +%%SITE_PERL%%/IPC/System/Options.pm +%%PERL5_MAN3%%/IPC::System::Options.3.gz