forked from analizo/analizo
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.PL
92 lines (86 loc) · 2.05 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
use ExtUtils::MakeMaker;
use File::ShareDir::Install;
use File::Basename;
do 'man.pl';
sub CheckExtraDependencies {
my ($type, %dependencies) = @_;
my $missing = 0;
my $error_type = ($type eq 'runtime') ? 'E' : 'W';
for my $program (keys(%dependencies)) {
if (system("which $program > /dev/null") != 0) {
print STDERR "$error_type: Required $type dependency not found: $program\n";
$missing++;
}
}
exit(1) if ($missing && $type eq 'runtime');
}
CheckExtraDependencies(
'runtime',
'doxyparse' => '(>= 1.8.11)',
'git' => 0,
'ruby' => 0,
'sloccount' => 0,
'sqlite3' => 0,
'man' => 0,
'gcc' => '(>= 4.8~)',
'g++' => '(>= 4.8~)',
);
CheckExtraDependencies(
'build',
'rake' => 0,
'rspec' => 0,
'clang-3.5' => 0,
);
install_share 'share';
WriteMakefile(
NAME => 'Analizo',
VERSION_FROM => 'lib/Analizo.pm',
EXE_FILES => ['analizo'],
MAN1PODS => \%manpages,
MAN1EXT => '1',
MAN3PODS => {},
AUTHOR => 'Antonio Terceiro <[email protected]>',
LICENSE => 'GPLv3+',
ABSTRACT => 'Source code analysis toolkit',
PREREQ_PM => {
'Class::Accessor' => 0,
'DBD::SQLite' => 0,
'DBI' => 0,
'CHI' => 0,
'Digest::SHA' => 0,
'File::Copy::Recursive' => 0,
'List::Compare' => 0,
'JSON' => 0,
'Graph' => 0,
'YAML' => 0,
'Statistics::Descriptive' => 0,
'Term::ProgressBar' => 0,
'ZMQ::FFI' => 0,
'Mojolicious' => 0,
'File::ShareDir' => 0,
'File::Share' => 0,
'File::HomeDir' => 0,
'YAML::Tiny' => 0,
'App::Cmd' => 0,
'Class::Inspector' => 0,
'Graph::Writer::DSM' => 0.005,
'FindBin::libs' => 0,
'Graph::Writer::Dot' => 2.09,
},
BUILD_REQUIRES => {
'Test::Class' => 0,
'Test::Exception' => 0,
'Test::MockObject' => 0,
'Test::MockModule' => 0,
'Test::BDD::Cucumber' => 0,
'Method::Signatures' => 0,
'File::Slurp' => 0,
'File::Copy::Recursive' => 0,
'File::LibMagic' => 0,
},
test => {
TESTS => 't/*.t t/*/*.t t/*/*/*.t t/*/*/*/*.t',
},
);
package MY;
use File::ShareDir::Install qw(postamble);