pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Template-Plugin-VMethods Adding fix for bug r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d60e979e764a
branches:  trunk
changeset: 398205:d60e979e764a
user:      sno <sno%pkgsrc.org@localhost>
date:      Wed Aug 26 19:42:56 2009 +0000

description:
Adding fix for bug reported in RT #48990
--> http://rt.cpan.org/Ticket/Display.html?id=48990

diffstat:

 devel/p5-Template-Plugin-VMethods/Makefile         |   6 +++++-
 devel/p5-Template-Plugin-VMethods/distinfo         |   3 ++-
 devel/p5-Template-Plugin-VMethods/patches/patch-aa |  15 +++++++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diffs (53 lines):

diff -r 84c6817f2286 -r d60e979e764a devel/p5-Template-Plugin-VMethods/Makefile
--- a/devel/p5-Template-Plugin-VMethods/Makefile        Wed Aug 26 18:11:12 2009 +0000
+++ b/devel/p5-Template-Plugin-VMethods/Makefile        Wed Aug 26 19:42:56 2009 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/11/30 13:27:31 seb Exp $
+# $NetBSD: Makefile,v 1.2 2009/08/26 19:42:56 sno Exp $
 #
 
 DISTNAME=      Template-Plugin-VMethods-0.03
 PKGNAME=       p5-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    devel perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Template/}
 
@@ -17,5 +18,8 @@
 
 PERL5_PACKLIST=                auto/Template/Plugin/VMethods/.packlist
 
+pre-configure:
+       cd ${WRKSRC} && find `pwd` -name "*.orig" -type f | xargs rm
+
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 84c6817f2286 -r d60e979e764a devel/p5-Template-Plugin-VMethods/distinfo
--- a/devel/p5-Template-Plugin-VMethods/distinfo        Wed Aug 26 18:11:12 2009 +0000
+++ b/devel/p5-Template-Plugin-VMethods/distinfo        Wed Aug 26 19:42:56 2009 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/11/30 13:27:31 seb Exp $
+$NetBSD: distinfo,v 1.2 2009/08/26 19:42:56 sno Exp $
 
 SHA1 (Template-Plugin-VMethods-0.03.tar.gz) = 218d59fc299d73962692170e01f6eb17a9bdbfc6
 RMD160 (Template-Plugin-VMethods-0.03.tar.gz) = a79fd211a1511dbe88b2bcfa78830322d42205f4
 Size (Template-Plugin-VMethods-0.03.tar.gz) = 5919 bytes
+SHA1 (patch-aa) = 7596fa408c4e6f81ec2e4e8da1e728692efee2db
diff -r 84c6817f2286 -r d60e979e764a devel/p5-Template-Plugin-VMethods/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Template-Plugin-VMethods/patches/patch-aa        Wed Aug 26 19:42:56 2009 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1 2009/08/26 19:42:56 sno Exp $
+
+# Fixes RT #48990
+
+--- lib/Template/Plugin/VMethods.pm.orig       2003-09-03 19:12:56.000000000 +0200
++++ lib/Template/Plugin/VMethods.pm    2009-08-25 13:05:24.915827000 +0200
+@@ -196,7 +196,7 @@
+ 
+     # work out if we've got any ops declared
+     my $varname = $class.'::'.$op;
+-    next unless @{$varname};
++    next unless ( defined( *{$varname} ) && defined( *{$varname}{ARRAY} ) );
+ 
+     # work out where we're going to stick them
+     my $hashref = ${'Template::Stash::'.$op};



Home | Main Index | Thread Index | Old Index