The autodie pragma provides a convenient way to replace functions

that normally return false on failure with equivalents that throw
an exception on failure.

The autodie pragma has lexical scope, meaning that functions and
subroutines altered with autodie will only change their behaviour
until the end of the enclosing block, file, or eval.

If system is specified as an argument to autodie, then it uses
IPC::System::Simple to do the heavy lifting. See the description
of that module for more information.

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

Approved by:	miwi(mentor)
Feature safe:	yes
This commit is contained in:
Wen Heping 2009-09-23 11:57:02 +00:00
parent 2641998467
commit 7b7e31a76b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=241964
5 changed files with 51 additions and 0 deletions

View file

@ -2093,6 +2093,7 @@
SUBDIR += p5-accessors
SUBDIR += p5-aliased
SUBDIR += p5-autobox
SUBDIR += p5-autodie
SUBDIR += p5-base
SUBDIR += p5-boolean
SUBDIR += p5-capitalization

25
devel/p5-autodie/Makefile Normal file
View file

@ -0,0 +1,25 @@
# New ports collection makefile for: autodie
# Date created: 22 Sep, 2009
# Whom: Wen Heping <wen@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= autodie
PORTVERSION= 2.06
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= wen@FreeBSD.org
COMMENT= Replace functions with ones that succeed or die with lexical scope
PERL_CONFIGURE= yes
MAN3= Fatal.3 \
autodie::exception.3 \
autodie::hints.3 \
autodie::exception::system.3 \
autodie.3
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (autodie-2.06.tar.gz) = f0e72b6ec163a1bc4b83bac2b64ba438
SHA256 (autodie-2.06.tar.gz) = 5e509fce83c17b7965ece9ae5a5feec8ca28d6c858e18f0f81028b6e65cd24b2
SIZE (autodie-2.06.tar.gz) = 73630

View file

@ -0,0 +1,13 @@
The autodie pragma provides a convenient way to replace functions
that normally return false on failure with equivalents that throw
an exception on failure.
The autodie pragma has lexical scope, meaning that functions and
subroutines altered with autodie will only change their behaviour
until the end of the enclosing block, file, or eval.
If system is specified as an argument to autodie, then it uses
IPC::System::Simple to do the heavy lifting. See the description
of that module for more information.
WWW: http://search.cpan.org/dist/autodie/

View file

@ -0,0 +1,9 @@
%%SITE_PERL%%/Fatal.pm
%%SITE_PERL%%/autodie.pm
%%SITE_PERL%%/autodie/exception.pm
%%SITE_PERL%%/autodie/hints.pm
%%SITE_PERL%%/autodie/exception/system.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/autodie/.packlist
@dirrm %%SITE_PERL%%/autodie/exception
@dirrm %%SITE_PERL%%/autodie
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/autodie