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.
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:07:27.422508545 +0200
+++ Makefile.PL 2012-09-23 01:08:25.442796241 +0200
@@ -14,7 +14,7 @@
WriteMakefile(
'AUTHOR' => 'SADAHIRO Tomoyuki <SADAHIRO@cpan.org>',
'ABSTRACT' => 'Unicode Collation Algorithm',
- 'INSTALLDIRS' => $] >= 5.007002 ? 'perl' : 'site',
+ 'INSTALLDIRS' => ($] >= 5.007002 and $] < 5.011) ? 'perl' : 'site',
'LICENSE' => 'perl',
'NAME' => 'Unicode::Collate',
'VERSION_FROM' => 'Collate.pm', # finds $VERSION