diff --git a/textproc/p5-XML-SAX-Expat/Makefile b/textproc/p5-XML-SAX-Expat/Makefile index 8f317039de7e..a0454901450c 100644 --- a/textproc/p5-XML-SAX-Expat/Makefile +++ b/textproc/p5-XML-SAX-Expat/Makefile @@ -16,9 +16,9 @@ RUN_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \ BUILD_DEPENDS:= ${RUN_DEPENDS} USES= perl5 -USE_PERL5= configure patch +USE_PERL5= configure post-patch: - @${PERL} -pi -e "s/(?<=XML::SAX::Base => ')1\.00(?=')/0.25/;" ${WRKSRC}/Makefile.PL + @${REINPLACE_CMD} -e 's|-I\\$$(INSTALLSITELIB)|-I\\$$(DESTDIR)\\$$(INSTALLSITELIB)|' ${WRKSRC}/Makefile.PL .include diff --git a/textproc/p5-XML-SAX-Expat/files/patch-Makefile.PL b/textproc/p5-XML-SAX-Expat/files/patch-Makefile.PL deleted file mode 100644 index e56c6458a890..000000000000 --- a/textproc/p5-XML-SAX-Expat/files/patch-Makefile.PL +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.PL.orig 2013-11-08 19:55:12.000000000 +0800 -+++ Makefile.PL 2013-11-08 19:55:54.000000000 +0800 -@@ -36,7 +36,7 @@ sub MY::install { - $script .= <<"INSTALL"; - - install_sax_expat : --\t\@\$(PERL) -I\$(INSTALLSITELIB) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()" -+\t\@\$(PERL) -I\$(DESTDIR)\$(INSTALLSITELIB) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()" - - INSTALL - } else {