4 use ExtUtils::MakeMaker;
6 ExtUtils::MakeMaker->VERSION('7.00') unless -f 'META.yml';
7 (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
9 my %WriteMakefileArgs = (
10 NAME => 'Catalyst::View::TT',
11 VERSION_FROM => 'lib/Catalyst/View/TT.pm',
12 AUTHOR => 'Sebastian Riedel <sri@cpan.org>',
14 MIN_PERL_VERSION => 5.008001, # catalyst minimum
18 'Class::Accessor' => 0,
19 'Template::Timer' => 0,
30 'meta-spec' => { version => 2 },
33 # r/w: catagits@git.shadowcat.co.uk:Catalyst-View-TT
34 # r/o: git://git.shadowcat.co.uk:catagits/Catalyst-View-TT
35 # web: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits/Catalyst-View-TT.git
37 url => 'https://github.com/perl-catalyst/Catalyst-View-TT.git',
38 web => 'https://github.com/perl-catalyst/Catalyst-View-TT',
42 mailto => 'bug-Catalyst-View-TT@rt.cpan.org',
43 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Catalyst-View-TT',
45 x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst',
46 x_IRC => 'irc://irc.perl.org/#catalyst',
51 die 'need to do a merge with CPAN::Meta::Requirements!!'
52 if !-f 'META.yml' && exists $WriteMakefileArgs{BUILD_REQUIRES};
54 if (!eval { ExtUtils::MakeMaker->VERSION('6.6303') }) {
55 $WriteMakefileArgs{BUILD_REQUIRES} = $WriteMakefileArgs{TEST_REQUIRES};
56 delete $WriteMakefileArgs{TEST_REQUIRES};
59 if (!eval { ExtUtils::MakeMaker->VERSION('6.5501') }) {
60 @{$WriteMakefileArgs{PREREQ_PM}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} } =
61 @{$WriteMakefileArgs{BUILD_REQUIRES}}{ keys %{$WriteMakefileArgs{BUILD_REQUIRES}} };
63 delete $WriteMakefileArgs{BUILD_REQUIRES};
70 MIN_PERL_VERSION => 6.48,
73 unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
74 warn "$_ $@" if not -f 'Makefile.PL';
75 delete $WriteMakefileArgs{$_};
79 WriteMakefile(%WriteMakefileArgs);