X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=1adae9ce5e90e2f8c476d4ba15a3c34239d57cc8;hb=bugfix-permit-preserve-case%3D0;hp=9a27387ebb6647de35b5eb17c0d6633e7a80499a;hpb=af31090c21186b96dc36ae988165926d0db32850;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/Makefile.PL b/Makefile.PL index 9a27387..1adae9c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,108 +1,91 @@ +use warnings; +use strict; -use inc::Module::Install 0.71; +use 5.008001; +use inc::Module::Install 1.00; +use Getopt::Long(); + +my $getopt = Getopt::Long::Parser->new( + config => [qw/gnu_getopt bundling_override no_ignore_case pass_through/] +); +my $args = { + skip_author_deps => undef, +}; +$getopt->getoptions($args, 'skip_author_deps'); +if (@ARGV) { + warn "\nIgnoring unrecognized option(s): @ARGV\n\n"; +} + +use FindBin; +use lib "$FindBin::Bin/lib"; + +perl_version '5.008001'; name 'DBIx-Class-Schema-Loader'; all_from 'lib/DBIx/Class/Schema/Loader.pm'; -test_requires 'Test::More' => '0.47'; +test_requires 'Test::Exception'; +test_requires 'Test::More' => '0.94'; +test_requires 'Test::Warn' => '0.21'; test_requires 'DBI' => '1.56'; -test_requires 'DBD::SQLite' => '1.12'; -test_requires 'File::Path' => 0; +test_requires 'DBD::SQLite' => '1.29'; +test_requires 'File::Copy'; +test_requires 'File::Temp' => '0.16'; +test_requires 'File::Path' => '2.07'; test_requires 'IPC::Open3' => 0; +test_requires 'DBIx::Class::IntrospectableM2M' => 0; requires 'File::Spec' => 0; requires 'Scalar::Util' => 0; +requires 'Task::Weaken' => 0; requires 'Data::Dump' => '1.06'; -requires 'UNIVERSAL::require' => '0.11'; requires 'Lingua::EN::Inflect::Number' => '1.1'; -requires 'Text::Balanced' => 0; +requires 'Lingua::EN::Tagger' => 0; +requires 'Lingua::EN::Inflect::Phrase' => '0.02'; requires 'Digest::MD5' => '2.36'; -requires 'Class::Accessor::Fast' => '0.30'; -requires 'Class::Data::Accessor' => '0.03'; -requires 'Class::C3' => '0.18'; +requires 'Class::Accessor::Grouped' => '0.10002'; +requires 'MRO::Compat' => '0.09'; +requires 'Sub::Name' => 0; +requires 'Class::C3::Componentised' => '1.0008'; requires 'Carp::Clan' => 0; -requires 'Class::Inspector' => 0; -requires 'DBIx::Class' => '0.07006'; +requires 'Class::Inspector' => '1.27'; +requires 'DBIx::Class' => '0.08127'; requires 'Class::Unload' => 0; +requires 'List::MoreUtils' => 0; +requires 'namespace::clean' => '0.20'; +requires 'Scope::Guard' => 0; +requires 'Exporter' => '5.63'; +requires 'Try::Tiny' => 0; +requires 'String::ToIdentifier::EN' => '0.05'; +requires 'String::CamelCase' => '0.02'; +requires 'Hash::Merge' => 0; -install_script 'script/dbicdump'; +if ($Module::Install::AUTHOR && ! $args->{skip_author_deps}) { + eval { require Module::Install::ReadmeFromPod } + or die "\nYou need Module::Install::ReadmeFromPod installed to run this Makefile.PL in author mode:\n\n$@\n"; -# This is my manual hack for better feature control -# If you want to change the default answer for a feature, -# set the appropriate environment variable, like -# DBIC_FEATURE_MYSQL. If you want the defaults to -# apply automatically without asking any questions, -# set DBIC_FEATURE_NOQUESTIONS. Hopefully this will -# save someone some pain when trying to automate -# the installation of this software. - -# Maintainer shouldn't set these, as they would affect -# the META.yml shipped to CPAN. - -my $_features = [ - SQLITE => { - label => 'SQLite Support', - def => $ENV{DBIC_FEATURE_SQLITE} || 0, - deps => [ - 'DBI' => '1.56', - 'DBD::SQLite' => '1.12', - ], - }, - MYSQL => { - label => 'MySQL Support', - def => $ENV{DBIC_FEATURE_MYSQL} || 0, - deps => [ - 'DBI' => '1.56', - 'DBD::mysql' => '4.004', - ], - }, - PG => { - label => 'PostgreSQL Support', - def => $ENV{DBIC_FEATURE_PG} || 0, - deps => [ - 'DBI' => '1.56', - 'DBD::Pg' => '1.49', # Soon to be 1.50 - ], - }, - DB2 => { - label => 'DB2 Support', - def => $ENV{DBIC_FEATURE_DB2} || 0, - deps => [ - 'DBI' => '1.56', - 'DBD::DB2' => '1.0', - ], - }, - ORACLE => { - label => 'Oracle Support (experimental)', - def => $ENV{DBIC_FEATURE_ORACLE} || 0, - deps => [ - 'DBI' => '1.56', - 'DBD::Oracle' => '0.19', - ], - }, -]; - -for(my $i = 0; $i <= $#$_features - 1; $i += 2) { - my $name = $_features->[$i]; - my $attrs = $_features->[$i+1]; - - if($ENV{DBIC_FEATURE_NOQUESTIONS}) { - if($attrs->{def}) { - requires @{$attrs->{deps}}; - } - } - else { - feature $attrs->{label} => - -default => $attrs->{def}, - @{$attrs->{deps}}; - } -} + warn "\n*** AUTHOR MODE: some optional dependencies converted to hard requires.\n\n"; + + require DBIx::Class::Schema::Loader::Optional::Dependencies; -# Rebuild README for maintainers -if(-e 'MANIFEST.SKIP') { - system("pod2text lib/DBIx/Class/Schema/Loader.pm > README"); + test_requires map %$_, values %{ DBIx::Class::Schema::Loader::Optional::Dependencies->req_group_list }; + + DBIx::Class::Schema::Loader::Optional::Dependencies->_gen_pod; + + readme_from( 'lib/DBIx/Class/Schema/Loader.pm' ); + realclean_files( qw[README MANIFEST lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod] ); } -auto_provides; +tests_recursive; + +install_script 'script/dbicdump'; + +resources 'IRC' => 'irc://irc.perl.org/#dbix-class'; +resources 'license' => 'http://dev.perl.org/licenses/'; +resources 'repository' => 'git://git.shadowcat.co.uk/dbsrgits/DBIx-Class-Schema-Loader.git'; +resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class'; + auto_install; WriteAll; + +# vim:et sts=4 sw=4 tw=0: