From b6b4dccefa7bd3c7415b89ebfd3f7495ce50d507 Mon Sep 17 00:00:00 2001 From: merdely Date: Wed, 1 Oct 2008 21:49:48 +0000 Subject: [PATCH] Make work with Perl 5.10. Pointed out by naddy@ ok simon@ --- textproc/p5-SWISH-API/Makefile | 4 ++-- .../patches/patch-perl_Makefile_PL | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 textproc/p5-SWISH-API/patches/patch-perl_Makefile_PL diff --git a/textproc/p5-SWISH-API/Makefile b/textproc/p5-SWISH-API/Makefile index ea795b2886b..bec0fd9f28f 100644 --- a/textproc/p5-SWISH-API/Makefile +++ b/textproc/p5-SWISH-API/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2007/09/11 20:55:21 merdely Exp $ +# $OpenBSD: Makefile,v 1.2 2008/10/01 21:49:48 merdely Exp $ COMMENT= Perl interface to the swish-e C library SHARED_ONLY= Yes DISTNAME= swish-e-2.4.5 -PKGNAME= p5-SWISH-API-0.04 +PKGNAME= p5-SWISH-API-0.04p0 CATEGORIES= textproc MODULES= cpan diff --git a/textproc/p5-SWISH-API/patches/patch-perl_Makefile_PL b/textproc/p5-SWISH-API/patches/patch-perl_Makefile_PL new file mode 100644 index 00000000000..d50dace24d5 --- /dev/null +++ b/textproc/p5-SWISH-API/patches/patch-perl_Makefile_PL @@ -0,0 +1,19 @@ +$OpenBSD: patch-perl_Makefile_PL,v 1.1 2008/10/01 21:49:48 merdely Exp $ + +Fixes build after perl 5.10 update. + +--- perl/Makefile.PL.orig Wed Oct 1 16:48:37 2008 ++++ perl/Makefile.PL Wed Oct 1 16:49:18 2008 +@@ -80,10 +80,8 @@ Can be either environment variables or passed on comma + + EOF + +-$SIG{__DIE__} = sub { +- print STDERR "\n ** ERROR: ", @_; +- print STDERR " Run perl Makefile.PL SWISHHELP for options\n\n"; +- exit 1; ++END { ++ print STDERR "Run perl Makefile.PL SWISHHELP for options\n\n" if $?; + }; + + #----------------------------------------------------------------------------------