Blame Makefile.PL

Packit 61a564
use strict;
Packit 61a564
Packit 61a564
use ExtUtils::MakeMaker;
Packit 61a564
Packit 61a564
# this ugliness comes from incompatibility of certain versions of
Packit 61a564
# Test::Tester with certain version of Test::Builder. The problem is
Packit 61a564
# that people might have an old TT lying around and are also likely to
Packit 61a564
# have quite a new TB. This detects that situation and hopefully
Packit 61a564
# demands an install of a newer TT.
Packit 61a564
Packit 61a564
my $tt_prereq = "0.04";
Packit 61a564
Packit 61a564
if (eval { require Test::Tester; require Test::Builder; 1 } &&
Packit 61a564
  $Test::Tester::VERSION <= 0.106 &&
Packit 61a564
  $Test::Builder::VERSION >= 0.78) {
Packit 61a564
Packit 61a564
  $tt_prereq = "0.107";
Packit 61a564
}
Packit 61a564
Packit 61a564
my $mm_ver = ExtUtils::MakeMaker->VERSION;
Packit 61a564
Packit 61a564
WriteMakefile(
Packit 61a564
  AUTHOR       => 'Fergal Daly <fergal@esatclear.ie>',
Packit 61a564
  NAME         => 'Test::Deep',
Packit 61a564
  VERSION_FROM => './lib/Test/Deep.pm',
Packit 61a564
  PREREQ_PM    => {
Packit 61a564
    'Test::Builder'    => '0',
Packit 61a564
    'Scalar::Util'     => '1.09',
Packit 61a564
Packit 61a564
    # apparently CPAN doesn't get the version of Scalar::Util
Packit 61a564
    'List::Util'       => '1.09',
Packit 61a564
  },
Packit 61a564
Packit 61a564
  ( $ExtUtils::MakeMaker::VERSION < 6.63_03 ? 'BUILD_REQUIRES' : 'TEST_REQUIRES' ) => {
Packit 61a564
    'Test::More'       => '0.88',
Packit 61a564
    'Test::Tester'     => $tt_prereq,
Packit 61a564
  },
Packit 61a564
Packit 61a564
  LICENSE => "perl",
Packit 61a564
Packit 61a564
  # This is a dumb mistake.  Why did it get done?  I'm the one who did it and I
Packit 61a564
  # don't know.  It only affects perl 5.8, and stopping doing it now would be a
Packit 61a564
  # problem, because upgrades wouldn't actually upgrade.  I'll just leave it
Packit 61a564
  # here until 5.8 is really and truly dead enough. -- rjbs, 2013-11-30
Packit 61a564
  ($] < 5.010 ? (INSTALLDIRS => 'perl') : ()),
Packit 61a564
Packit 61a564
  ($mm_ver < 6.46 ? () : (META_MERGE => {
Packit 61a564
    'meta-spec' => { version => 2 },
Packit 61a564
    dynamic_config => 1,
Packit 61a564
    resources       => {
Packit 61a564
      homepage      => 'http://github.com/rjbs/Test-Deep/',
Packit 61a564
      repository    => {
Packit 61a564
         url        => 'https://github.com/rjbs/Test-Deep.git',
Packit 61a564
         web        => 'https://github.com/rjbs/Test-Deep',
Packit 61a564
         type       => 'git',
Packit 61a564
      },
Packit 61a564
      bugtracker    => {
Packit 61a564
         web        => 'http://github.com/rjbs/Test-Deep/issues',
Packit 61a564
      },
Packit 61a564
      x_MailingList => 'http://lists.perl.org/list/perl-qa.html',
Packit 61a564
      x_IRC         => 'irc://irc.perl.org/#perl-qa',
Packit 61a564
    },
Packit 61a564
  })),
Packit 61a564
Packit 61a564
);