merging repository in meta.yml
[app-cpan2pkg.git] / Build.PL
blobd4bb9024c713564ab24e2d2fe719a7c730a4c4b4
2 # This file is part of App::CPAN2Pkg.
3 # Copyright (c) 2009 Jerome Quelin, all rights reserved.
5 # This program is free software; you can redistribute it and/or modify
6 # it under the same terms as Perl itself.
10 use strict;
11 use warnings;
13 use Module::Build;
15 my %requires = (
16     perl                 => '5.010',
17     'Class::XSAccessor'  => 0,
18     'CPANPLUS::Shell::Default::Plugins::Prereqs' => 0,
19     'Curses'             => 0,
20     'Curses::UI'         => 0,
21     'Curses::UI::POE'    => 0,
22     'File::Basename'     => 0,
23     'FindBin'            => 0,
24     'Getopt::Euclid'     => 0,
25     'Hook::Output::File' => 0,
26     'List::MoreUtils'    => 0,
27     'POE'                => 0,
29 my %build_requires = (
30     %requires,
31     'Test::More' => 0,
33  my %recommends = (
34      'Test::Pod'           => 0,
35      'Test::Pod::Coverage' => 0,
38 my $builder = Module::Build->new(
39     module_name         => 'App::CPAN2Pkg',
40     license             => 'perl',
41     dist_author         => 'Jerome Quelin <jquelin@cpan.org>',
42     dist_version_from   => 'lib/App/CPAN2Pkg.pm',
43     build_requires      => \%build_requires,
44     requires            => \%requires,
45     recommends          => \%recommends,
46     script_files        => [ 'bin/cpan2pkg' ],
47     add_to_cleanup      => [
48         'App-CPAN2Pkg-*', map { ( '*/' x $_ ) . '*~' } 0..5
49     ],
50     create_makefile_pl => 'traditional',
51     meta_merge => {
52         resources => {
53             repository => 'http://repo.or.cz/w/app-cpan2pkg.git',
54         },
55     },
58 $builder->create_build_script();