ports/textproc/p5-XML-SAX/files/patch-Makefile.PL
Kurt Jaeger 6545e26154 textproc/p5-XML-SAX: fix checksum mismatch for ParserDetails.ini
- The file %%SITE_PERL%%/XML/SAX/ParserDetails.ini
  is updated by ports that depending textproc/p5-XML-SAX.
- For example, textproc/p5-XML-SAX-Expat, textproc/p5-XML-Simple
  and textproc/p5-XML-LibXML append something to the .ini file.
- This causes checksum mismatch when executing
  `pkg check -s textproc/p5-XML-SAX`

The fix provides a pkg-install program to handle the file in post-install.

PR:		197011
Submitted by:	Tatsuki Makino <tatsuki_makino@hotmail.com>
Reviewed by:	John Hein, mat, Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
2018-02-27 07:15:54 +00:00

28 lines
906 B
Perl

--- Makefile.PL.orig 2018-02-15 09:44:15 UTC
+++ Makefile.PL
@@ -27,15 +27,7 @@ sub MY::install {
}
else {
my $dir = File::Basename::dirname($INC{'XML/SAX.pm'});
- if (-e File::Spec->catfile($dir, 'SAX', 'ParserDetails.ini')) {
- $write_ini_ok =
- ExtUtils::MakeMaker::prompt(
- "Do you want XML::SAX to alter ParserDetails.ini?", "Y"
- ) =~ /^y/i;
- }
- else {
- $write_ini_ok = 1;
- }
+ $write_ini_ok = 1;
}
if ($write_ini_ok) {
@@ -43,7 +35,7 @@ sub MY::install {
$script .= <<"INSTALL";
install_sax_pureperl : pure_install
-\t\@\$(PERL) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
+#\t\@\$(PERL) -I\$(DESTDIR)\$(INSTALLSITELIB) -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
INSTALL