This moudles adds self and args keywords in your Perl OO module. It's

really just handy helpers to get rid of:

    my $self = shift;

Basically, self is just eqaul to $_[0], and args is just $_[1..$#_].

WWW:	http://search.cpan.org/dist/self/

PR:		ports/120190
Submitted by:	Gea-Suan Lin <gslin at gslin.org>
This commit is contained in:
Martin Wilke 2008-02-16 23:49:30 +00:00
parent 2ae9e19900
commit 44dd5dab0e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=207432
5 changed files with 40 additions and 0 deletions

View File

@ -1750,6 +1750,7 @@
SUBDIR += p5-prefork
SUBDIR += p5-reaper
SUBDIR += p5-rpm-build-perl
SUBDIR += p5-self
SUBDIR += p5-subatom
SUBDIR += p5-threads
SUBDIR += p5-threads-shared

24
devel/p5-self/Makefile Normal file
View File

@ -0,0 +1,24 @@
# New ports collection makefile for: p5-self
# Date created: 2008-02-01
# Whom: Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD$
#
PORTNAME= self
PORTVERSION= 0.15
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../../authors/id/G/GU/GUGOD/
PKGNAMEPREFIX= p5-
MAINTAINER= gslin@gslin.org
COMMENT= Provides "self" and "args" keywords in your OO program
RUN_DEPENDS= ${SITE_PERL}/Sub/Exporter.pm:${PORTSDIR}/devel/p5-Sub-Exporter
PERL_CONFIGURE= yes
MAN3= self.3
.include <bsd.port.mk>

3
devel/p5-self/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (self-0.15.tar.gz) = 15de5484c9533ad48f38f562ad747366
SHA256 (self-0.15.tar.gz) = 56b3b52ffc4c1d70f5198ea1e11184052eec55697884fd5a287923afd778606d
SIZE (self-0.15.tar.gz) = 14874

8
devel/p5-self/pkg-descr Normal file
View File

@ -0,0 +1,8 @@
This moudles adds self and args keywords in your Perl OO module. It's
really just handy helpers to get rid of:
my $self = shift;
Basically, self is just eqaul to $_[0], and args is just $_[1..$#_].
WWW: http://search.cpan.org/dist/self/

4
devel/p5-self/pkg-plist Normal file
View File

@ -0,0 +1,4 @@
@comment $FreeBSD$
%%SITE_PERL%%/%%PERL_ARCH%%/auto/self/.packlist
%%SITE_PERL%%/self.pm
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/self