X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=141505836976cfeb8c6220617f9523e9d68ccb27;hb=1d4669291edf1495a90d5b110a6334b05ca1cc78;hp=9acfa80b617b7fa0baa5143e04725ba931e08048;hpb=681ad95e896af645f0c6f90bcf2c62805b8994c2;p=gitmo%2FMooseX-Storage.git diff --git a/Makefile.PL b/Makefile.PL index 9acfa80..1415058 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,18 +1,67 @@ -use strict; -use warnings; -use ExtUtils::MakeMaker; - -WriteMakefile( - NAME => 'MooseX::Storage', - AUTHOR => 'Chris Prather , Stevan Little ', - VERSION_FROM => 'lib/MooseX/Storage.pm', - ABSTRACT_FROM => 'lib/MooseX/Storage.pm', - PL_FILES => {}, - PREREQ_PM => { - 'Test::More' => 0, - 'Moose' => 0, - 'JSON::Any' => 0, - }, - dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, - clean => { FILES => 'MooseX-Storage-*' }, -); +# 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'; + +perl_version '5.008'; + +# Specific dependencies +requires 'Moose' => '0.99'; +requires 'String::RewritePrefix'; + +author_requires 'Test::Without::Module'; + +# you should have at least one +# serialization format +auto_install; # Needed for features to work. RT#67170 +feature 'JSON', + -default => 1, + 'JSON::Any' => '1.15', + 'Test::Deep::JSON' => '0'; +recommends 'JSON::Any' => '1.15'; +recommends 'Test::Deep::JSON'; + +author_requires 'JSON::Any' => '1.15'; +author_requires 'Test::Deep::JSON' => '0'; + +feature 'YAML', + -default => 1, + 'YAML::Any' => '0'; +author_requires 'YAML::Any'; +recommends 'YAML::Any'; + +feature 'Storable', + -default => 1, + 'Storable' => '0'; +author_requires 'Storable'; +recommends 'Storable'; + +# and the ability to save the +# file to disk +feature 'File', + -default => 1, + 'IO::File' => '0.1'; +author_requires 'IO::File' => '0.1'; +recommends 'IO::File'; + +author_tests 't/author'; + +build_requires 'Test::More' => '0.88'; +build_requires 'Test::Deep' => '0'; +build_requires 'Test::Fatal' => '0'; +build_requires 'Test::Requires' => '0.05'; + +author_requires 'Digest::HMAC'; +author_requires 'Digest::SHA'; +author_requires 'Test::Pod' => '1.14'; +author_requires 'Test::Pod::Coverage' => '1.08'; + +# r/w: gitmo@git.moose.perl.org:MooseX-Storage.git +resources repository => 'git://git.moose.perl.org/MooseX-Storage.git'; + +WriteAll; +