>Number: 101662
>Category: ports
>Synopsis: [MAINTAINER] textproc/p5-XML-XPathEngine: support perl 5.00503
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 08 15:00:26 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Gea-Suan Lin
>Release: FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006
>Description:
- Support Perl 5.00503
Added file(s):
- files/extra-lib-XML-XPathEngine.pm
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- p5-XML-XPathEngine-0.03.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/textproc/p5-XML-XPathEngine/Makefile /home/staff/gslin/work/p5-XML-XPathEngine/Makefile
--- /usr/ports/textproc/p5-XML-XPathEngine/Makefile Fri Jul 14 05:49:14 2006
+++ /home/staff/gslin/work/p5-XML-XPathEngine/Makefile Tue Aug 8 22:52:20 2006
@@ -24,7 +24,10 @@
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
-IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 then try again
+EXTRA_PATCHES= ${PATCHDIR}/extra-*
+
+post-patch:
+ ${PERL} -pi -e '$$_ = "" if /^use warnings/' ${WRKSRC}/Makefile.PL
.endif
.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/textproc/p5-XML-XPathEngine/files/extra-lib-XML-XPathEngine.pm /home/staff/gslin/work/p5-XML-XPathEngine/files/extra-lib-XML-XPathEngine.pm
--- /usr/ports/textproc/p5-XML-XPathEngine/files/extra-lib-XML-XPathEngine.pm Thu Jan 1 08:00:00 1970
+++ /home/staff/gslin/work/p5-XML-XPathEngine/files/extra-lib-XML-XPathEngine.pm Tue Aug 8 22:51:12 2006
@@ -0,0 +1,30 @@
+--- lib/XML/XPathEngine.pm.orig Tue Aug 8 22:49:51 2006
++++ lib/XML/XPathEngine.pm Tue Aug 8 22:50:29 2006
+@@ -1,27 +1,10 @@
+ package XML::XPathEngine;
+
+-use warnings;
+ use strict;
+
+-use vars qw($VERSION $AUTOLOAD $revision);
+-
+ $VERSION = '0.03';
+ $XML::XPathEngine::Namespaces = 0;
+ $XML::XPathEngine::DEBUG = 0;
+-
+-use vars qw/
+- $NCName
+- $QName
+- $NCWild
+- $QNWild
+- $NUMBER_RE
+- $NODE_TYPE
+- $AXIS_NAME
+- %AXES
+- $LITERAL
+- $REGEXP_RE
+- $REGEXP_MOD_RE
+- %CACHE/;
+
+ use XML::XPathEngine::Step;
+ use XML::XPathEngine::Expr;
--- p5-XML-XPathEngine-0.03.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted: