diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2014-11-10 15:30:11 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2014-11-10 15:30:11 +0000 |
commit | be654371f0cd25325267e24e417aa5cefda2c149 (patch) | |
tree | 889eabb561c8a0aab2fcab841262641d9de45966 /textproc/p5-XML-SAX-ExpatXS/files | |
parent | c3212406fff6fd9607fbbde2a4f4d37c7454dd85 (diff) | |
download | ports-be654371f0cd25325267e24e417aa5cefda2c149.tar.gz ports-be654371f0cd25325267e24e417aa5cefda2c149.zip |
Fix build as non root.
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=372399
Diffstat (limited to 'textproc/p5-XML-SAX-ExpatXS/files')
-rw-r--r-- | textproc/p5-XML-SAX-ExpatXS/files/patch-Makefile.PL | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/textproc/p5-XML-SAX-ExpatXS/files/patch-Makefile.PL b/textproc/p5-XML-SAX-ExpatXS/files/patch-Makefile.PL index b83f3b18211f..aa1141703896 100644 --- a/textproc/p5-XML-SAX-ExpatXS/files/patch-Makefile.PL +++ b/textproc/p5-XML-SAX-ExpatXS/files/patch-Makefile.PL @@ -1,11 +1,27 @@ ---- Makefile.PL.orig 2013-11-07 09:32:26.000000000 +0800 -+++ Makefile.PL 2013-11-07 09:32:53.000000000 +0800 -@@ -111,7 +111,7 @@ sub MY::install { - $script .= <<"INSTALL"; +--- Makefile.PL.orig 2011-04-13 08:20:54 UTC ++++ Makefile.PL +@@ -103,24 +103,6 @@ WriteMakefile( + ); - install_expat_xs : --\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::ExpatXS))->save_parsers()" -+\t\@\$(PERL) -I\$(DESTDIR)\$(INSTALLSITELIB)/mach -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::ExpatXS))->save_parsers()" - - INSTALL +-sub MY::install { +- package MY; +- my $script = shift->SUPER::install(@_); +- if (ExtUtils::MakeMaker::prompt("Do you want to alter ParserDetails.ini?", "Y") =~ /^y/i) { +- $script =~ s/install :: (.*)$/install :: $1 install_expat_xs/m; +- $script .= <<"INSTALL"; +- +-install_expat_xs : +-\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::ExpatXS))->save_parsers()" +- +-INSTALL +- +- } +- +- return $script; +-} +- +- + sub build_xml_sax_expatxs_preload { + + print "Writing XML::SAX::ExpatXS::Preload\n"; |