Bumping version to 0.43; add $VERSION to all modules
[catagits/Catalyst-View-TT.git] / Makefile.PL
1 use strict;
2 use warnings;
3
4 use ExtUtils::MakeMaker;
5
6 ExtUtils::MakeMaker->VERSION('7.00') unless -f 'META.yml';
7 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
8
9 my %WriteMakefileArgs = (
10     NAME => 'Catalyst::View::TT',
11     VERSION_FROM => 'lib/Catalyst/View/TT.pm',
12     AUTHOR => 'Sebastian Riedel <sri@cpan.org>',
13     LICENSE => 'perl_5',
14     MIN_PERL_VERSION => 5.008001,  # catalyst minimum
15     PREREQ_PM => {
16         'Catalyst'          => '5.7',
17         'Template'          => 0,
18         'Class::Accessor'   => 0,
19         'Template::Timer'   => 0,
20         'Path::Class'       => 0,
21         'MRO::Compat'       => 0,
22     },
23     TEST_REQUIRES => {
24         'Test::More'        => '0',
25         'File::Spec'        => '0',
26     },
27
28     META_MERGE => {
29         'meta-spec' => { version => 2 },
30         dynamic_config => 0,
31         resources => {
32             # r/w: catagits@git.shadowcat.co.uk:Catalyst-View-TT
33             # r/o: git://git.shadowcat.co.uk:catagits/Catalyst-View-TT
34             # web: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-View-TT.git
35             repository => {
36                 url => 'https://github.com/perl-catalyst/Catalyst-View-TT.git',
37                 web => 'https://github.com/perl-catalyst/Catalyst-View-TT',
38                 type => 'git',
39             },
40             bugtracker => {
41                 mailto => 'bug-Catalyst-View-TT@rt.cpan.org',
42                 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-View-TT',
43             },
44             x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
45             x_IRC => 'irc://irc.perl.org/#catalyst',
46         },
47     },
48 );
49
50 die 'need to do a merge with CPAN::Meta::Requirements!!'
51     if !-f 'META.yml' && exists $WriteMakefileArgs{BUILD_REQUIRES};
52
53 if (!eval { ExtUtils::MakeMaker->VERSION('6.6303') }) {
54     $WriteMakefileArgs{BUILD_REQUIRES} = $WriteMakefileArgs{TEST_REQUIRES};
55     delete $WriteMakefileArgs{TEST_REQUIRES};
56 }
57
58 if (!eval { ExtUtils::MakeMaker->VERSION('6.5501') }) {
59     @{$WriteMakefileArgs{PREREQ_PM}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} } =
60         @{$WriteMakefileArgs{BUILD_REQUIRES}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} };
61
62     delete $WriteMakefileArgs{BUILD_REQUIRES};
63 }
64
65 my %mm_req = (
66     LICENCE => 6.31,
67     META_MERGE => 6.45,
68     META_ADD => 6.45,
69     MIN_PERL_VERSION => 6.48,
70 );
71 for (keys %mm_req) {
72     unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
73         warn "$_ $@" if not -f 'Makefile.PL';
74         delete $WriteMakefileArgs{$_};
75     }
76 }
77
78 WriteMakefile(%WriteMakefileArgs);