diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2001-12-31 00:14:43 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2001-12-31 00:14:43 +0800 |
commit | 7ab06b92ca7d2281d37bf4fa26ebd6a6bfc441b3 (patch) | |
tree | 6a8262787c7289d0cb3dc94d27a1ef770d0df858 /textproc/p5-XML-DOM | |
parent | a30651a7baa1376c6d4a971122a3b68269265778 (diff) | |
download | freebsd-ports-gnome-7ab06b92ca7d2281d37bf4fa26ebd6a6bfc441b3.tar.gz freebsd-ports-gnome-7ab06b92ca7d2281d37bf4fa26ebd6a6bfc441b3.tar.zst freebsd-ports-gnome-7ab06b92ca7d2281d37bf4fa26ebd6a6bfc441b3.zip |
o Add dependency on p5-XML-RegExp.
o Add dependency on p5-libwww which is optional but major function
parsefile() requires it.
o Patching XML/DOM.pm if ${PERL} is older than 5.6.0.
Diffstat (limited to 'textproc/p5-XML-DOM')
-rw-r--r-- | textproc/p5-XML-DOM/Makefile | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/textproc/p5-XML-DOM/Makefile b/textproc/p5-XML-DOM/Makefile index 22f1bf5735a2..896743358a8f 100644 --- a/textproc/p5-XML-DOM/Makefile +++ b/textproc/p5-XML-DOM/Makefile @@ -7,6 +7,7 @@ PORTNAME= XML-DOM PORTVERSION= 1.35 +PORTREVISION= 1 CATEGORIES= textproc perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= XML @@ -14,7 +15,9 @@ PKGNAMEPREFIX= p5- MAINTAINER= kuriyama@FreeBSD.org -RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser +RUN_DEPENDS= ${PBASE}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \ + ${PBASE}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \ + ${PBASE}/XML/RegExp.pm:${PORTSDIR}/textproc/p5-XML-RegExp PERL_CONFIGURE= yes @@ -32,4 +35,13 @@ MAN3= XML::DOM.3 XML::DOM::AttDef.3 XML::DOM::AttlistDecl.3 \ XML::DOM::XMLDecl.3 XML::Handler::BuildDOM.3 MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -.include <bsd.port.mk> +PBASE= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER} + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} < 500007 +post-patch: + @${PERL} -i -pe 's/^use bytes;.*//;' ${WRKSRC}/lib/XML/DOM.pm +.endif + +.include <bsd.port.post.mk> |