git: 8b87ab8cba83 - main - devel/p5-Proc-FastSpawn: Add p5-Proc-FastSpawn 1.2

Po-Chuan Hsieh sunpoet at FreeBSD.org
Tue Sep 21 22:24:29 UTC 2021


The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8b87ab8cba83b1b2fb9bfd06d997b77da8022ce4

commit 8b87ab8cba83b1b2fb9bfd06d997b77da8022ce4
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-09-21 22:11:41 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-09-21 22:11:41 +0000

    devel/p5-Proc-FastSpawn: Add p5-Proc-FastSpawn 1.2
    
    The purpose of this small (in scope and footprint) module is simple: spawn a
    subprocess asynchronously as efficiently and/or fast as possible. Basically the
    same as calling fork+exec (on POSIX), but hopefully faster than those two
    syscalls.
    
    Apart from fork overhead, this module also allows you to fork+exec programs when
    otherwise you couldn't - for example, when you use POSIX threads in your perl
    process then it generally isn't safe to call fork from perl, but it is safe to
    use this module to execute external processes.
    
    WWW: https://metacpan.org/dist/Proc-FastSpawn
---
 devel/Makefile                    |  1 +
 devel/p5-Proc-FastSpawn/Makefile  | 21 +++++++++++++++++++++
 devel/p5-Proc-FastSpawn/distinfo  |  3 +++
 devel/p5-Proc-FastSpawn/pkg-descr | 11 +++++++++++
 devel/p5-Proc-FastSpawn/pkg-plist |  3 +++
 5 files changed, 39 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index ac0c77befc5a..8901d5909078 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3119,6 +3119,7 @@
     SUBDIR += p5-Proc-BackOff
     SUBDIR += p5-Proc-Background
     SUBDIR += p5-Proc-Daemon
+    SUBDIR += p5-Proc-FastSpawn
     SUBDIR += p5-Proc-Find-Parents
     SUBDIR += p5-Proc-Fork
     SUBDIR += p5-Proc-Guard
diff --git a/devel/p5-Proc-FastSpawn/Makefile b/devel/p5-Proc-FastSpawn/Makefile
new file mode 100644
index 000000000000..bd0e42d20126
--- /dev/null
+++ b/devel/p5-Proc-FastSpawn/Makefile
@@ -0,0 +1,21 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+
+PORTNAME=	Proc-FastSpawn
+PORTVERSION=	1.2
+CATEGORIES=	devel perl5
+MASTER_SITES=	CPAN
+PKGNAMEPREFIX=	p5-
+
+MAINTAINER=	sunpoet at FreeBSD.org
+COMMENT=	fork+exec, or spawn, a subprocess as quickly as possible
+
+LICENSE=	ART10 GPLv1+
+LICENSE_COMB=	dual
+
+USES=		perl5
+USE_PERL5=	configure
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Proc/FastSpawn/FastSpawn.so
+
+.include <bsd.port.mk>
diff --git a/devel/p5-Proc-FastSpawn/distinfo b/devel/p5-Proc-FastSpawn/distinfo
new file mode 100644
index 000000000000..334b5dbf11e4
--- /dev/null
+++ b/devel/p5-Proc-FastSpawn/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1632227460
+SHA256 (Proc-FastSpawn-1.2.tar.gz) = fd525111e0f5e7de365b226b6b98b928a4293abe4928ed07d94f3aee12af2b2b
+SIZE (Proc-FastSpawn-1.2.tar.gz) = 6391
diff --git a/devel/p5-Proc-FastSpawn/pkg-descr b/devel/p5-Proc-FastSpawn/pkg-descr
new file mode 100644
index 000000000000..e7ae922044d4
--- /dev/null
+++ b/devel/p5-Proc-FastSpawn/pkg-descr
@@ -0,0 +1,11 @@
+The purpose of this small (in scope and footprint) module is simple: spawn a
+subprocess asynchronously as efficiently and/or fast as possible. Basically the
+same as calling fork+exec (on POSIX), but hopefully faster than those two
+syscalls.
+
+Apart from fork overhead, this module also allows you to fork+exec programs when
+otherwise you couldn't - for example, when you use POSIX threads in your perl
+process then it generally isn't safe to call fork from perl, but it is safe to
+use this module to execute external processes.
+
+WWW: https://metacpan.org/dist/Proc-FastSpawn
diff --git a/devel/p5-Proc-FastSpawn/pkg-plist b/devel/p5-Proc-FastSpawn/pkg-plist
new file mode 100644
index 000000000000..4e1c560ba5d3
--- /dev/null
+++ b/devel/p5-Proc-FastSpawn/pkg-plist
@@ -0,0 +1,3 @@
+%%SITE_ARCH%%/Proc/FastSpawn.pm
+%%SITE_ARCH%%/auto/Proc/FastSpawn/FastSpawn.so
+%%PERL5_MAN3%%/Proc::FastSpawn.3.gz


More information about the dev-commits-ports-main mailing list