Add ARM files
[dh-make-perl] / dev / arm / libmodule-build-perl / libmodule-build-perl-0.2808.01 / Build.PL
1 use strict;
2
3 # On some platforms (*ahem*, MacPerl 5.6.1) "use lib qw(lib);" doesn't
4 # find the local "lib" directory, so we use File::Spec to do it properly.
5 use File::Spec 0.82;
6 use lib File::Spec->catdir('lib');          # use our self to install
7 # XXX we're not actually able to use the bundled copy
8 use lib File::Spec->catdir('t', 'bundled'); # use bundled Test::More
9 use lib File::Spec->catdir('t', 'lib');     # our utilities
10
11 # We use Module::Build to test & install itself.
12 use Module::Build;
13
14
15
16 my $build = Module::Build->new(
17   module_name => 'Module::Build',
18   license     => 'perl',
19   requires    => {
20     'perl'                  => '5.005_03',
21     'Data::Dumper'          => 0,
22     'File::Basename'        => 0,
23     'File::Compare'         => 0,
24     'File::Copy'            => 0,
25     'File::Find'            => 0,
26     'File::Path'            => 0,
27     'File::Spec'            => '0.82',    # rel2abs()
28     'ExtUtils::Install'     => 0,
29     'ExtUtils::Manifest'    => 0,
30     'ExtUtils::Mkbootstrap' => 0,
31     'IO::File'              => 0,
32     'Cwd'                   => 0,
33     'Text::Abbrev'          => 0,
34     'Text::ParseWords'      => 0,
35     'Getopt::Long'          => 0,
36     'Test::Harness'         => 0,
37   },
38   recommends => {
39     'Archive::Tar'       => '1.08',
40     'ExtUtils::CBuilder' => 0.15,
41     'ExtUtils::Install'  => 0.30,
42     'ExtUtils::ParseXS'  => 1.02,
43     'Pod::Readme'        => 0.04,
44     'Module::Signature'  => 0.21,
45     'version'            => 0.661,
46   },
47   sign          => 1,
48   create_readme => 1,
49
50   auto_features => {
51     YAML_support => {
52       description => "Use YAML.pm to write META.yml files",
53       requires    => {YAML => ' >= 0.35, != 0.49_01 '},
54     },
55     C_support => {
56       description => "Compile/link C & XS code",
57       requires    => {'ExtUtils::CBuilder' => 0.15,},
58       recommends  => {'ExtUtils::ParseXS' => 1.02,},
59     },
60     manpage_support => {
61       description => "Create Unix man pages",
62       requires    => {'Pod::Man' => 0},
63     },
64     HTML_support => {
65       description => "Create HTML documentation",
66       requires    => {'Pod::Html' => 0},
67     },
68   },
69
70   add_to_cleanup => ['t/Sample/pod2htm*'],
71   script_files   => ['scripts/config_data'],
72   meta_merge     => {
73     resources => {
74       homepage => 'http://sourceforge.net/projects/module-build',
75       bugtracker =>
76         'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Module-Build',
77       MailingList => 'mailto:module-build@perl.org',
78       repository  => 'http://svn.perl.org/modules/Module-Build/'
79     }
80   },
81 );
82
83 $build->create_build_script;
84
85 # vim:ts=2:sw=2:et:sta