pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/p5-namespace-autoclean Importing package of p5 m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0d52e7687cdc
branches:  trunk
changeset: 561083:0d52e7687cdc
user:      sno <sno%pkgsrc.org@localhost>
date:      Tue Jul 07 18:56:04 2009 +0000

description:
Importing package of p5 module namespace::autoclean 0.08 as dependency
of imported devel/p5-MooseX-Traits-Pluggable.

When you import a function into a Perl package, it will naturally also be
available as a method.
The namespace::autoclean pragma will remove all 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.
This module is very similar to namespace::clean, except it will clean all
imported functions, no matter if you imported them before or after you used
the pagma. It will also not touch anything that looks like a method,
according to Class::MOP::Class::get_method_list.

diffstat:

 devel/p5-namespace-autoclean/DESCR    |  10 ++++++++++
 devel/p5-namespace-autoclean/Makefile |  23 +++++++++++++++++++++++
 devel/p5-namespace-autoclean/distinfo |   5 +++++
 3 files changed, 38 insertions(+), 0 deletions(-)

diffs (50 lines):

diff -r ca4a19db225a -r 0d52e7687cdc devel/p5-namespace-autoclean/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-namespace-autoclean/DESCR        Tue Jul 07 18:56:04 2009 +0000
@@ -0,0 +1,10 @@
+When you import a function into a Perl package, it will naturally also be
+available as a method.
+The namespace::autoclean pragma will remove all 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.
+This module is very similar to namespace::clean, except it will clean all
+imported functions, no matter if you imported them before or after you used
+the pagma. It will also not touch anything that looks like a method,
+according to Class::MOP::Class::get_method_list.
diff -r ca4a19db225a -r 0d52e7687cdc devel/p5-namespace-autoclean/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-namespace-autoclean/Makefile     Tue Jul 07 18:56:04 2009 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/07/07 18:56:04 sno Exp $
+
+DISTNAME=      namespace-autoclean-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-autoclean/
+COMMENT=       Keep imports out of your namespace
+LICENSE=       ${PERL5_LICENSE}
+
+DEPENDS+=      p5-B-Hooks-EndOfScope>=0.07:../../devel/p5-B-Hooks-EndOfScope
+DEPENDS+=      p5-Class-MOP>=0.80:../../devel/p5-Class-MOP
+DEPENDS+=      p5-namespace-clean>=0.11:../../devel/p5-namespace-clean
+
+USE_LANGUAGES=         # empty
+PERL5_PACKLIST=                auto/namespace/autoclean/.packlist
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ca4a19db225a -r 0d52e7687cdc devel/p5-namespace-autoclean/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-namespace-autoclean/distinfo     Tue Jul 07 18:56:04 2009 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/07/07 18:56:04 sno Exp $
+
+SHA1 (namespace-autoclean-0.08.tar.gz) = e905b81a1a91c1ba98ce9c7a12d32b639536e185
+RMD160 (namespace-autoclean-0.08.tar.gz) = 58615d5940ad605ac83e48128c4e81c9704146fc
+Size (namespace-autoclean-0.08.tar.gz) = 10572 bytes



Home | Main Index | Thread Index | Old Index