forked from hdp/module-build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.PL
90 lines (83 loc) · 2.51 KB
/
Build.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
use strict;
# On some platforms (*ahem*, MacPerl 5.6.1) "use lib qw(lib);" doesn't
# find the local "lib" directory, so we use File::Spec to do it properly.
use File::Spec 0.82;
use lib File::Spec->catdir('lib'); # use our self to install
use lib File::Spec->catdir('t', 'lib'); # use bundled Test::More
# We use Module::Build to test & install itself.
use Module::Build;
# <remove_me> This code is only present for M::B developers, not on CPAN
use lib File::Spec->catdir('inc');
# A custom builder that does some special stuff during the 'dist' phase
use ModuleBuildBuilder;
# </remove_me>
my $build = ModuleBuildBuilder->new
(
module_name => 'Module::Build',
license => 'perl',
requires => {
'perl' => '5.005_03',
'Data::Dumper' => 0,
'File::Basename' => 0,
'File::Compare' => 0,
'File::Copy' => 0,
'File::Find' => 0,
'File::Path' => 0,
'File::Spec' => '0.82', # rel2abs()
'ExtUtils::Install' => 0,
'ExtUtils::Manifest' => 0,
'ExtUtils::Mkbootstrap' => 0,
'IO::File' => 0,
'Cwd' => 0,
'Text::Abbrev' => 0,
'Text::ParseWords' => 0,
'Getopt::Long' => 0,
'Test::Harness' => 0,
},
recommends => {
'Archive::Tar' => '1.08',
'ExtUtils::CBuilder' => 0.15,
'ExtUtils::Install' => 0.30,
'ExtUtils::ParseXS' => 1.02,
'Pod::Readme' => 0.04,
'Module::Signature' => 0.21,
'version' => 0.661,
},
sign => 1,
create_readme => 1,
auto_features => {
YAML_support =>
{
description => "Use YAML.pm to write META.yml files",
requires => { YAML => ' >= 0.35, != 0.49_01 ' },
},
C_support =>
{
description => "Compile/link C & XS code",
requires => { 'ExtUtils::CBuilder' => 0.15, },
recommends => { 'ExtUtils::ParseXS' => 1.02, },
},
manpage_support =>
{
description => "Create Unix man pages",
requires => { 'Pod::Man' => 0 },
},
HTML_support =>
{
description => "Create HTML documentation",
requires => { 'Pod::Html' => 0 },
},
},
add_to_cleanup => ['t/Sample/pod2htm*'],
script_files => ['scripts/config_data'],
meta_merge => {
resources =>
{
homepage => 'http://sourceforge.net/projects/module-build',
bugtracker => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Module-Build',
MailingList => 'mailto:module-build@perl.org',
repository => 'http://svn.perl.org/modules/Module-Build/'
}
},
);
$build->create_build_script;