diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2001-12-30 16:14:43 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2001-12-30 16:14:43 +0000 |
commit | 4792baef2d58ae71f584bbf3229ea31415f9cc61 (patch) | |
tree | 584a3476725f7b2d74dceaf218f8647a3af4a18d /textproc/p5-XML-DOM | |
parent | 1caf7544bbd003f36a12ac779474e42cbebe9344 (diff) | |
download | ports-4792baef2d58ae71f584bbf3229ea31415f9cc61.tar.gz ports-4792baef2d58ae71f584bbf3229ea31415f9cc61.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.
Notes
Notes:
svn path=/head/; revision=52403
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> |