ports/87491: New Port: databases/p5-exception-class-dbi

Rod Taylor ports at rbt.ca
Sat Oct 15 20:00:29 UTC 2005


>Number:         87491
>Category:       ports
>Synopsis:       New Port: databases/p5-exception-class-dbi
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 15 20:00:27 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Rod Taylor
>Release:        FreeBSD 6.0-BETA4 amd64
>Organization:
>Environment:
System: FreeBSD home 6.0-BETA4 FreeBSD 6.0-BETA4 #12: Thu Sep 15 22:41:54 EDT 2005 root at home:/usr/obj/usr/src/sys/HOME amd64


	
>Description:
This module offers a set of DBI-specific exception classes. They inherit from Exception::Class, the base class for all exception objects created by the Exception::Class module from the CPAN. Exception::Class::DBI itself offers a single class method, handler(), that returns a code reference appropriate for passing to the DBI HandleError attribute.

Essentially it allows try {} catch{} within perl for database errors. Handy for catching a specific SQLSTATE error and doing something to recover from it.
>How-To-Repeat:
	
>Fix:

	

--- exception-class-dbi.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-Exception-Class-DBI
#	p5-Exception-Class-DBI/Makefile
#	p5-Exception-Class-DBI/distinfo
#	p5-Exception-Class-DBI/pkg-descr
#	p5-Exception-Class-DBI/pkg-plist
#
echo c - p5-Exception-Class-DBI
mkdir -p p5-Exception-Class-DBI > /dev/null 2>&1
echo x - p5-Exception-Class-DBI/Makefile
sed 's/^X//' >p5-Exception-Class-DBI/Makefile << 'END-of-p5-Exception-Class-DBI/Makefile'
X# New ports collection makefile for:	p5-Exception-Class
X# Date created:				15 October 2005
X# Whom:	      				Rod Taylor <ports at rbt.ca>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	Exception-Class-DBI
XPORTVERSION=	0.92
XCATEGORIES=	databases perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	Exception
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	ports at rbt.ca
XCOMMENT=	DBI Exception objects
X
XBUILD_DEPENDS=	${SITE_PERL}/Exception/Class.pm:${PORTSDIR}/devel/p5-Exception-Class \
X		${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
XRUN_DEPENDS=	${BUILD_DEPENDS}
X
XPERL_MODBUILD=	yes
X
XMAN3=		Exception::Class::DBI.3
X
X.include <bsd.port.mk>
END-of-p5-Exception-Class-DBI/Makefile
echo x - p5-Exception-Class-DBI/distinfo
sed 's/^X//' >p5-Exception-Class-DBI/distinfo << 'END-of-p5-Exception-Class-DBI/distinfo'
XMD5 (Exception-Class-DBI-0.92.tar.gz) = 7b8032fdf31ccab88d19d1446c6fe741
XSIZE (Exception-Class-DBI-0.92.tar.gz) = 10056
END-of-p5-Exception-Class-DBI/distinfo
echo x - p5-Exception-Class-DBI/pkg-descr
sed 's/^X//' >p5-Exception-Class-DBI/pkg-descr << 'END-of-p5-Exception-Class-DBI/pkg-descr'
XThis module offers a set of DBI-specific exception classes. They
Xinherit from Exception::Class, the base class for all exception
Xobjects created by the Exception::Class module from the CPAN.
XException::Class::DBI itself offers a single class method, handler(),
Xthat returns a code reference appropriate for passing to the DBI
XHandleError attribute.
X
XWWW: http://search.cpan.org/dist/Exception-Class-DBI/
END-of-p5-Exception-Class-DBI/pkg-descr
echo x - p5-Exception-Class-DBI/pkg-plist
sed 's/^X//' >p5-Exception-Class-DBI/pkg-plist << 'END-of-p5-Exception-Class-DBI/pkg-plist'
X%%SITE_PERL%%/Exception/Class/DBI.pm
X at unexec rmdir %D/%%%SITE_PERL%%/Exception/Class 2>/dev/null || true
X at unexec rmdir %D/%%%SITE_PERL%%/Exception 2>/dev/null || true
END-of-p5-Exception-Class-DBI/pkg-plist
exit
--- exception-class-dbi.shar ends here ---


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



More information about the freebsd-ports-bugs mailing list