Date: Sat, 15 Oct 2005 15:54:31 -0400 (EDT) From: Rod Taylor <ports@rbt.ca> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/87491: New Port: databases/p5-exception-class-dbi Message-ID: <200510151954.j9FJsV1A035100@home.rbt.ca> Resent-Message-ID: <200510152000.j9FK0SwW061382@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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@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@unexec rmdir %D/%%%SITE_PERL%%/Exception/Class 2>/dev/null || true X@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510151954.j9FJsV1A035100>