Give up on automake's built-in rules for generating PDF and HTML and use our own.
[gnu-stow.git] / Build.PL
blob255bc5ee730004ea35ed3b3c96f68138d4263642
1 use strict;
2 use warnings;
4 use Module::Build;
6 # These are required by the test suite.
7 use lib "t";
8 use lib "bin";
10 my $build = Module::Build->new(
11     module_name => 'Stow',
12     keywords    => [ qw/stow symlink software package management install/ ],
13     license     => 'gpl',
15     # Module::Build forces us to use v1.4 of the CPAN Meta Spec:
16     # https://rt.cpan.org/Ticket/Display.html?id=71502
17     # 'meta-spec' =>  {
18     #     version => '2.0',
19     #     url     => 'http://search.cpan.org/perldoc?CPAN::Meta::Spec',
20     # },
21     meta_add => {
22         resources => {
23             license => 'http://www.gnu.org/licenses/gpl-2.0.html' ,
24             homepage => 'https://savannah.gnu.org/projects/stow',
26             # Module::Build forces us to use v1.4 of the CPAN Meta Spec:
27             # https://rt.cpan.org/Ticket/Display.html?id=71502
28             # bugtracker => {
29             #     web    => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Stow',
30             #     mailto => 'mysqldiff@adamspiers.org',
31             # },
32             #bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Stow',
34             # Module::Build forces us to use v1.4 of the CPAN Meta Spec:
35             # https://rt.cpan.org/Ticket/Display.html?id=71502
36             # repository => {
37             #     url  => 'git:github.com/aspiers/stow.git',
38             #     web  => 'http://github.com/aspiers/stow',
39             #     type => 'git',
40             # },
41             repository => 'http://github.com/aspiers/stow',
42             #repository => 'https://savannah.gnu.org/git/?group=stow',
43         },
44     },
45     requires => {
46         'perl'        => '5.006',
47         'Carp'        => 0,
48         'File::Slurp' => 0,
49         'IO::File'    => 0,
50     },
51     script_files => [ 'bin/stow' ],
52     all_from => 'lib/Stow.pm',
53     configure_requires => {
54         'Module::Build' => 0,
55     },
56     build_requires => {
57         'Test::More'   => 0,
58         'Test::Output' => 0,
59     },
62 $build->create_build_script();