Subject: | missing dependent module and wrong error message |
Catalyst::View::XSLT isn't usable without adding UNIVERSAL::require or
it would require additional adjustment to get it work.
This is why the patch changes Catalyst::View::XSLT::XML::LibXSLT.
Besides there's a mistake in the constructor that avoids expanding the
error message; fixed too.
Beforehand this led to failing tests and other misbehaviour, now working.
Subject: | p5-Catalyst-View-XSLT-0.02p0.diff |
Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/p5-Catalyst-View-XSLT/Makefile,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile
--- Makefile 7 Nov 2006 18:19:25 -0000 1.1.1.1
+++ Makefile 17 Dec 2006 15:55:16 -0000
@@ -2,27 +2,23 @@
COMMENT= "XSLT Views for catalyst"
+MODULES= cpan
DISTNAME= Catalyst-View-XSLT-0.02
-PKGNAME= p5-${DISTNAME}
-CATEGORIES= textproc perl5
+PKGNAME= p5-${DISTNAME}p0
+CATEGORIES= textproc
-# Artistic + GPL
+# Perl
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
-MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Catalyst/}
-
RUN_DEPENDS= :p5-XML-LibXSLT->=1.60:textproc/p5-XML-LibXSLT \
- ::www/p5-Catalyst-Runtime
-REGRESS_DEPENDS=${RUN_DEPENDS} \
- ::devel/p5-Test-Pod \
- ::devel/p5-Test-Pod-Coverage
+ ::www/p5-Catalyst-Runtime \
+ ::devel/p5-Universal-require
MAKE_ENV= TEST_POD=Yes
-CONFIGURE_STYLE=perl modbuild
-PKG_ARCH= *
+CONFIGURE_STYLE=modbuild
.include <bsd.port.mk>
Index: patches/patch-lib_Catalyst_View_XSLT_XML_LibXSLT_pm
===================================================================
RCS file: /cvs/ports/textproc/p5-Catalyst-View-XSLT/patches/patch-lib_Catalyst_View_XSLT_XML_LibXSLT_pm,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-lib_Catalyst_View_XSLT_XML_LibXSLT_pm
--- patches/patch-lib_Catalyst_View_XSLT_XML_LibXSLT_pm 7 Nov 2006 18:19:25 -0000 1.1.1.1
+++ patches/patch-lib_Catalyst_View_XSLT_XML_LibXSLT_pm 17 Dec 2006 15:55:16 -0000
@@ -1,7 +1,15 @@
$OpenBSD: patch-lib_Catalyst_View_XSLT_XML_LibXSLT_pm,v 1.1.1.1 2006/11/07 18:19:25 espie Exp $
---- lib/Catalyst/View/XSLT/XML/LibXSLT.pm.orig Mon Nov 6 18:15:59 2006
-+++ lib/Catalyst/View/XSLT/XML/LibXSLT.pm Mon Nov 6 18:16:18 2006
-@@ -37,7 +37,7 @@ sub new
+--- lib/Catalyst/View/XSLT/XML/LibXSLT.pm.orig Tue Feb 21 11:56:24 2006
++++ lib/Catalyst/View/XSLT/XML/LibXSLT.pm Sun Dec 17 16:55:33 2006
+@@ -2,6 +2,7 @@ package Catalyst::View::XSLT::XML::LibXS
+
+ use strict;
+ use warnings;
++use UNIVERSAL::require;
+
+ =head1 NAME
+
+@@ -37,7 +38,7 @@ sub new
};
if ($@) {