aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorclsung <clsung@FreeBSD.org>2006-08-09 11:03:55 +0800
committerclsung <clsung@FreeBSD.org>2006-08-09 11:03:55 +0800
commit882422b12d6f25ede5fb1bf8d0b3994fa6d2b749 (patch)
treea2c98c7ef72f71563b176351537653b5f89b83cb /textproc
parent7abe0979c8fb333ad73ec20afec0694a13b45265 (diff)
downloadfreebsd-ports-gnome-882422b12d6f25ede5fb1bf8d0b3994fa6d2b749.tar.gz
freebsd-ports-gnome-882422b12d6f25ede5fb1bf8d0b3994fa6d2b749.tar.zst
freebsd-ports-gnome-882422b12d6f25ede5fb1bf8d0b3994fa6d2b749.zip
- Support Perl 5.00503
PR: ports/101662 Submitted by: maintainer (Gea-Suan Lin)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-XML-XPathEngine/Makefile5
-rw-r--r--textproc/p5-XML-XPathEngine/files/extra-lib-XML-XPathEngine.pm30
2 files changed, 34 insertions, 1 deletions
diff --git a/textproc/p5-XML-XPathEngine/Makefile b/textproc/p5-XML-XPathEngine/Makefile
index 802f0011b0ed..7be89fe41fd1 100644
--- a/textproc/p5-XML-XPathEngine/Makefile
+++ b/textproc/p5-XML-XPathEngine/Makefile
@@ -24,7 +24,10 @@ MAN3= XML::XPathEngine.3 XML::XPathEngine::Boolean.3 \
.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 --git a/textproc/p5-XML-XPathEngine/files/extra-lib-XML-XPathEngine.pm b/textproc/p5-XML-XPathEngine/files/extra-lib-XML-XPathEngine.pm
new file mode 100644
index 000000000000..0eeff6ca83d5
--- /dev/null
+++ b/textproc/p5-XML-XPathEngine/files/extra-lib-XML-XPathEngine.pm
@@ -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;