/
Makefile.PL
89 lines (81 loc) · 2.28 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
use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
my $prereq_pm = {
'File::Find' => 1,
'HTML::Stream' => 1.49,
'IO::File' => 1,
'IO::String' => 1,
'Pod::Escapes' => 1.02,
'Text::Template' => 1,
};
for my $interesting_module (qw(
Perl::Tidy
Code::TidyAll
)) {
eval "require $interesting_module";
if (!$@) {
$prereq_pm->{$interesting_module} ||= 0;
}
}
my %config = (
NAME => 'Pod::Tree',
VERSION_FROM => 'lib/Pod/Tree.pm', # finds $VERSION
DISTNAME => 'Pod-Tree',
(
$] >= 5.005
? (
ABSTRACT_FROM => 'lib/Pod/Tree.pm',
AUTHOR => 'Steven McDougall (swmcd@world.std.com)'
)
: ()
),
( $ExtUtils::MakeMaker::VERSION >= 6.3002
? ( 'LICENSE' => 'perl' )
: () ),
clean => {
FILES =>
"Pod-Tree-* t/pod2html.d/*.html* t/pods2html.d/A t/pods2html.d/html_act* t/pods2html.d/podR/HTML t/*/*.act lib/Pod/Tree/*~"
},
dist => {
COMPRESS => 'gzip --best',
SUFFIX => '.gz'
},
EXE_FILES => [qw(mod2html podtree2html pods2html perl2html)],
PREREQ_PM => $prereq_pm,
(
eval { ExtUtils::MakeMaker->VERSION(6.46) }
? (
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'http://github.com/manwar/Pod-Tree.git',
web => 'http://github.com/manwar/Pod-Tree',
},
bugtracker => {
web => 'http://github.com/manwar/Pod-Tree/issues',
},
homepage => 'http://metacpan.org/pod/Pod::Tree',
},
}
)
: ()
)
);
my %test_requires = (
'Test::More' => 1,
'Test::Compile' => '1.2.1',
'Path::Tiny' => '0.105',
);
if ( eval { ExtUtils::MakeMaker->VERSION(6.64) } ) {
$config{TEST_REQUIRES} = \%test_requires;
}
else {
$config{BUILD_REQUIRES} = \%test_requires;
}
WriteMakefile(%config);