Subject: | Install to 'site' instead of 'perl' when perl version is 5.11+ |
Hello,
According to
https://github.com/rjbs/perltodo/blob/master/Supply-Patches-to-Fix-Install-Location.mkdn
dual-life distributions can be installed to 'site' instead of 'perl' on
versions 5.11+, since those look into 'site' first. The attached patch
amends the injection of the INSTALLDIRS directive in Makefile.PL to
happen only when the perl version is below 5.11 and at least 5.8
(originally it was injected generally for 5.8+).
regards,
Robert Sedlacek
Subject: | install_to_site_post_5011.patch |
diff --git a/Makefile.PL b/Makefile.PL
index 8307d2c..77ac900 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -2,7 +2,7 @@ require 5.006;
use ExtUtils::MakeMaker;
my @makefileopts;
-if ($] >= 5.008) {
+if ($] >= 5.008 and $] < 5.011) {
push @makefileopts, INSTALLDIRS => 'perl';
}