-use 5.014000;
+use 5.010001;
use ExtUtils::MakeMaker;
+my $has_tr = $ExtUtils::MakeMaker::VERSION >= 6.64;
+
WriteMakefile(
NAME => 'Mafia',
VERSION_FROM => 'lib/Mafia.pm',
MIN_PERL_VERSION => '5.10.1',
LICENSE => 'perl',
SIGN => 1,
+ (TEST_REQUIRES => {
+ qw/File::Spec::Functions 3.62/,
+ }) x $has_tr,
+ (PREREQ_PM => {
+ qw/File::Spec::Functions 3.62/,
+ }) x !$has_tr,
META_MERGE => {
dynamic_config => 0,
resources => {
open STDOUT, '>', \$out;
clean;
- do rel2abs $example;
+ do(rel2abs($example));
$example =~ s/\.pl$//;
my $ok = join '', IO::File->new("$example.out", '<')->getlines;
is $out, $ok, substr $example, length 't/examples/'