Skip site navigation (1)Skip section navigation (2)
Date:      Wed,  2 May 2007 00:04:08 +0800 (CST)
From:      Gea-Suan Lin <gslin@gslin.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gslin@gslin.org
Subject:   ports/112306: [NEW PORT] devel/p5-CLASS: Alias for __PACKAGE__
Message-ID:  <20070501160408.31F364B4@netnews.NCTU.edu.tw>
Resent-Message-ID: <200705011610.l41GA4F3027830@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         112306
>Category:       ports
>Synopsis:       [NEW PORT] devel/p5-CLASS: Alias for __PACKAGE__
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 01 16:10:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Gea-Suan Lin
>Release:        FreeBSD 6.2-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Sat Apr 28 00:53:10 CST 2007
>Description:
CLASS and $CLASS are both synonyms for __PACKAGE__. Easier to type.

$CLASS has the additional benefit of working in strings.

CLASS is a constant, not a subroutine call. $CLASS is a plain
variable, it is not tied. There is no performance loss for using CLASS
over __PACKAGE__ except the loading of the module.

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

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- p5-CLASS-1.00.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	p5-CLASS
#	p5-CLASS/pkg-descr
#	p5-CLASS/Makefile
#	p5-CLASS/pkg-plist
#	p5-CLASS/distinfo
#
echo c - p5-CLASS
mkdir -p p5-CLASS > /dev/null 2>&1
echo x - p5-CLASS/pkg-descr
sed 's/^X//' >p5-CLASS/pkg-descr << 'END-of-p5-CLASS/pkg-descr'
XCLASS and $CLASS are both synonyms for __PACKAGE__. Easier to type.
X
X$CLASS has the additional benefit of working in strings.
X
XCLASS is a constant, not a subroutine call. $CLASS is a plain
Xvariable, it is not tied. There is no performance loss for using CLASS
Xover __PACKAGE__ except the loading of the module.
X
XWWW:	http://search.cpan.org/dist/CLASS/
END-of-p5-CLASS/pkg-descr
echo x - p5-CLASS/Makefile
sed 's/^X//' >p5-CLASS/Makefile << 'END-of-p5-CLASS/Makefile'
X# New ports collection makefile for:	p5-CLASS
X# Date created:		2007-05-02
X# Whom:			Gea-Suan Lin <gslin@gslin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	CLASS
XPORTVERSION=	1.00
XCATEGORIES=	devel perl5
XMASTER_SITES=	CPAN
XMASTER_SITE_SUBDIR=	../../authors/id/M/MS/MSCHWERN/
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	gslin@gslin.org
XCOMMENT=	Alias for __PACKAGE__
X
XPERL_CONFIGURE=	yes
X
XMAN3=		CLASS.3
X
X.include <bsd.port.mk>
END-of-p5-CLASS/Makefile
echo x - p5-CLASS/pkg-plist
sed 's/^X//' >p5-CLASS/pkg-plist << 'END-of-p5-CLASS/pkg-plist'
X@comment $FreeBSD$
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/CLASS/.packlist
X%%SITE_PERL%%/CLASS.pm
X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/CLASS
END-of-p5-CLASS/pkg-plist
echo x - p5-CLASS/distinfo
sed 's/^X//' >p5-CLASS/distinfo << 'END-of-p5-CLASS/distinfo'
XMD5 (CLASS-1.00.tar.gz) = 834b888b9c8a936b12de2c168798b618
XSHA256 (CLASS-1.00.tar.gz) = c5185620815701b3fec21314ccd8c5693e6bfd519431527da3370a8164220671
XSIZE (CLASS-1.00.tar.gz) = 3579
END-of-p5-CLASS/distinfo
exit
--- p5-CLASS-1.00.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070501160408.31F364B4>