summaryrefslogtreecommitdiff
path: root/devel/p5-namespace-clean
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2008-07-22 22:57:04 +0000
committerhe <he@pkgsrc.org>2008-07-22 22:57:04 +0000
commit4b893ff12cdaef6d7282329c044b8159dcf1f000 (patch)
treeb7e0f1d514e141f48df8ac9250330f1dc7aad474 /devel/p5-namespace-clean
parent48c8f04f927dfbbd459d98a5a6da7c36266c46a9 (diff)
downloadpkgsrc-4b893ff12cdaef6d7282329c044b8159dcf1f000.tar.gz
Import p5-namespace-clean version 0.08.
Keeping packages clean 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.
Diffstat (limited to 'devel/p5-namespace-clean')
-rw-r--r--devel/p5-namespace-clean/DESCR12
-rw-r--r--devel/p5-namespace-clean/Makefile19
-rw-r--r--devel/p5-namespace-clean/distinfo5
3 files changed, 36 insertions, 0 deletions
diff --git a/devel/p5-namespace-clean/DESCR b/devel/p5-namespace-clean/DESCR
new file mode 100644
index 00000000000..698c2da8e90
--- /dev/null
+++ b/devel/p5-namespace-clean/DESCR
@@ -0,0 +1,12 @@
+Keeping packages clean
+
+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.
diff --git a/devel/p5-namespace-clean/Makefile b/devel/p5-namespace-clean/Makefile
new file mode 100644
index 00000000000..f5395c8939b
--- /dev/null
+++ b/devel/p5-namespace-clean/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/07/22 22:57:04 he Exp $
+
+DISTNAME= namespace-clean-0.08
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=namespace/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/namespace-clean/
+COMMENT= Perl module to keep imports and functions out of your namespace
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+DEPENDS+= p5-Scope-Guard>=0.02:../../devel/p5-Scope-Guard
+
+PERL5_PACKLIST= auto/namespace/clean/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-namespace-clean/distinfo b/devel/p5-namespace-clean/distinfo
new file mode 100644
index 00000000000..98af70773a1
--- /dev/null
+++ b/devel/p5-namespace-clean/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/07/22 22:57:04 he Exp $
+
+SHA1 (namespace-clean-0.08.tar.gz) = 9bffac4a4e300c9375b45e6739e8ca43aca40d34
+RMD160 (namespace-clean-0.08.tar.gz) = 51abdb91a2bd6e20bb59fd616ea215dc12fc25cf
+Size (namespace-clean-0.08.tar.gz) = 23896 bytes