X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=fb953243b0d5e1822fe31ba450e276040bc97270;hb=cfd008fa25b3cdd9721ef2fad9f4383cdc200ddc;hp=dd4ef63ee3684889cec1303aee8e1b8139fa9762;hpb=e97396242e8acc8dff6cf3f4f5961ee1fbd8498e;p=gitmo%2FMooseX-Storage.git diff --git a/Makefile.PL b/Makefile.PL index dd4ef63..fb95324 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,16 +1,39 @@ -use strict; -use warnings; -use ExtUtils::MakeMaker; - -WriteMakefile( - NAME => 'MooseX::Storage', - AUTHOR => 'Chris Prather ', - VERSION_FROM => 'lib/MooseX/Storage.pm', - ABSTRACT_FROM => 'lib/MooseX/Storage.pm', - PL_FILES => {}, - PREREQ_PM => { - 'Test::More' => 0, - }, - dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, - clean => { FILES => 'MooseX-Storage-JSON-*' }, -); +# Load the Module::Install bundled in ./inc/ +use inc::Module::Install; + +# Define metadata +name 'MooseX-Storage'; +all_from 'lib/MooseX/Storage.pm'; + +# Specific dependencies +requires 'Moose' => '0.39'; + +# you should have at least one +# serialization format +feature 'JSON', + -default => 1, + 'JSON::Any' => '1.15', + 'Test::JSON' => '0.06'; + +feature 'YAML', + -default => 1, + 'Best' => '0.1', + 'Test::YAML::Valid' => '0'; + +feature 'Storable', + -default => 1, + 'Storable' => '0'; + +# and the ability to save the +# file to disk +feature 'File', + -default => 1, + 'IO::File' => '0.1'; + +build_requires 'Test::More' => '0.42'; +build_requires 'Test::Deep' => '0'; +build_requires 'Test::Exception' => '0'; +build_requires 'Test::TempDir' => '0.02'; + +auto_install; +WriteAll;