diff options
author | sno <sno@pkgsrc.org> | 2009-07-07 18:56:04 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2009-07-07 18:56:04 +0000 |
commit | 56333f90f55a69a3f2fafb300cd9c239de158a73 (patch) | |
tree | 7fdc9f4972ad6a70509c0821ac7afda429a1e03b /devel | |
parent | 0f47328cb6f77b5994884154b40ae6db8535dd24 (diff) | |
download | pkgsrc-56333f90f55a69a3f2fafb300cd9c239de158a73.tar.gz |
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 (limited to 'devel')
-rw-r--r-- | devel/p5-namespace-autoclean/DESCR | 10 | ||||
-rw-r--r-- | devel/p5-namespace-autoclean/Makefile | 23 | ||||
-rw-r--r-- | devel/p5-namespace-autoclean/distinfo | 5 |
3 files changed, 38 insertions, 0 deletions
diff --git a/devel/p5-namespace-autoclean/DESCR b/devel/p5-namespace-autoclean/DESCR new file mode 100644 index 00000000000..d199a389e5d --- /dev/null +++ b/devel/p5-namespace-autoclean/DESCR @@ -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 --git a/devel/p5-namespace-autoclean/Makefile b/devel/p5-namespace-autoclean/Makefile new file mode 100644 index 00000000000..f534f605b50 --- /dev/null +++ b/devel/p5-namespace-autoclean/Makefile @@ -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 +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 --git a/devel/p5-namespace-autoclean/distinfo b/devel/p5-namespace-autoclean/distinfo new file mode 100644 index 00000000000..7b1cef06e69 --- /dev/null +++ b/devel/p5-namespace-autoclean/distinfo @@ -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 |