aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2004-11-14 20:49:40 +0800
committerskv <skv@FreeBSD.org>2004-11-14 20:49:40 +0800
commitce92448ede2b280a958bcdc3a50f542abc71c2ce (patch)
tree62877efd5213c971c3835901cca3be5079f82213 /devel
parent5c249b7d1008873134d04fb094878ed8cf202890 (diff)
downloadfreebsd-ports-gnome-ce92448ede2b280a958bcdc3a50f542abc71c2ce.tar.gz
freebsd-ports-gnome-ce92448ede2b280a958bcdc3a50f542abc71c2ce.tar.zst
freebsd-ports-gnome-ce92448ede2b280a958bcdc3a50f542abc71c2ce.zip
Add p5-prefork 0.03,
optimize module loading across forking and non-forking scenarios.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/p5-prefork/Makefile28
-rw-r--r--devel/p5-prefork/distinfo2
-rw-r--r--devel/p5-prefork/pkg-descr10
-rw-r--r--devel/p5-prefork/pkg-plist4
5 files changed, 45 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index c32dbe0f329e..40f3bbeadb02 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1045,6 +1045,7 @@
SUBDIR += p5-base
SUBDIR += p5-enum
SUBDIR += p5-mixin
+ SUBDIR += p5-prefork
SUBDIR += p5-version
SUBDIR += p65
SUBDIR += parrot
diff --git a/devel/p5-prefork/Makefile b/devel/p5-prefork/Makefile
new file mode 100644
index 000000000000..5f384d66f383
--- /dev/null
+++ b/devel/p5-prefork/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: prefork
+# Date created: 14 November 2004
+# Whom: Sergey Skvortsov <skv@protey.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= prefork
+PORTVERSION= 0.03
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= ../../authors/id/A/AD/ADAMK
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= skv@FreeBSD.org
+COMMENT= Optimize module loading across forking and non-forking scenarios
+
+BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Scalar/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= prefork.3
+
+post-patch:
+ @${PERL} -pi -e 's/^auto_install.*$$//' ${WRKSRC}/Makefile.PL
+
+.include <bsd.port.mk>
diff --git a/devel/p5-prefork/distinfo b/devel/p5-prefork/distinfo
new file mode 100644
index 000000000000..1abfbf163367
--- /dev/null
+++ b/devel/p5-prefork/distinfo
@@ -0,0 +1,2 @@
+MD5 (prefork-0.03.tar.gz) = 040b340931bd8190b87c81130ea5f8d0
+SIZE (prefork-0.03.tar.gz) = 22091
diff --git a/devel/p5-prefork/pkg-descr b/devel/p5-prefork/pkg-descr
new file mode 100644
index 000000000000..86869f2792d4
--- /dev/null
+++ b/devel/p5-prefork/pkg-descr
@@ -0,0 +1,10 @@
+The prefork pragma is intended to allow module writers to optimise
+module loading for both scenarios with as little additional code as
+possible.
+
+The prefork.pm is intended to serve as a central and optional
+marshallingM point for state detection (are we running in procedural or
+pre-forkingM mode) and to act as a relatively light-weight module
+loader.
+
+WWW: http://search.cpan.org/dist/prefork/
diff --git a/devel/p5-prefork/pkg-plist b/devel/p5-prefork/pkg-plist
new file mode 100644
index 000000000000..395515dfe637
--- /dev/null
+++ b/devel/p5-prefork/pkg-plist
@@ -0,0 +1,4 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/prefork/.packlist
+%%SITE_PERL%%/prefork.pm
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/prefork
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/prefork 2>/dev/null || true