This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
dist/lib/Makefile.PL: change INSTALLDIRS to 'site' for 5.12 and later
authorBrian Gottreu <gottreu@gmail.com>
Tue, 2 Jul 2013 00:54:03 +0000 (19:54 -0500)
committerJames E Keenan <jkeenan@cpan.org>
Tue, 2 Jul 2013 02:09:09 +0000 (04:09 +0200)
dist/lib/Makefile.PL

index 1f80b02..129a703 100644 (file)
@@ -31,7 +31,7 @@ WriteMakefile(
   'PREREQ_PM' => {},
   'ABSTRACT_FROM' => 'lib_pm.PL',
   'AUTHOR' => 'Steffen Mueller <smueller@cpan.org>',
-  'INSTALLDIRS' => 'perl',
+  'INSTALLDIRS' => ($] < 5.012 ? 'perl' : 'site'),
   'PL_FILES' => {'lib_pm.PL' => 'lib.pm'},
   'PM' => {'lib.pm' => '$(INST_LIBDIR)/lib.pm'},
   'clean' => {FILES => 'lib.pm'},