Subject: | Install to 'site' instead of 'perl' when perl version is 5.11+ |
Hello,
Currently, when the installing perl version is 5.7.2 or above, the
Makefile.PL will set INSTALLDIRS to 'perl' instead of 'site'. According
to [1], since 5.11 it is no longer necessary to do this to avoid the
core version shadowing the CPAN-installed version.
The included patch amends the INSTALLDIRS check to only set it to 'perl'
when the version is also below 5.11.
Note: I also filed an equal patch for Unicode-Collate (#79800).
regards,
Robert Sedlacek
[1] https://github.com/rjbs/perlto do/blob/master/Supply-Patches-
to-Fix-Install-Location.mkdn
Subject: | install_to_site_post_5011.patch |
--- Makefile.PL.orig 2012-09-23 01:16:20.657152703 +0200
+++ Makefile.PL 2012-09-23 01:17:36.733529946 +0200
@@ -14,7 +14,7 @@
WriteMakefile(
'AUTHOR' => 'SADAHIRO Tomoyuki <SADAHIRO@cpan.org>',
'ABSTRACT' => 'Unicode Normalization Forms',
- 'INSTALLDIRS' => $] >= 5.007002 ? 'perl' : 'site',
+ 'INSTALLDIRS' => ($] >= 5.007002 and $] < 5.011) ? 'perl' : 'site',
'LICENSE' => 'perl',
'NAME' => 'Unicode::Normalize',
'VERSION_FROM' => 'Normalize.pm', # finds $VERSION