X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=43c4ac20661441b809239558d83bc5dd62570871;hb=f105066e11e27d8884368f07bf86846a6481a956;hp=73561c5352822cdabd09c00afe412e107dace61a;hpb=e59193fb8aa5245e3add439af907798562ff07c0;p=gitmo%2FMooseX-Storage.git diff --git a/Makefile.PL b/Makefile.PL index 73561c5..43c4ac2 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,17 +1,56 @@ -use strict; -use warnings; -use ExtUtils::MakeMaker; - -WriteMakefile( - NAME => 'MooseX::Storage::JSON', - AUTHOR => 'Chris Prather ', - VERSION_FROM => 'lib/MooseX/Storage/JSON.pm', - ABSTRACT_FROM => 'lib/MooseX/Storage/JSON.pm', - PL_FILES => {}, - PREREQ_PM => { - 'Test::More' => 0, - 'version' => 0, - }, - dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, - clean => { FILES => 'MooseX-Storage-JSON-*' }, -); +# Load the Module::Install bundled in ./inc/ +use inc::Module::Install 0.75; +use Module::Install::AuthorRequires; +use Module::Install::AuthorTests; + +# Define metadata +name 'MooseX-Storage'; +all_from 'lib/MooseX/Storage.pm'; + +# Specific dependencies +requires 'Moose' => '0.99'; +requires 'String::RewritePrefix'; + +author_requires 'Test::Without::Module'; + +# you should have at least one +# serialization format +feature 'JSON', + -default => 1, + 'JSON::Any' => '1.15', + 'Test::JSON' => '0.06'; +author_requires 'JSON::Any' => '1.15'; +author_requires 'Test::JSON' => '0.06'; + +feature 'YAML', + -default => 1, + 'YAML::Any' => '0'; +author_requires 'YAML::Any'; + +feature 'Storable', + -default => 1, + 'Storable' => '0'; +author_requires 'Storable'; + +# and the ability to save the +# file to disk +feature 'File', + -default => 1, + 'IO::File' => '0.1'; +author_requires 'IO::File' => '0.1'; + +author_tests 't/author'; + +build_requires 'Test::More' => '0.88'; +build_requires 'Test::Deep' => '0'; +build_requires 'Test::Exception' => '0'; +build_requires 'Test::TempDir' => '0.02'; +build_requires 'Test::Requires' => '0.05'; + +author_requires 'Test::Pod' => '1.14'; +author_requires 'Test::Pod::Coverage' => '1.08'; + +resources repository => 'git://git.moose.perl.org/MooseX-Storage.git'; + +WriteAll; +