mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
- 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 tis 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 PR: ports/145951 Submitted by: Jonathan Chu <milki@rescomp.berkeley.edu>
This commit is contained in:
parent
5e6bfa47f6
commit
d7aa7c3c08
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=253190
@ -231,6 +231,7 @@
|
||||
SUBDIR += p5-Switch
|
||||
SUBDIR += p5-Tcl
|
||||
SUBDIR += p5-Try-Tiny
|
||||
SUBDIR += p5-TryCatch
|
||||
SUBDIR += p5-ePerl
|
||||
SUBDIR += p5-signatures
|
||||
SUBDIR += p5-v6
|
||||
|
37
lang/p5-TryCatch/Makefile
Normal file
37
lang/p5-TryCatch/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# New ports collection makefile for: p5-TryCatch
|
||||
# Date created: 22 April 2010
|
||||
# Whom: milki
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= TryCatch
|
||||
PORTVERSION= 1.002000
|
||||
CATEGORIES= lang perl5
|
||||
MASTER_SITES= CPAN
|
||||
MASTER_SITE_SUBDIR= ../../authors/id/A/AS/ASH
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= milki@rescomp.berkeley.edu
|
||||
COMMENT= First class try catch semantics for Perl, without source filters
|
||||
|
||||
BUILD_DEPENDS= p5-Test-Simple>=0.88:${PORTSDIR}/devel/p5-Test-Simple \
|
||||
p5-Test-Exception>=0:${PORTSDIR}/devel/p5-Test-Exception \
|
||||
p5-ExtUtils-Depends>=0.302:${PORTSDIR}/devel/p5-ExtUtils-Depends \
|
||||
p5-B-Hooks-OP-Check>=0.18:${PORTSDIR}/devel/p5-B-Hooks-OP-Check \
|
||||
p5-B-Hooks-OP-PPAddr>=0.03:${PORTSDIR}/devel/p5-B-Hooks-OP-PPAddr
|
||||
RUN_DEPENDS= p5-Parse-Method-Signatures>=1.003012:${PORTSDIR}/devel/p5-Parse-Method-Signatures \
|
||||
p5-B-Hooks-EndOfScope>=0.08:${PORTSDIR}/devel/p5-B-Hooks-EndOfScope \
|
||||
p5-Devel-Declare>=0.005007:${PORTSDIR}/devel/p5-Devel-Declare \
|
||||
p5-Moose>=0:${PORTSDIR}/devel/p5-Moose \
|
||||
p5-MooseX-Types>=0:${PORTSDIR}/devel/p5-MooseX-Types \
|
||||
p5-Scope-Upper>=0.06:${PORTSDIR}/devel/p5-Scope-Upper \
|
||||
p5-Variable-Magic>=0.28:${PORTSDIR}/devel/p5-Variable-Magic \
|
||||
p5-Sub-Exporter>=0.979:${PORTSDIR}/devel/p5-Sub-Exporter \
|
||||
p5-XSLoader>=0:${PORTSDIR}/devel/p5-XSLoader
|
||||
|
||||
PERL_CONFIGURE= 5.8.1+
|
||||
|
||||
MAN3= TryCatch.3
|
||||
|
||||
.include <bsd.port.mk>
|
3
lang/p5-TryCatch/distinfo
Normal file
3
lang/p5-TryCatch/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (TryCatch-1.002000.tar.gz) = c0069370f5cbd982872702ed4495daf4
|
||||
SHA256 (TryCatch-1.002000.tar.gz) = 1ac163e3ccaf4b445f832a80f57a89f7a5de714470732fe4613d76a5382d7960
|
||||
SIZE (TryCatch-1.002000.tar.gz) = 83199
|
7
lang/p5-TryCatch/pkg-descr
Normal file
7
lang/p5-TryCatch/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
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
|
7
lang/p5-TryCatch/pkg-plist
Normal file
7
lang/p5-TryCatch/pkg-plist
Normal file
@ -0,0 +1,7 @@
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/TryCatch.pm
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/TryCatch/.packlist
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/TryCatch/TryCatch.bs
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/TryCatch/TryCatch.so
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/bench.pl
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/bench_ok.pl
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/TryCatch
|
Loading…
Reference in New Issue
Block a user