Subject: | Makefile.PL installs to wrong place for perl 5.11+ |
I've attached a patch to fix Makefile.PL to do the right thing, depending on
perl version.
Subject: | BDebug.patch |
diff --git a/Makefile.PL b/Makefile.PL
index e6071fd..07b7062 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -18,20 +18,10 @@ WriteMakefile
) : ()),
# Part of core perl since 5.005005 (?)
'INSTALLDIRS' => ( $] > 5.005005 ? "perl" : "site" ),
- );
+ #
+ ($] < 5.011) ?(PM => {
+ 'lib/B/Debug.pm' => '$(INST_ARCHLIB)/B/Debug.pm',
+ }) : (),
+
+ );
-print "fix pm_to_blib to install into ARCHLIB\n";
-if ($^O eq 'MSWin32') {
- system($^X,'-pi.bak','-e"s|\(INST_LIB\)\\\\B\\\\Debug.pm|(INST_ARCHLIB)\\\\B\\\\Debug.pm|"','Makefile');
-} else {
- system("$^X -pi.bak -e's|\\(INST_LIB\\)/B/Debug.pm|(INST_ARCHLIB)/B/Debug.pm|;' Makefile");
-}
-
-#package MY;
-# pm_to_blib cannot be overridden
-# Force installation into archlib to override the core version there
-#sub pm_to_blib {
-# my $s = shift->SUPER::pm_to_blib(@_);
-# $s =~ s/\(INST_LIB\)/\(INST_ARCH\)/g;
-# $s;
-#}