]> git.vpit.fr Git - perl/modules/rgit.git/blob - Makefile.PL
Put prerequisites in their own separate hash
[perl/modules/rgit.git] / Makefile.PL
1 use 5.008;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my $dist = 'rgit';
8
9 my %PREREQ_PM = (
10  'Carp'                  => 0,
11  'Cwd'                   => 0,
12  'Exporter'              => 0,
13  'File::Find'            => 0,
14  'File::Spec::Functions' => 0,
15  'Object::Tiny'          => 0,
16  'POSIX'                 => 0,
17  'base'                  => 0,
18 );
19
20 my %META = (
21  configure_requires => {
22   'ExtUtils::MakeMaker' => 0,
23  },
24  build_requires => {
25   'Cwd'                   => 0,
26   'ExtUtils::MakeMaker'   => 0,
27   'File::Spec::Functions' => 0,
28   'File::Temp'            => 0,
29   'Test::More'            => 0,
30   %PREREQ_PM,
31  },
32  recommends => {
33   'Term::ReadKey' => 0,
34  },
35  dynamic_config => 0,
36  resources => {
37   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
38   homepage   => "http://search.cpan.org/dist/$dist/",
39   license    => 'http://dev.perl.org/licenses/',
40   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
41  },
42 );
43
44 WriteMakefile(
45     NAME             => 'rgit',
46     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
47     LICENSE          => 'perl',
48     VERSION_FROM     => 'lib/App/Rgit.pm',
49     ABSTRACT         => 'Recursively execute a command on all the git repositories in a directory tree.',
50     PL_FILES         => { },
51     EXE_FILES        => [ 'bin/rgit' ],
52     PREREQ_PM        => \%PREREQ_PM,
53     MIN_PERL_VERSION => 5.008,
54     META_MERGE       => \%META,
55     dist             => {
56         PREOP    => 'pod2text bin/rgit > $(DISTVNAME)/README',
57         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
58     },
59     clean            => {
60         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
61     }
62 );