-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
51 lines (47 loc) · 1.4 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
use strict;
use warnings;
use ExtUtils::MakeMaker;
my(%param, $emv);
%param = (
NAME => 'Config::Generator',
AUTHOR => 'Lionel Cons <[email protected]>',
VERSION => '1.1',
ABSTRACT => 'general purpose configuration generator',
LICENSE => 'perl',
EXE_FILES => [ 'bin/yacg' ],
PL_FILES => {},
BUILD_REQUIRES => {
# optional: Pod::Coverage
'Test::More' => 0,
# optional: Test::Pod
# optional: Test::Pod::Coverage
},
PREREQ_PM => {
'Config::General' => 0,
'Config::Validator' => '1.2',
'Digest::MD5' => 0,
'FindBin' => 0,
'Getopt::Long' => 0,
'JSON' => 0,
'No::Worries' => '1.1',
'POSIX' => 0,
'Params::Validate' => 0,
'Pod::Usage' => 0,
'XML::Parser' => 0,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz' },
clean => { FILES => 'Config-Generator-*' },
);
($emv = $ExtUtils::MakeMaker::VERSION) =~ s/_//;
if ($emv < 6.5503) {
# missing BUILD_REQUIRES
foreach my $name (keys(%{ $param{BUILD_REQUIRES} })) {
$param{PREREQ_PM}{$name} = $param{BUILD_REQUIRES}{$name};
}
delete($param{BUILD_REQUIRES});
}
if ($emv < 6.31) {
# missing LICENSE
delete($param{LICENSE});
}
WriteMakefile(%param);