~ubuntu-branches/ubuntu/trusty/libtest-roo-perl/trusty-proposed

« back to all changes in this revision

Viewing changes to Makefile.PL

  • Committer: Package Import Robot
  • Author(s): gregor herrmann
  • Date: 2014-01-14 19:25:11 UTC
  • Revision ID: package-import@ubuntu.com-20140114192511-9ycl4dc1zgamfnek
Tags: upstream-1.002
ImportĀ upstreamĀ versionĀ 1.002

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
use strict;
 
3
use warnings;
 
4
 
 
5
use 5.008001;
 
6
 
 
7
use ExtUtils::MakeMaker 6.17;
 
8
 
 
9
 
 
10
 
 
11
my %WriteMakefileArgs = (
 
12
  "ABSTRACT" => "Composable, reusable tests with roles and Moo",
 
13
  "AUTHOR" => "David Golden <dagolden\@cpan.org>",
 
14
  "BUILD_REQUIRES" => {},
 
15
  "CONFIGURE_REQUIRES" => {
 
16
    "ExtUtils::MakeMaker" => "6.17"
 
17
  },
 
18
  "DISTNAME" => "Test-Roo",
 
19
  "EXE_FILES" => [],
 
20
  "LICENSE" => "apache",
 
21
  "NAME" => "Test::Roo",
 
22
  "PREREQ_PM" => {
 
23
    "Moo" => "1.000008",
 
24
    "MooX::Types::MooseLike::Base" => 0,
 
25
    "Sub::Install" => 0,
 
26
    "Test::More" => "0.96",
 
27
    "strictures" => 0
 
28
  },
 
29
  "TEST_REQUIRES" => {
 
30
    "Capture::Tiny" => 0,
 
31
    "ExtUtils::MakeMaker" => 0,
 
32
    "File::Spec" => 0,
 
33
    "File::Spec::Functions" => 0,
 
34
    "File::Temp" => 0,
 
35
    "IO::Handle" => 0,
 
36
    "IPC::Open3" => 0,
 
37
    "List::Util" => 0,
 
38
    "Test::More" => 0,
 
39
    "lib" => 0,
 
40
    "strict" => 0,
 
41
    "warnings" => 0
 
42
  },
 
43
  "VERSION" => "1.002",
 
44
  "test" => {
 
45
    "TESTS" => "t/*.t"
 
46
  }
 
47
);
 
48
 
 
49
 
 
50
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
 
51
  my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
 
52
  my $br = $WriteMakefileArgs{BUILD_REQUIRES};
 
53
  for my $mod ( keys %$tr ) {
 
54
    if ( exists $br->{$mod} ) {
 
55
      $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
 
56
    }
 
57
    else {
 
58
      $br->{$mod} = $tr->{$mod};
 
59
    }
 
60
  }
 
61
}
 
62
 
 
63
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
 
64
  my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
 
65
  my $pp = $WriteMakefileArgs{PREREQ_PM};
 
66
  for my $mod ( keys %$br ) {
 
67
    if ( exists $pp->{$mod} ) {
 
68
      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
 
69
    }
 
70
    else {
 
71
      $pp->{$mod} = $br->{$mod};
 
72
    }
 
73
  }
 
74
}
 
75
 
 
76
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
 
77
  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
 
78
 
 
79
WriteMakefile(%WriteMakefileArgs);
 
80
 
 
81
 
 
82