aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-namespace-clean
diff options
context:
space:
mode:
authorLars Balker Rasmussen <lbr@FreeBSD.org>2008-07-23 08:04:34 +0000
committerLars Balker Rasmussen <lbr@FreeBSD.org>2008-07-23 08:04:34 +0000
commita709a835ba2737cb436db496023cf0c12f612af2 (patch)
tree22336c0fbad7274903b20b5c1b4ce840618936f0 /devel/p5-namespace-clean
parent383ed2a689c31cfed46c47d9436f5eb95f47356c (diff)
downloadports-a709a835ba2737cb436db496023cf0c12f612af2.tar.gz
ports-a709a835ba2737cb436db496023cf0c12f612af2.zip
Notes
Diffstat (limited to 'devel/p5-namespace-clean')
-rw-r--r--devel/p5-namespace-clean/Makefile27
-rw-r--r--devel/p5-namespace-clean/distinfo3
-rw-r--r--devel/p5-namespace-clean/pkg-descr12
-rw-r--r--devel/p5-namespace-clean/pkg-plist5
4 files changed, 47 insertions, 0 deletions
diff --git a/devel/p5-namespace-clean/Makefile b/devel/p5-namespace-clean/Makefile
new file mode 100644
index 000000000000..0e01ef2494c1
--- /dev/null
+++ b/devel/p5-namespace-clean/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: devel/p5-namespace-clean
+# Date created: 23 Jul 2008
+# Whom: Lars Balker Rasmussen <lbr@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= namespace-clean
+PORTVERSION= 0.08
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= lbr@FreeBSD.org
+COMMENT= Keep imports and functions out of your namespace
+
+RUN_DEPENDS= p5-Scope-Guard>=0.02:${PORTSDIR}/devel/p5-Scope-Guard
+BUILD_DEPENDS= ${RUN_DEPENDS}
+
+PERL_CONFIGURE= 5.8.0+
+
+MAN3= namespace::clean.3
+
+post-extract:
+ @${PERL} -i -ne 'print unless m,build_requires,' ${WRKSRC}/Makefile.PL
+
+.include <bsd.port.mk>
diff --git a/devel/p5-namespace-clean/distinfo b/devel/p5-namespace-clean/distinfo
new file mode 100644
index 000000000000..51e8a7848af0
--- /dev/null
+++ b/devel/p5-namespace-clean/distinfo
@@ -0,0 +1,3 @@
+MD5 (namespace-clean-0.08.tar.gz) = 9dc350acfbcffe1434027928f3497925
+SHA256 (namespace-clean-0.08.tar.gz) = dd8b9edae83e44bf4127076ba5dc23ab81e755029498ff70b3d1c8f07f098ccb
+SIZE (namespace-clean-0.08.tar.gz) = 23896
diff --git a/devel/p5-namespace-clean/pkg-descr b/devel/p5-namespace-clean/pkg-descr
new file mode 100644
index 000000000000..75be5316732d
--- /dev/null
+++ b/devel/p5-namespace-clean/pkg-descr
@@ -0,0 +1,12 @@
+When you define a function, or import one, into a Perl package, it will
+naturally also be available as a method. This does not per se cause
+problems, but it can complicate subclassing and, for example, plugin
+classes that are included via multiple inheritance by loading them as
+base classes.
+
+The "namespace::clean" pragma will remove all previously declared or
+imported symbols at the end of the current package's compile cycle.
+Functions called in the package itself will still be bound by their
+name, but they won't show up as methods on your class or instances.
+
+WWW: http://search.cpan.org/dist/namespace/clean/
diff --git a/devel/p5-namespace-clean/pkg-plist b/devel/p5-namespace-clean/pkg-plist
new file mode 100644
index 000000000000..7884102dcc14
--- /dev/null
+++ b/devel/p5-namespace-clean/pkg-plist
@@ -0,0 +1,5 @@
+%%SITE_PERL%%/namespace/clean.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace/clean/.packlist
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace/clean
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace
+@dirrmtry %%SITE_PERL%%/namespace