From: Peter Rabbitson Date: Fri, 7 Aug 2009 09:06:41 +0000 (+0000) Subject: Streamline makefile dep handling X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a410299d75b4e40b24d5e5ebbb35d794c2dc73e4;p=dbsrgits%2FDBIx-Class-Historic.git Streamline makefile dep handling --- diff --git a/Makefile.PL b/Makefile.PL index 895540a..28a0501 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -18,6 +18,7 @@ test_requires 'Test::Warn' => 0.11; test_requires 'File::Temp' => 0.22; + # Core requires 'List::Util' => 0; requires 'Scalar::Util' => 0; @@ -45,32 +46,17 @@ requires 'Sub::Name' => 0.04; recommends 'SQL::Translator' => 0.09004; -feature 'Replication', - -default => 0, - 'Moose' => '0.88', - 'MooseX::AttributeHelpers' => '0.21', - 'MooseX::Types' => '0.16', - 'namespace::clean' => '0.11', - 'Hash::Merge' => '0.11'; - - -install_script (qw| - script/dbicadmin -|); - -tests_recursive (qw| - t -|); - -resources 'IRC' => 'irc://irc.perl.org/#dbix-class'; -resources 'license' => 'http://dev.perl.org/licenses/'; -resources 'repository' => 'http://dev.catalyst.perl.org/svnweb/bast/browse/DBIx-Class/'; -resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class'; - - -# re-build README and require extra modules for testing if we're in a checkout +my %replication_requires = ( + 'Moose', => 0.87, + 'MooseX::AttributeHelpers' => 0.21, + 'MooseX::Types', => 0.16, + 'namespace::clean' => 0.11, + 'Hash::Merge', => 0.11, +); my %force_requires_if_author = ( + %replication_requires, + # 'Module::Install::Pod::Inherit' => 0.01, 'Test::Pod::Coverage' => 1.04, 'SQL::Translator' => 0.09007, @@ -94,13 +80,6 @@ my %force_requires_if_author = ( # t/96_is_deteministic_value.t 'DateTime::Format::Strptime'=> 0, - # t/93storage_replication.t - 'Moose', => 0.87, - 'MooseX::AttributeHelpers' => 0.21, - 'MooseX::Types', => 0.16, - 'namespace::clean' => 0.11, - 'Hash::Merge', => 0.11, - # database-dependent reqs # $ENV{DBICTEST_PG_DSN} @@ -124,6 +103,26 @@ my %force_requires_if_author = ( , ); +feature ('Storage Replication', -default => 0, %replication_requires); + + + +install_script (qw| + script/dbicadmin +|); + +tests_recursive (qw| + t +|); + +resources 'IRC' => 'irc://irc.perl.org/#dbix-class'; +resources 'license' => 'http://dev.perl.org/licenses/'; +resources 'repository' => 'http://dev.catalyst.perl.org/svnweb/bast/browse/DBIx-Class/'; +resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class'; + + +# re-build README and require extra modules for testing if we're in a checkout + if ($Module::Install::AUTHOR) { warn <<'EOW'; ****************************************************************************** @@ -148,8 +147,8 @@ EOW unlink 'MANIFEST'; } -# eval { require Module::Install::Pod::Inherit }; -# PodInherit() if !$@; +# require Module::Install::Pod::Inherit; +# PodInherit(); } auto_install();