Update textproc/p5-Catalyst-View-TT-FunctionGenerator to version 0.02.

Replace NEXT by MRO::Compat.  Fix a test.
Catalyst::View::TT::FunctionGenerator is deprecated.

from Andreas Voegele
This commit is contained in:
sthen 2012-04-08 22:04:40 +00:00
parent eb2b3e940c
commit 389525cae5
6 changed files with 46 additions and 13 deletions

View File

@ -1,10 +1,9 @@
# $OpenBSD: Makefile,v 1.6 2010/12/03 11:46:48 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.7 2012/04/08 22:04:40 sthen Exp $
COMMENT= use shorter names in catalyst tt views
COMMENT= use shorter names in catalyst tt views (deprecated)
MODULES= cpan
DISTNAME= Catalyst-View-TT-FunctionGenerator-0.01
REVISION= 0
DISTNAME= Catalyst-View-TT-FunctionGenerator-0.02
CATEGORIES= textproc devel
USE_GROFF = Yes
@ -15,8 +14,10 @@ PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
RUN_DEPENDS= textproc/p5-Catalyst-View-TT \
www/p5-Catalyst-Plugin-Singleton
www/p5-Catalyst-Plugin-Singleton \
devel/p5-MRO-Compat
MAKE_ENV= TEST_POD=Yes
post-build:
@rm -f ${WRKBUILD}/blib/lib/Catalyst/View/TT/FunctionGenerator.pm.orig
.include <bsd.port.mk>

View File

@ -1,5 +1,5 @@
MD5 (Catalyst-View-TT-FunctionGenerator-0.01.tar.gz) = N1VI3Kb0kR6gmFK72hYxxw==
RMD160 (Catalyst-View-TT-FunctionGenerator-0.01.tar.gz) = DHYJ24Wy2HsP15595fmwR3eqMNc=
SHA1 (Catalyst-View-TT-FunctionGenerator-0.01.tar.gz) = hKTFE0a6147LTS0NdvRoHyupJSg=
SHA256 (Catalyst-View-TT-FunctionGenerator-0.01.tar.gz) = 4ZQnWucRbYjSh/khbl3v7UFsCcevKfMcsFvKPnH80SE=
SIZE (Catalyst-View-TT-FunctionGenerator-0.01.tar.gz) = 5256
MD5 (Catalyst-View-TT-FunctionGenerator-0.02.tar.gz) = cX1nwScyPijS+YfVQn9r6w==
RMD160 (Catalyst-View-TT-FunctionGenerator-0.02.tar.gz) = x0ZPseKk9+KNr2+OORvvCDJF1pI=
SHA1 (Catalyst-View-TT-FunctionGenerator-0.02.tar.gz) = ux4TuORdiuT0GN2LqRawpP6W+eo=
SHA256 (Catalyst-View-TT-FunctionGenerator-0.02.tar.gz) = nG1QkbcI4M85oRYvWGAphLDozR+Svt5hRRIdaLmW0qU=
SIZE (Catalyst-View-TT-FunctionGenerator-0.02.tar.gz) = 5098

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-lib_Catalyst_View_TT_FunctionGenerator_pm,v 1.1 2012/04/08 22:04:40 sthen Exp $
--- lib/Catalyst/View/TT/FunctionGenerator.pm.orig Wed Mar 7 03:57:07 2007
+++ lib/Catalyst/View/TT/FunctionGenerator.pm Sun Nov 6 09:14:00 2011
@@ -10,6 +10,7 @@ use Catalyst::Utils ();
use Class::Inspector ();
use Scalar::Util qw/weaken/;
use Carp ();
+use MRO::Compat;
our $VERSION = "0.02";
@@ -56,7 +57,7 @@ sub template_vars {
my ( $self, $c ) = @_;
return (
- $self->NEXT::template_vars( $c ),
+ $self->maybe::next::method( $c ),
map {
my ( $obj, @methods ) = @$_;
weaken( $obj ) if ( $obj == $c );

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-t_basic_t,v 1.1 2012/04/08 22:04:40 sthen Exp $
--- t/basic.t.orig Wed Mar 7 04:01:01 2007
+++ t/basic.t Sun Nov 6 09:25:20 2011
@@ -16,7 +16,7 @@ $SIG{__DIE__} = \&Carp::confess;
my $moose = bless {}, "Foodiness";
sub moose { $moose }
- my %config;
+ my %config = ( root => '/var/empty' );
sub config { \%config }
sub debug { 0 }

View File

@ -0,0 +1 @@
Catalyst::View::TT::FunctionGenerator is deprecated.

View File

@ -1,5 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/11/06 13:00:43 espie Exp $
${P5SITE}/Catalyst/View/
@comment $OpenBSD: PLIST,v 1.2 2012/04/08 22:04:40 sthen Exp $
${P5SITE}/Catalyst/View/TT/
${P5SITE}/Catalyst/View/TT/FunctionGenerator.pm
@man man/man3p/Catalyst::View::TT::FunctionGenerator.3p