-
Notifications
You must be signed in to change notification settings - Fork 4
/
Build.PL
65 lines (57 loc) · 1.36 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
57
58
59
60
61
62
63
64
65
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" => "Flip text upside-down using Unicode",
"dist_author" => [
"Mike Doherty <doherty\@cpan.org>",
"Marcel Gr\303\274nauer <marcel\@cpan.org>"
],
"dist_name" => "Text-UpsideDown",
"dist_version" => "1.22",
"license" => "perl",
"module_name" => "Text::UpsideDown",
"recommends" => {},
"recursive_test_files" => 1,
"requires" => {
"Exporter" => 0,
"Getopt::Long" => 0,
"Pod::Usage" => 0,
"charnames" => 0,
"open" => 0,
"perl" => "5.008",
"strict" => 0,
"utf8" => 0,
"warnings" => 0
},
"script_files" => [
"bin/ud"
],
"test_requires" => {
"Capture::Tiny" => 0,
"File::Spec" => 0,
"IPC::Run3" => 0,
"Test::More" => "0.88",
"Test::Script" => "1.05"
}
);
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;