Subject: | Install to 'site' instead of 'perl' when perl version is 5.11+ |
Hello,
According to [1] since perl 5.11 it is no longer necessary to set
INSTALLDIRS to 'perl' instead of 'site'. The attached patch amends the
version check in Makefile.PL to set it to 'site' if the perl version is
at 5.11 or above.
Note: I filed a similar patch (RT#79811) for Compress-Raw-Bzip2.
regards,
Robert Sedlacek
[1]
https://github.com/rjbs/perltodo/blob/master/Supply-Patches-to-Fix-Install-Location.mkdn
Subject: | install_to_site_post_5011.patch |
--- Makefile.PL.orig 2012-09-23 20:43:45.520605757 +0200
+++ Makefile.PL 2012-09-23 20:44:12.528739686 +0200
@@ -82,7 +82,7 @@
: (LIBS => [ "-L$ZLIB_LIB -lz " ])
),
- INSTALLDIRS => ($] >= 5.009 ? 'perl' : 'site'),
+ INSTALLDIRS => (($] >= 5.009 and $] < 5.011) ? 'perl' : 'site'),
META_MERGE => {
no_index => {