X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Build.PL;h=0f28d9747711a453f0e19a45dd2d8b08fb6761a0;hb=refs%2Ftags%2F0_09;hp=ddb1700e9a629827b76515f5935aed880c5b4198;hpb=c86a46cc54baef2a5738176a70288db5f3f1376f;p=gitmo%2FMooseX-Storage.git diff --git a/Build.PL b/Build.PL index ddb1700..0f28d97 100644 --- a/Build.PL +++ b/Build.PL @@ -1,46 +1,3 @@ - -use strict; -use warnings; - -use Module::Build; - -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 - # 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', - }, - 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', - ], -); - -$build->create_build_script; - +# Dear Distribution Packager. This use of require is intentional. +# Module::Install detects Build.PL usage and acts accordingly. +require 'Makefile.PL';