-
Notifications
You must be signed in to change notification settings - Fork 11
/
Build.PL
56 lines (48 loc) · 1.19 KB
/
Build.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
use strict;
use warnings;
use Module::Build 0.3601;
my %module_build_args = (
"build_requires" => {
"Module::Build" => "0.3601"
},
"configure_requires" => {
"Module::Build" => "0.3601"
},
"dist_abstract" => "IRC message delivery by HTTP",
"dist_author" => [
"Kazuhiro Osawa <yappo {at} shibuya {dot} pl>"
],
"dist_name" => "App-Ikachan",
"dist_version" => "v0.2.1",
"license" => "perl",
"module_name" => "App::Ikachan",
"recommends" => {},
"recursive_test_files" => 1,
"requires" => {
"AnySan" => "0.10",
"Plack::Builder::Conditionals" => 0,
"Plack::Middleware::ReverseProxy" => 0,
"Twiggy" => 0
},
"script_files" => [
"script/ikachan",
"script/ikachan_client"
],
"test_requires" => {
"Test::More" => "0.88"
}
);
unless ( eval { Module::Build->VERSION(0.4004) } ) {
my $tr = delete $module_build_args{test_requires};
my $br = $module_build_args{build_requires};
for my $mod ( keys %$tr ) {
if ( exists $br->{$mod} ) {
$br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
}
else {
$br->{$mod} = $tr->{$mod};
}
}
}
my $build = Module::Build->new(%module_build_args);
$build->create_build_script;