Skip to content

Commit

Permalink
Changed install path for perl 5.12 or higher.
Browse files Browse the repository at this point in the history
  • Loading branch information
magnolia committed Sep 2, 2014
1 parent 9d8b458 commit 173b04f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.PL
Expand Up @@ -54,6 +54,7 @@ if ($mm_ver =~ /_/) { # dev version
my %Prereqs;
$Prereqs{'ExtUtils::MakeMaker'} = 6.27 if $^O eq 'MSWin32';

my $install_dir = $] >= 5.006002 && $] < 5.012000 ? 'perl' : 'site';

WriteMakefile(
NAME => $PACKAGE,
Expand All @@ -70,8 +71,7 @@ WriteMakefile(
%Prereqs
},

# Added to the core in 5.7.3 and also 5.6.2.
INSTALLDIRS => $] >= 5.006002 ? 'perl' : 'site',
INSTALLDIRS => $install_dir,

test => {
TESTS => 't/*.t t/*/*.t',
Expand Down

0 comments on commit 173b04f

Please sign in to comment.