ports/157632: New port: devel/p5-Sub-Alias

Peter Vereshagin peter at vereshagin.org
Sun Jun 5 19:10:09 UTC 2011


>Number:         157632
>Category:       ports
>Synopsis:       New port: devel/p5-Sub-Alias
>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:   Sun Jun 05 19:10:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Peter Vereshagin
>Release:        7.4-stable
>Organization:
'
>Environment:
FreeBSD teh.ost 7.4-STABLE FreeBSD 7.4-STABLE #10: Mon May  2 16:12:55 MSD 2011     usr at teh.ost:/CONFIG  i386

>Description:
This module does a compile-time code injection to let you define subroute
aliases with their names, but not code refs.

This differs from p5-Sub-Name in that it defines a typeglob in a more correct
way and keeps you from manipulating the symbol tables directly. You can use the
subroutine as if it was defined the ordinary way then. 

This is particularly useful in the cases when you need to have several
identical subroutines with different names.

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# 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-Sub-Alias
#	p5-Sub-Alias/Makefile
#	p5-Sub-Alias/distinfo
#	p5-Sub-Alias/pkg-descr
#
echo c - p5-Sub-Alias
mkdir -p p5-Sub-Alias > /dev/null 2>&1
echo x - p5-Sub-Alias/Makefile
sed 's/^X//' >p5-Sub-Alias/Makefile << '120b8fc4401340eac06672cecd29e3b1'
X# New ports collection makefile for:	devel/p5-Sub-Alias
X# Date created:				05 June 2011
X# Whom:					Peter Vereshagin <peter at vereshagin.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Sub-Alias
XPORTVERSION=	0.03
XCATEGORIES=	devel perl5
XMASTER_SITES=	CPAN
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	peter at vereshagin.org
XCOMMENT=	Sub::Alias - alias a sub
X
XBUILD_DEPENDS=	p5-Sub-Exporter>=0:${PORTSDIR}/devel/p5-Sub-Exporter \
X		p5-Devel-Declare>=0:${PORTSDIR}/devel/p5-Devel-Declare		\
X		p5-Devel-BeginLift>=0:${PORTSDIR}/devel/p5-Devel-BeginLift
XRUN_DEPENDS=	p5-Sub-Exporter>=0:${PORTSDIR}/devel/p5-Sub-Exporter \
X		p5-Devel-Declare>=0:${PORTSDIR}/devel/p5-Devel-Declare		\
X		p5-Devel-BeginLift>=0:${PORTSDIR}/devel/p5-Devel-BeginLift
X
XPERL_CONFIGURE=	5.8.0+
X
XLICENSE=	MIT
X
XMAN3=	Sub::Alias.3
X
X.include <bsd.port.mk>
120b8fc4401340eac06672cecd29e3b1
echo x - p5-Sub-Alias/distinfo
sed 's/^X//' >p5-Sub-Alias/distinfo << '1f15d053091e6c20179e8f7550102263'
XSHA256 (Sub-Alias-0.03.tar.gz) = 8a408483ddb7d5daefbe3e25ad50b027b08e6af0b089d30bf7f32de83bd629d1
XSIZE (Sub-Alias-0.03.tar.gz) = 16333
1f15d053091e6c20179e8f7550102263
echo x - p5-Sub-Alias/pkg-descr
sed 's/^X//' >p5-Sub-Alias/pkg-descr << 'd59ad9d1f26d6afe49c9a1dbd17d6df4'
XThis module does a compile-time code injection to let you define subroute
Xaliases with their names, but not code refs.
X
XThis differs from p5-Sub-Name in that it defines a typeglob in a more correct
Xway and keeps you from manipulating the symbol tables directly. You can use the
Xsubroutine as if it was defined the ordinary way then. 
X
XThis is particularly useful in the cases when you need to have several
Xidentical subroutines with different names.
X
XWWW: http://search.cpan.org/dist/Sub-Alias/
d59ad9d1f26d6afe49c9a1dbd17d6df4
exit



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



More information about the freebsd-ports-bugs mailing list