X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session.git;a=blobdiff_plain;f=Makefile.PL;h=48798d6e6c6d789f7ad245e3f1b45210353361e7;hp=0ec8aa5cd4f1d184b5b34f019d6b45f9cd71900a;hb=df76da4a8640b9b6dcbc51b3a9a42c5f819ae699;hpb=509f9b254a903cc3b55b38d9ac15fa287c26d922 diff --git a/Makefile.PL b/Makefile.PL index 0ec8aa5..48798d6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,19 +1,59 @@ -use ExtUtils::MakeMaker; +use inc::Module::Install 0.87; +use Module::Install::AuthorTests; -my %state = ( - Cookie => 0.03, - URI => 0.02, -); +if ( -e 'MANIFEST.SKIP' ) { + system( 'pod2text lib/Catalyst/Plugin/Session.pm > README' ) + and die("Could not run pod2text on lib/Catalyst/Plugin/Session.pm"); +} + +is_upgrading_needed(); + +perl_version '5.008'; + +name 'Catalyst-Plugin-Session'; +all_from 'lib/Catalyst/Plugin/Session.pm'; + +requires 'Catalyst::Runtime' => '5.71001'; +requires 'namespace::clean' => '0.10'; +requires 'Digest'; +requires 'File::Spec'; +requires 'File::Temp'; +requires 'Object::Signature'; +requires 'MRO::Compat'; +requires 'MooseX::Emulate::Class::Accessor::Fast' => '0.00801'; +requires 'Moose' => '0.76'; + +# an indirect dep. needs a certain version. +requires 'Tie::RefHash' => '1.34'; + +# for Test::Store +requires 'Test::More' => '0.88'; + +test_requires 'Test::Deep'; +test_requires 'Test::Exception'; +test_requires 'Test::WWW::Mechanize::PSGI'; +resources repository => 'git://git.shadowcat.co.uk/catagits/Catalyst-Plugin-Session.git'; + +author_tests 't/author'; -foreach my $module (keys %state) { - if ( eval "require Catalyst::Plugin::Session::State::$module" and - ${"Catalyst::Plugin::Session::State::${module}::VERSION"} < $state{$module} ) { - warn < 0.03, + URI => 0.02, + ); + + foreach my $module (keys %state) { + my $package = 'Catalyst::Plugin::Session::State::' . $module; + + next if not eval "require $package;"; + + if( not eval { $package->VERSION( $state{ $module } ); } ) { + warn < 'Catalyst::Plugin::Session', - 'VERSION_FROM' => 'lib/Catalyst/Plugin/Session.pm', - 'PREREQ_PM' => { - 'Catalyst' => '5.49', - 'Digest' => '0', - 'File::Spec' => '0', - 'File::Temp' => '0', - 'Object::Signature' => '0', - 'Test::Deep' => '0', - 'Test::Exception' => '0', - 'Test::MockObject' => '1.01', - 'Test::More' => '0', - 'Tie::RefHash' => '1.34', - }, - 'INSTALLDIRS' => 'site', - 'EXE_FILES' => [], - 'SIGN' => 1, - 'PL_FILES' => {} - ) -; - -