62cb079000
creation of the parser registry (ParserDetails.ini) at installation time which does not work if using DESTDIR. Instead of breaking abstraction barriers (use of _USE_DESTDIR) to make this work, this task was moved to INSTALL/DEINSTALL scripts where it really belongs, which incidentally also solves the problem described above. - In order to move the creation of the parser registry to the pkgsrc scripts, Makefile.PL was changed (through patch-aa) to respect the variable SKIP_SAX_INSTALL (inspired by XML::LibXML). - File::Temp is a part of Perl since 5.6.1 so we do not need an explicit DEPENDS line for this.
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
$NetBSD: patch-aa,v 1.3 2007/06/13 23:17:32 heinz Exp $
|
|
|
|
--- Makefile.PL.orig 2006-04-24 02:14:03.000000000 +0200
|
|
+++ Makefile.PL
|
|
@@ -20,20 +20,22 @@ sub MY::install {
|
|
|
|
my $write_ini_ok = 0;
|
|
|
|
- eval { require XML::SAX };
|
|
- if ($@) {
|
|
- $write_ini_ok = 1;
|
|
- }
|
|
- 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;
|
|
+ unless ( defined $ENV{'SKIP_SAX_INSTALL'} ) {
|
|
+ eval { require XML::SAX };
|
|
+ if ($@) {
|
|
+ $write_ini_ok = 1;
|
|
}
|
|
else {
|
|
- $write_ini_ok = 1;
|
|
+ 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;
|
|
+ }
|
|
}
|
|
}
|
|
|