-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.PL
56 lines (51 loc) · 1.61 KB
/
Makefile.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
use 5.018001;
use ExtUtils::MakeMaker;
my %WriteMakefileArgs = (
'NAME' => 'SMS::Send::BR::Facilitamovel',
'VERSION' => '0.03',
'ABSTRACT' => 'SMS::Send driver for the Facilita Movel SMS service',
'AUTHOR' => 'Mario Celso Teixeira <[email protected]>',
'BUILD_REQUIRES' => {
'English' => '0',
'Carp' => '0',
'HTTP::Tiny' => '0',
'URI::Escape' => '0',
'SMS::Send' => '0',
'Test::More' => '0'
},
'CONFIGURE_REQUIRES' => {
'ExtUtils::MakeMaker' => '6.31',
},
'PREREQ_PM' => {
'SMS::Send::Driver' => '0',
},
'META_MERGE' => {
'meta-spec' => { 'version' => '2' },
'resources' => {
'repository' => {
'type' => 'git',
'url' => 'https://github.com/marioct/SMS-Send-BR-Facilitamovel.git',
'web' => 'https://github.com/marioct/SMS-Send-BR-Facilitamovel',
'issues' => 'https://github.com/marioct/SMS-Send-BR-Facilitamovel/issues',
},
},
},
'test' => {
'TESTS' => 't/*.t'
}
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
for my $mod ( keys %$br ) {
if ( exists $pp->{$mod} ) {
$pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
}
else {
$pp->{$mod} = $br->{$mod};
}
}
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%WriteMakefileArgs);