Add lang/p5-Try-Tiny 0.01, a Perl module that

provides minimal try/catch with proper localization of $$@.
This commit is contained in:
Anton Berezin 2009-09-01 18:07:07 +00:00
parent 9d2ba94062
commit 647fcce0ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=240668
5 changed files with 37 additions and 0 deletions

View file

@ -228,6 +228,7 @@
SUBDIR += p5-Scalar-List-Utils
SUBDIR += p5-Switch
SUBDIR += p5-Tcl
SUBDIR += p5-Try-Tiny
SUBDIR += p5-ePerl
SUBDIR += p5-signatures
SUBDIR += p5-v6

22
lang/p5-Try-Tiny/Makefile Normal file
View file

@ -0,0 +1,22 @@
# New ports collection makefile for: lang/p5-Try-Tiny
# Date created: 01 September 2009
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= Try-Tiny
PORTVERSION= 0.01
CATEGORIES= lang perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../../authors/id/N/NU/NUFFIN
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= Minimal try/catch with proper localization of $$@
PERL_CONFIGURE= yes
MAN3= Try::Tiny.3
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (Try-Tiny-0.01.tar.gz) = 2b1bed5fd3e9157ad11d16f29ac1a957
SHA256 (Try-Tiny-0.01.tar.gz) = ed016444c57734d4752af6a1c1d46e31a9b862c31c5f02d57a426454b9f7f8c3
SIZE (Try-Tiny-0.01.tar.gz) = 6092

View file

@ -0,0 +1,6 @@
This module provides bare bones try/catch statements that are designed
to minimize common mistakes done with eval blocks (for instance assuming
that $@ is set to a true value on error, or clobbering previous values
of $@, and NOTHING else.
WWW: http://search.cpan.org/dist/Try-Tiny/

View file

@ -0,0 +1,5 @@
%%SITE_PERL%%/Try/Tiny.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Try/Tiny/.packlist
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Try/Tiny
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Try
@dirrmtry %%SITE_PERL%%/Try