diff options
author | Sergey Skvortsov <skv@FreeBSD.org> | 2009-05-13 05:27:35 +0000 |
---|---|---|
committer | Sergey Skvortsov <skv@FreeBSD.org> | 2009-05-13 05:27:35 +0000 |
commit | ef6970eeab0bce43776c901a8d036fa458e24388 (patch) | |
tree | 8f6b2d53cdb57ec52e7866a515119229518df3c0 /devel/p5-namespace-autoclean | |
parent | d39c864ae8c4fb1176b5ae6768a4563bd254dce6 (diff) |
Notes
Diffstat (limited to 'devel/p5-namespace-autoclean')
-rw-r--r-- | devel/p5-namespace-autoclean/Makefile | 26 | ||||
-rw-r--r-- | devel/p5-namespace-autoclean/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-namespace-autoclean/pkg-descr | 14 | ||||
-rw-r--r-- | devel/p5-namespace-autoclean/pkg-plist | 5 |
4 files changed, 48 insertions, 0 deletions
diff --git a/devel/p5-namespace-autoclean/Makefile b/devel/p5-namespace-autoclean/Makefile new file mode 100644 index 000000000000..5946494f392c --- /dev/null +++ b/devel/p5-namespace-autoclean/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: namespace-autoclean +# Date created: 13 May 2009 +# Whom: Sergey Skvortsov <skv@protey.ru> +# +# $FreeBSD$ +# + +PORTNAME= namespace-autoclean +PORTVERSION= 0.05 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= skv@FreeBSD.org +COMMENT= Keep imports out of your namespace + +BUILD_DEPENDS= p5-Class-MOP>=0.80:${PORTSDIR}/devel/p5-Class-MOP \ + p5-B-Hooks-EndOfScope>=0.07:${PORTSDIR}/devel/p5-B-Hooks-EndOfScope \ + p5-namespace-clean>=0.11:${PORTSDIR}/devel/p5-namespace-clean +RUN_DEPENDS= ${BUILD_DEPENDS} + +PERL_CONFIGURE= yes + +MAN3= namespace::autoclean.3 + +.include <bsd.port.mk> diff --git a/devel/p5-namespace-autoclean/distinfo b/devel/p5-namespace-autoclean/distinfo new file mode 100644 index 000000000000..d7df76d54654 --- /dev/null +++ b/devel/p5-namespace-autoclean/distinfo @@ -0,0 +1,3 @@ +MD5 (namespace-autoclean-0.05.tar.gz) = 365f3f9850d1727b1837bae3f43e55fc +SHA256 (namespace-autoclean-0.05.tar.gz) = bcbe76ca967c4ba8b109d4ccab3852199302a949065af6f0cb3e1d25229282d2 +SIZE (namespace-autoclean-0.05.tar.gz) = 9265 diff --git a/devel/p5-namespace-autoclean/pkg-descr b/devel/p5-namespace-autoclean/pkg-descr new file mode 100644 index 000000000000..93cd40eb9c06 --- /dev/null +++ b/devel/p5-namespace-autoclean/pkg-descr @@ -0,0 +1,14 @@ +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 pragma. It will also not touch anything that looks like a +method, according to Class::MOP::Class::get_method_list. + +WWW: http://search.cpan.org/dist/namespace-autoclean/ diff --git a/devel/p5-namespace-autoclean/pkg-plist b/devel/p5-namespace-autoclean/pkg-plist new file mode 100644 index 000000000000..76f4ab6396aa --- /dev/null +++ b/devel/p5-namespace-autoclean/pkg-plist @@ -0,0 +1,5 @@ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace/autoclean/.packlist +%%SITE_PERL%%/namespace/autoclean.pm +@dirrmtry %%SITE_PERL%%/namespace +@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace/autoclean +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace |