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
the problem reported with #27186 (from 2007) does not occur with perl
versions 5.11 and above. The attached patch sets INSTALLDIRS to 'site'
instead of 'perl' when the Makefile.PL is run with a sufficient perl
version.
regards,
Robert Sedlacek
Subject: | install_to_site_post_5011.patch |
--- Makefile.PL.orig 2012-09-22 23:37:34.351765744 +0200
+++ Makefile.PL 2012-09-22 23:38:01.779901744 +0200
@@ -5,7 +5,7 @@
WriteMakefile(
NAME => 'Math::Complex',
VERSION_FROM => 'lib/Math/Complex.pm',
- INSTALLDIRS => 'perl',
+ INSTALLDIRS => ($] < 5.011 ? 'perl' : 'site'),
PREREQ_PM =>
{
'Config' => 0,