~ubuntu-branches/ubuntu/trusty/libnetpacket-perl/trusty

« back to all changes in this revision

Viewing changes to Build.PL

  • Committer: Package Import Robot
  • Author(s): Florian Schlichting
  • Date: 2013-12-04 23:49:19 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20131204234919-5ebhy77qln1p1fis
Tags: 1.4.4-1
* Import Upstream version 1.4.4
* Drop spelling.patch, whatis.patch: both applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    "Yanick Champoux <yanick\@cpan.org>"
20
20
  ],
21
21
  "dist_name" => "NetPacket",
22
 
  "dist_version" => "1.4.2",
 
22
  "dist_version" => "1.4.4",
23
23
  "license" => "artistic_2",
24
24
  "module_name" => "NetPacket",
25
25
  "recommends" => {},
26
26
  "recursive_test_files" => 1,
27
27
  "requires" => {
28
28
    "constant" => 0,
 
29
    "perl" => "v5.10.0",
29
30
    "strict" => 0,
30
31
    "vars" => 0,
31
32
    "warnings" => 0
40
41
);
41
42
 
42
43
 
 
44
my %fallback_build_requires = (
 
45
  "File::Spec" => 0,
 
46
  "IO::Handle" => 0,
 
47
  "IPC::Open3" => 0,
 
48
  "Module::Build" => "0.3601",
 
49
  "Test::More" => "0.88"
 
50
);
 
51
 
 
52
 
43
53
unless ( eval { Module::Build->VERSION(0.4004) } ) {
44
 
  my $tr = delete $module_build_args{test_requires};
45
 
  my $br = $module_build_args{build_requires};
46
 
  for my $mod ( keys %$tr ) {
47
 
    if ( exists $br->{$mod} ) {
48
 
      $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
49
 
    }
50
 
    else {
51
 
      $br->{$mod} = $tr->{$mod};
52
 
    }
53
 
  }
 
54
  delete $module_build_args{test_requires};
 
55
  $module_build_args{build_requires} = \%fallback_build_requires;
54
56
}
55
57
 
56
58
my $build = Module::Build->new(%module_build_args);