X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Build.PL;h=cabbc901a9a95adb331b2bacc4591a57562a311a;hb=24b5691f1879ec296dce95ecb99d0b7ab166a09d;hp=77f2b774e1d0bbb9ce3045b4e2e06432004d6329;hpb=e59193fb8aa5245e3add439af907798562ff07c0;p=gitmo%2FMooseX-Storage.git diff --git a/Build.PL b/Build.PL index 77f2b77..cabbc90 100644 --- a/Build.PL +++ b/Build.PL @@ -1,17 +1,47 @@ + use strict; use warnings; + use Module::Build; -my $builder = Module::Build->new( - module_name => 'MooseX::Storage::JSON', - license => 'perl', - dist_author => 'Chris Prather ', - dist_version_from => 'lib/MooseX/Storage/JSON.pm', - requires => { - 'Test::More' => 0, - 'version' => 0, +my $build = Module::Build->new( + module_name => 'MooseX::Storage', + license => 'perl', + requires => { + 'Moose' => '0.20', + # you should have at least one + # serialization format + 'JSON::Any' => '0', + 'Best' => '0', # << this if for loading YAML + 'Storable' => '0', + # and the ability to save the + # file to disk + 'IO::File' => '0', + }, + optional => { + 'IO::AtomicFile' => '0', + # these are only used in the + # test, I recommend them, but + # there is no need to force + # them on people :) + 'Test::YAML::Valid' => '0', + 'Test::JSON' => '0', + # this if for the basic role with checksum + 'Digest' => '0', + 'Digest::SHA1' => '0', + 'Data::Dumper' => '0', }, - add_to_cleanup => [ 'MooseX-Storage-JSON-*' ], + build_requires => { + 'Test::More' => '0.62', + 'Test::Exception' => '0.21', + 'Test::Deep' => '0', + }, + create_makefile_pl => 'traditional', + recursive_test_files => 1, + add_to_cleanup => [ + 'META.yml', '*.bak', '*.gz', 'Makefile.PL', + ], ); -$builder->create_build_script(); +$build->create_build_script; +