From: Chris Prather Date: Tue, 23 Oct 2007 19:19:05 +0000 (+0000) Subject: make local copy of MX::Storage X-Git-Tag: 0_09~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=399f35008260625b5e127628e0c3e80c3b145cfe;p=gitmo%2FMooseX-Storage.git make local copy of MX::Storage r34053@alice-3: perigrin | 2007-10-10 01:00:20 -0500 tag 0.08 release r34460@alice-3: perigrin | 2007-10-23 14:18:07 -0500 change to Module::Install (the lack of Makefile.PL was bothering me) --- diff --git a/Build.PL b/Build.PL index cabbc90..0f28d97 100644 --- a/Build.PL +++ b/Build.PL @@ -1,47 +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 - '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', - }, - 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'; diff --git a/Changes b/Changes index 42246ab..c6b6dd1 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,6 @@ Revision history for MooseX-Storage -0.09 +0.09 Tue. Oct. 23, 2007 * MooseX::Storage::Util - added support to deal with utf8 strings correctly @@ -11,6 +11,8 @@ Revision history for MooseX-Storage * t/ - added a test for the utf8 handling + + * Change build system to Module::Install 0.08 Wed. Oct. 10, 2007 * MooseX::Storage::Format::JSON diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..6f56619 --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,38 @@ +# 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.20'; + +# you should have at least one +# serialization format +feature 'JSON', + -default => 1, + 'JSON::Any' => '0.1', + 'Test::JSON' => '0'; + +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'; + +no_index 'directory' => 'ex'; + +auto_install; +WriteAll;