diff options
author | James FitzGibbon <jfitz@FreeBSD.org> | 1996-10-24 13:46:37 +0000 |
---|---|---|
committer | James FitzGibbon <jfitz@FreeBSD.org> | 1996-10-24 13:46:37 +0000 |
commit | d25d9138f178ed4d4b79701ab169c72c347c1ba4 (patch) | |
tree | cccee75126507815944bb9069ca772b8a32724c0 /devel | |
parent | perl5 module handling application defaults in Perl. (diff) |
perl5 module to install die() and warn() handlers.
Notes
Notes:
svn path=/head/; revision=4145
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-Religion/Makefile | 34 | ||||
-rw-r--r-- | devel/p5-Religion/distinfo | 1 | ||||
-rw-r--r-- | devel/p5-Religion/pkg-comment | 1 | ||||
-rw-r--r-- | devel/p5-Religion/pkg-descr | 18 | ||||
-rw-r--r-- | devel/p5-Religion/pkg-plist | 4 |
5 files changed, 58 insertions, 0 deletions
diff --git a/devel/p5-Religion/Makefile b/devel/p5-Religion/Makefile new file mode 100644 index 000000000000..26ccc55274d1 --- /dev/null +++ b/devel/p5-Religion/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: p5-Religion +# Version required: 1.04 +# Date created: October 24th 1996 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id: Makefile,v 1.2 1996/10/24 09:58:34 jfitz Exp $ +# + +DISTNAME= Religion-1.04 +PKGNAME= p5-Religion-1.04 +CATEGORIES+= devel +MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/Religion/ \ + ftp://ftp.cdrom.com/pub/perl/CPAN/modules/by-module/Religion/ \ + ftp://ftp.cis.ufl.edu/pub/perl/CPAN/modules/by-module/Religion/ \ + ftp://ftp.leo.org/pub/comp/programming/languages/perl/CPAN/modules/by-module/Religion/ \ + ftp://ftp.demon.co.uk/pub/mirrors/perl/CPAN/modules/by-module/Religion/ \ + ftp://ftp.lab.kdd.co.jp/lang/perl/CPAN/modules/by-module/Religion/ + +MAINTAINER= jfitz@FreeBSD.ORG + +BUILD_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5 +RUN_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5 + +do-configure: + @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL + +post-install: +.if !defined(NOMANCOMPRESS) + @ for file in Religion; do \ + gzip -9nf ${PREFIX}/lib/perl5/man/man3/$$file.3; \ + done +.endif + +.include <bsd.port.mk> diff --git a/devel/p5-Religion/distinfo b/devel/p5-Religion/distinfo new file mode 100644 index 000000000000..7fedf4c23624 --- /dev/null +++ b/devel/p5-Religion/distinfo @@ -0,0 +1 @@ +MD5 (Religion-1.04.tar.gz) = 9e5c6edfbfc224c677089a3946bb7e27 diff --git a/devel/p5-Religion/pkg-comment b/devel/p5-Religion/pkg-comment new file mode 100644 index 000000000000..3e5c8eb1ee8e --- /dev/null +++ b/devel/p5-Religion/pkg-comment @@ -0,0 +1 @@ +perl5 module to install die() and warn() handlers. diff --git a/devel/p5-Religion/pkg-descr b/devel/p5-Religion/pkg-descr new file mode 100644 index 000000000000..9033ea4b345e --- /dev/null +++ b/devel/p5-Religion/pkg-descr @@ -0,0 +1,18 @@ +This is a second go at a module to simplify installing die() and warn() +handlers, and to make such handlers easier to write and control. + +For most people, this just means that if use use Religion; then you'll get +noticably better error reporting from warn() and die(). This is especially +useful if you are using eval(). + +Religion provides four classes, WarnHandler, DieHandler, WarnPreHandler, and +DiePreHandler, that when you construct them return closures that can be +stored in variables that in turn get invoked by $SIG{__DIE__} and +$SIG{__WARN__}. Note that if Religion is in use, you should not modify +$SIG{__DIE__} or $SIG{__WARN__}, unless you are careful about invoking +chaining to the old handler. + +Religion also provides a TraceBack function, which is used by a DieHandler +after you die() to give a better handle on the current scope of your +situation, and provide information about where you were, which might +influence where you want to go next, either returning back to where diff --git a/devel/p5-Religion/pkg-plist b/devel/p5-Religion/pkg-plist new file mode 100644 index 000000000000..71d135971ab7 --- /dev/null +++ b/devel/p5-Religion/pkg-plist @@ -0,0 +1,4 @@ +lib/perl5/man/man3/Religion.3.gz +lib/perl5/site_perl/Religion.pm +lib/perl5/site_perl/i386-freebsd/auto/Religion/.packlist +@dirrm lib/perl5/site_perl/i386-freebsd/auto/Religion |