ports/145951: [NEW PORT] lang/p5-TryCatch: First class try catch semantics for Perl, without source filters

Jonathan Chu milki at rescomp.berkeley.edu
Thu Apr 22 17:40:01 UTC 2010


>Number:         145951
>Category:       ports
>Synopsis:       [NEW PORT] lang/p5-TryCatch: First class try catch semantics for Perl, without source filters
>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:   Thu Apr 22 17:40:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Jonathan Chu
>Release:        FreeBSD 7.1-RELEASE-p10 i386
>Organization:
UC Berkeley - RSSP-IT
>Environment:
System: FreeBSD dev-www7.rescomp.berkeley.edu 7.1-RELEASE-p10 FreeBSD 7.1-RELEASE-p10 #5: Mon Jan 11 14:48:41 PST 2010
>Description:
This module aims to provide a nicer syntax and method to catch errors in
Perl, similar to what is found in other languages (such as Java, Python
or C++). The standard method of using eval {}; if ($@) {} is often prone
to subtle bugs, primarily that its far too easy to stomp on the error in
error handlers. And also eval/if isn't the nicest idiom.

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

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

--- p5-TryCatch-1.002000.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-TryCatch
#	p5-TryCatch/Makefile
#	p5-TryCatch/distinfo
#	p5-TryCatch/pkg-descr
#	p5-TryCatch/pkg-plist
#
echo c - p5-TryCatch
mkdir -p p5-TryCatch > /dev/null 2>&1
echo x - p5-TryCatch/Makefile
sed 's/^X//' >p5-TryCatch/Makefile << 'cc4461412865fe51f997611d6379e40d'
X# New ports collection makefile for:	p5-TryCatch
X# Date created:		22 April 2010
X# Whom:		milki
X#
X# $FreeBSD$
X#
X
XPORTNAME=	TryCatch
XPORTVERSION=	1.002000
XCATEGORIES=	lang perl5
XMASTER_SITES=	CPAN
XMASTER_SITE_SUBDIR=	 ../../authors/id/A/AS/ASH
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	milki at rescomp.berkeley.edu
XCOMMENT=	First class try catch semantics for Perl, without source filters
X
XBUILD_DEPENDS=	 p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple \
X		p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception \
X		p5-ExtUtils-Depends>=0.302:${PORTSDIR}/devel/p5-ExtUtils-Depends \
X		p5-B-Hooks-OP-Check>=0.18:${PORTSDIR}/devel/p5-B-Hooks-OP-Check \
X		p5-B-Hooks-OP-PPAddr>=0.03:${PORTSDIR}/devel/p5-B-Hooks-OP-PPAddr
XRUN_DEPENDS=	 p5-Parse-Method-Signatures>=1.003012:${PORTSDIR}/devel/p5-Parse-Method-Signatures \
X		p5-B-Hooks-EndOfScope>=0.08:${PORTSDIR}/devel/p5-B-Hooks-EndOfScope \
X		p5-Devel-Declare>=0.005007:${PORTSDIR}/devel/p5-Devel-Declare \
X		p5-Moose>=0:${PORTSDIR}/devel/p5-Moose \
X		p5-MooseX-Types>=0:${PORTSDIR}/devel/p5-MooseX-Types \
X		p5-Scope-Upper>=0.06:${PORTSDIR}/devel/p5-Scope-Upper \
X		p5-Variable-Magic>=0.28:${PORTSDIR}/devel/p5-Variable-Magic \
X		p5-Sub-Exporter>=0.979:${PORTSDIR}/devel/p5-Sub-Exporter \
X		p5-XSLoader>=0:${PORTSDIR}/devel/p5-XSLoader
X
XPERL_CONFIGURE=	5.8.1+
X
XMAN3=	TryCatch.3
X
X.include <bsd.port.mk>
cc4461412865fe51f997611d6379e40d
echo x - p5-TryCatch/distinfo
sed 's/^X//' >p5-TryCatch/distinfo << 'c55451795a6bf099193479e5a041c818'
XMD5 (TryCatch-1.002000.tar.gz) = c0069370f5cbd982872702ed4495daf4
XSHA256 (TryCatch-1.002000.tar.gz) = 1ac163e3ccaf4b445f832a80f57a89f7a5de714470732fe4613d76a5382d7960
XSIZE (TryCatch-1.002000.tar.gz) = 83199
c55451795a6bf099193479e5a041c818
echo x - p5-TryCatch/pkg-descr
sed 's/^X//' >p5-TryCatch/pkg-descr << 'f663d30d5fabc5b41fb263e72c3933d6'
XThis module aims to provide a nicer syntax and method to catch errors in
XPerl, similar to what is found in other languages (such as Java, Python
Xor C++). The standard method of using eval {}; if ($@) {} is often prone
Xto subtle bugs, primarily that its far too easy to stomp on the error in
Xerror handlers. And also eval/if isn't the nicest idiom.
X
XWWW: http://search.cpan.org/dist/TryCatch
f663d30d5fabc5b41fb263e72c3933d6
echo x - p5-TryCatch/pkg-plist
sed 's/^X//' >p5-TryCatch/pkg-plist << '23e193881445c479f85b37cb0c9ea516'
X%%SITE_PERL%%/%%PERL_ARCH%%/TryCatch.pm
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/TryCatch/TryCatch.bs
X%%SITE_PERL%%/%%PERL_ARCH%%/auto/TryCatch/TryCatch.so
X%%SITE_PERL%%/%%PERL_ARCH%%/bench.pl
X%%SITE_PERL%%/%%PERL_ARCH%%/bench_ok.pl
X at dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/TryCatch
23e193881445c479f85b37cb0c9ea516
exit
--- p5-TryCatch-1.002000.shar ends here ---

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



More information about the freebsd-ports-bugs mailing list