freebsd-ports/textproc/p5-XML-SAX/files/patch-Makefile.PL
Chris Rees c585f3b100 Fix interactivity when ParserDetails exists.
It is now an OPTION (on by default, and recommended) to alter ParserDetails.ini
so unattended builds are no longer held up.

Requested by:	wblock
2012-05-27 19:46:54 +00:00

16 lines
619 B
Perl

Used in conjuntion with a REINPLACE_CMD in post-patch
--- Makefile.PL.orig 2012-05-27 20:36:08.188491094 +0100
+++ Makefile.PL 2012-05-27 20:37:51.088491081 +0100
@@ -28,10 +28,7 @@
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;
+ $write_ini_ok = %%WRITE_INI_OK%%;
}
else {
$write_ini_ok = 1;