X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=b9cb36f1aaf33fd9a6ae3ab91b626e19515265cc;hb=ede41de668c22c0b4e8270f01f2274302889dd4f;hp=51d31fd328d6b81a957ec0c78db136d5abdba5e7;hpb=d6d29b9b2c7db9ccfd3ea8cb3b304b3b017395e7;p=catagits%2FCatalyst-Plugin-Static-Simple.git diff --git a/Makefile.PL b/Makefile.PL index 51d31fd..b9cb36f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,31 +1,39 @@ -# Note: this file was auto-generated by Module::Build::Compat version 0.03 - - unless (eval "use Module::Build::Compat 0.02; 1" ) { - print "This module requires Module::Build to install itself.\n"; - - require ExtUtils::MakeMaker; - my $yn = ExtUtils::MakeMaker::prompt - (' Install Module::Build now from CPAN?', 'y'); - - unless ($yn =~ /^y/i) { - die " *** Cannot install without Module::Build. Exiting ...\n"; - } - - require Cwd; - require File::Spec; - require CPAN; - - # Save this 'cause CPAN will chdir all over the place. - my $cwd = Cwd::cwd(); - my $makefile = File::Spec->rel2abs($0); - - CPAN::Shell->install('Module::Build::Compat') - or die " *** Cannot install without Module::Build. Exiting ...\n"; - - chdir $cwd or die "Cannot chdir() back to $cwd: $!"; +use strict; +use warnings; +use inc::Module::Install 0.91; +use Module::Install::AuthorRequires; +use Module::Install::AuthorTests; + +name 'Catalyst-Plugin-Static-Simple'; +all_from 'lib/Catalyst/Plugin/Static/Simple.pm'; + +requires 'Catalyst::Runtime' => '5.80008'; +requires 'MIME::Types' => '2.03'; +requires 'Test::More'; +requires 'Moose'; +requires 'MooseX::Types'; +requires 'namespace::autoclean'; + +test_requires 'Test::More'; + +author_requires 'Test::NoTabs'; +author_requires 'Test::Pod' => '1.14'; +author_requires 'Test::Pod::Coverage' => '1.04'; + +author_tests 't/author'; + +if( can_use 'Catalyst::Plugin::SubRequest' ) { + unless( can_use 'Catalyst::Plugin::SubRequest' => '0.08' ) { + print "** WARNING **\n" + . "You appear to have a version of Catalyst::Plugin::SubRequest " + . "older than 0.08.\n" + . "You must upgrade to SubRequest 0.08 or later if you use it " + . "in any applications with Static::Simple.\n"; + requires 'Catalyst::Plugin::SubRequest' => '0.08'; } - eval "use Module::Build::Compat 0.02; 1" or die $@; - use lib '_build/lib'; - Module::Build::Compat->run_build_pl(args => \@ARGV); - require Module::Build; - Module::Build::Compat->write_makefile(build_class => 'Module::Build'); +} + +auto_install; +resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-Plugin-Static-Simple.git'; + +WriteAll;