forked from graphviz-perl/Graph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
81 lines (72 loc) · 2 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
use strict; use warnings;
use ExtUtils::MakeMaker;
require 5.006;
my $mm_ver = $ExtUtils::MakeMaker::VERSION;
if ($mm_ver =~ /_/) { # dev version
$mm_ver = eval $mm_ver;
die $@ if $@;
}
my %PREREQ_PM = (
'List::Util' => '1.45',
'Scalar::Util' => 0,
'Heap' => '0.80',
'Set::Object' => '1.40',
);
if ($] >= 5.008) {
$PREREQ_PM{'Storable'} = '2.05';
$PREREQ_PM{'Safe' } = 0,
}
my $repo = 'graphviz-perl/Graph';
WriteMakefile(
NAME => 'Graph',
VERSION_FROM => 'lib/Graph.pm',
PREREQ_PM => \%PREREQ_PM,
($mm_ver >= 6.31
? (LICENSE => 'perl')
: ()
),
($mm_ver >= 6.48
? (MIN_PERL_VERSION => 5.006)
: ()
),
($mm_ver <= 6.45
? ()
: (META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
bugtracker => { web => "https://github.com/$repo/issues" },
repository => {
type => 'git',
web => "https://github.com/$repo",
url => "git://github.com/$repo.git",
},
},
prereqs => {
develop => {
requires => {
'Test::Pod::Coverage' => '1.00',
'Test::Pod' => '1.00',
},
},
test => {
requires => {
'Test::More' => '0.82', # explain
'Math::Complex' => 0,
},
recommends => {
'App::Prove' => '3.00', # prove -j4
},
},
},
})
),
);
# Some Debian distributions have a broken List::Util (see rt.cpan.org #9568)
eval 'require Scalar::Util; import Scalar::Util qw(weaken)';
if ($@) {
die <<__EOF__;
$@
You do not have Scalar::Util::weaken, cannot continue, aborting.
__EOF__
}