forked from hdp/module-build
/
Build.PL
55 lines (49 loc) · 1.33 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
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;
use lib File::Spec->catdir('lib');
# We use Module::Build to test & install itself.
use Module::Build;
my $build = new Module::Build
(
module_name => 'Module::Build',
license => 'perl',
requires => {
'perl' => '5.005_03',
'Config' => 0,
'Data::Dumper' => 0,
'File::Basename' => 0,
'File::Compare' => 0,
'File::Copy' => 0,
'File::Find' => 0,
'File::Path' => 0,
'File::Spec' => 0,
'ExtUtils::Install' => 0,
'IO::File' => 0,
'Cwd' => 0,
},
recommends => {
'Archive::Tar' => '1.08',
'ExtUtils::Install' => 0.30,
'ExtUtils::ParseXS' => 2.02,
'ExtUtils::CBuilder' => 0.02,
'Pod::Text' => 0,
'Module::Signature' => 0.21,
},
build_requires => {
Test => 0,
},
sign => 1,
create_readme => 1,
auto_features => {
YAML_support =>
{
description => "Can write fully-functional META.yml files",
requires => { YAML => ' >= 0.35, < 0.49 ' },
},
},
add_to_cleanup => ['t/Sample/pod2htm*'],
);
$build->create_build_script;
$build->notes(foo => 'bar'); # We set this here and verify it in t/notes.t