pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-namespace-clean Import p5-namespace-clean ver...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18970aa99ff0
branches:  trunk
changeset: 544940:18970aa99ff0
user:      he <he%pkgsrc.org@localhost>
date:      Tue Jul 22 22:57:04 2008 +0000

description:
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:

 devel/p5-namespace-clean/DESCR    |  12 ++++++++++++
 devel/p5-namespace-clean/Makefile |  19 +++++++++++++++++++
 devel/p5-namespace-clean/distinfo |   5 +++++
 3 files changed, 36 insertions(+), 0 deletions(-)

diffs (48 lines):

diff -r 0cef38cde11d -r 18970aa99ff0 devel/p5-namespace-clean/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-namespace-clean/DESCR    Tue Jul 22 22:57:04 2008 +0000
@@ -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 -r 0cef38cde11d -r 18970aa99ff0 devel/p5-namespace-clean/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-namespace-clean/Makefile Tue Jul 22 22:57:04 2008 +0000
@@ -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@localhost
+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 -r 0cef38cde11d -r 18970aa99ff0 devel/p5-namespace-clean/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-namespace-clean/distinfo Tue Jul 22 22:57:04 2008 +0000
@@ -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



Home | Main Index | Thread Index | Old Index