Add devel/p5-namespace-sweep 0.006, a Perl module to
sweep up imported subs in your classes.
This commit is contained in:
parent
13d177cb1e
commit
ae9d9a9110
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=310368
@ -2925,6 +2925,7 @@
|
||||
SUBDIR += p5-mocked
|
||||
SUBDIR += p5-namespace-autoclean
|
||||
SUBDIR += p5-namespace-clean
|
||||
SUBDIR += p5-namespace-sweep
|
||||
SUBDIR += p5-orz
|
||||
SUBDIR += p5-parent
|
||||
SUBDIR += p5-perlbrew
|
||||
|
23
devel/p5-namespace-sweep/Makefile
Normal file
23
devel/p5-namespace-sweep/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
# Created by: Anton Berezin <tobez@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= namespace-sweep
|
||||
PORTVERSION= 0.006
|
||||
CATEGORIES= devel perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= tobez@FreeBSD.org
|
||||
COMMENT= Sweep up imported subs in your classes
|
||||
|
||||
BUILD_DEPENDS= p5-B-Hooks-EndOfScope>=0.09:${PORTSDIR}/devel/p5-B-Hooks-EndOfScope \
|
||||
p5-Package-Stash>=0.33:${PORTSDIR}/devel/p5-Package-Stash \
|
||||
p5-Sub-Identify>=0.04:${PORTSDIR}/devel/p5-Sub-Identify \
|
||||
p5-Sub-Name>=0:${PORTSDIR}/devel/p5-Sub-Name
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= namespace::sweep.3
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-namespace-sweep/distinfo
Normal file
2
devel/p5-namespace-sweep/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (namespace-sweep-0.006.tar.gz) = de99ce915ab0f93781580e3433d7dc9c2585a2789627173b280c6030ac0b1953
|
||||
SIZE (namespace-sweep-0.006.tar.gz) = 12748
|
9
devel/p5-namespace-sweep/pkg-descr
Normal file
9
devel/p5-namespace-sweep/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
Because Perl methods are just regular subroutines, it's difficult to
|
||||
tell what's a method and what's just an imported function. As a result,
|
||||
imported functions can be called as methods on your objects. This pragma
|
||||
will delete imported functions from your class's symbol table, thereby
|
||||
ensuring that your interface is as you specified it. However, code
|
||||
inside your module will still be able to use the imported functions
|
||||
without any problems.
|
||||
|
||||
WWW: http://search.cpan.org/dist/namespace-sweep/
|
5
devel/p5-namespace-sweep/pkg-plist
Normal file
5
devel/p5-namespace-sweep/pkg-plist
Normal file
@ -0,0 +1,5 @@
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace/sweep/.packlist
|
||||
%%SITE_PERL%%/namespace/sweep.pm
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace/sweep
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/namespace
|
||||
@dirrmtry %%SITE_PERL%%/namespace
|
Loading…
Reference in New Issue
Block a user