From 409dcbfae7eaeea5efa58c93aaeda763d15c2e4b Mon Sep 17 00:00:00 2001 From: markd Date: Sun, 7 Apr 2013 02:36:22 +0000 Subject: defined() on aggregates is deprecated. Bump PKGREISION. --- misc/p5-I18N-LangTags/Makefile | 7 +++++-- misc/p5-I18N-LangTags/distinfo | 3 ++- .../patches/patch-lib_I18N_LangTags_Detect.pm | 15 +++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 misc/p5-I18N-LangTags/patches/patch-lib_I18N_LangTags_Detect.pm diff --git a/misc/p5-I18N-LangTags/Makefile b/misc/p5-I18N-LangTags/Makefile index 8d3dbf2a908..d0437e1c1d4 100644 --- a/misc/p5-I18N-LangTags/Makefile +++ b/misc/p5-I18N-LangTags/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.13 2012/10/08 09:57:33 asau Exp $ +# $NetBSD: Makefile,v 1.14 2013/04/07 02:36:22 markd Exp $ # DISTNAME= I18N-LangTags-0.35 PKGNAME= p5-${DISTNAME} -PKGREVISION= 5 +PKGREVISION= 6 SVR4_PKGNAME= p5ilt CATEGORIES= misc perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=I18N/} @@ -14,5 +14,8 @@ COMMENT= Perl5 functions for dealing with RFC3066-style language tags PERL5_PACKLIST= auto/I18N/LangTags/.packlist +post-patch: + rm ${WRKSRC}/lib/I18N/LangTags/Detect.pm.orig + .include "../../lang/perl5/module.mk" .include "../../mk/bsd.pkg.mk" diff --git a/misc/p5-I18N-LangTags/distinfo b/misc/p5-I18N-LangTags/distinfo index 8a5d7936252..993a6824b19 100644 --- a/misc/p5-I18N-LangTags/distinfo +++ b/misc/p5-I18N-LangTags/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.3 2005/03/02 22:22:29 wiz Exp $ +$NetBSD: distinfo,v 1.4 2013/04/07 02:36:22 markd Exp $ SHA1 (I18N-LangTags-0.35.tar.gz) = e9761fb9706a1a8e07a631def1348c107880d0e4 RMD160 (I18N-LangTags-0.35.tar.gz) = 7d63e09e86cd516391f52fe43af531a53aacff16 Size (I18N-LangTags-0.35.tar.gz) = 30636 bytes +SHA1 (patch-lib_I18N_LangTags_Detect.pm) = e39cdb6edaafd678c2ac2cc1ba212122315563b6 diff --git a/misc/p5-I18N-LangTags/patches/patch-lib_I18N_LangTags_Detect.pm b/misc/p5-I18N-LangTags/patches/patch-lib_I18N_LangTags_Detect.pm new file mode 100644 index 00000000000..6054a4c9b41 --- /dev/null +++ b/misc/p5-I18N-LangTags/patches/patch-lib_I18N_LangTags_Detect.pm @@ -0,0 +1,15 @@ +$NetBSD: patch-lib_I18N_LangTags_Detect.pm,v 1.1 2013/04/07 02:36:22 markd Exp $ + +defined() on aggregates is deprecated. + +--- lib/I18N/LangTags/Detect.pm.orig 2004-06-21 05:47:55.000000000 +0000 ++++ lib/I18N/LangTags/Detect.pm +@@ -137,7 +137,7 @@ sub _try_use { # Basically a wrapper a + my $module = $_[0]; # ASSUME sane module name! + { no strict 'refs'; + return($tried{$module} = 1) +- if defined(%{$module . "::Lexicon"}) or defined(@{$module . "::ISA"}); ++ if (%{$module . "::Lexicon"}) or (@{$module . "::ISA"}); + # weird case: we never use'd it, but there it is! + } + -- cgit v1.2.3