better CamelCASE support for naming=v8
[dbsrgits/DBIx-Class-Schema-Loader.git] / Makefile.PL
CommitLineData
2a72f15d 1use warnings;
2use strict;
ef8e9c69 3
4use 5.008001;
2a72f15d 5use inc::Module::Install 1.00;
ef8e9c69 6
509e7821 7use Getopt::Long();
8
9my $getopt = Getopt::Long::Parser->new(
10 config => [qw/gnu_getopt bundling_override no_ignore_case pass_through/]
11);
12my $args = {
13 skip_author_deps => undef,
14};
15$getopt->getoptions($args, 'skip_author_deps');
16if (@ARGV) {
17 warn "\nIgnoring unrecognized option(s): @ARGV\n\n";
18}
19
ef8e9c69 20use FindBin;
21use lib "$FindBin::Bin/lib";
22
2a72f15d 23perl_version '5.008001';
3fe9c5d9 24name 'DBIx-Class-Schema-Loader';
25all_from 'lib/DBIx/Class/Schema/Loader.pm';
26
9cb983b3 27test_requires 'Test::Exception';
d27f2b7b 28test_requires 'Test::More' => '0.94';
0c344f4e 29test_requires 'Test::Warn' => '0.21';
390bbe3f 30test_requires 'DBI' => '1.56';
83d82c02 31test_requires 'DBD::SQLite' => '1.29';
9cb983b3 32test_requires 'File::Copy';
33test_requires 'File::Temp' => '0.16';
502b65d4 34test_requires 'File::Path' => '2.07';
ff746964 35test_requires 'IPC::Open3' => 0;
3fe9c5d9 36
37requires 'File::Spec' => 0;
38requires 'Scalar::Util' => 0;
39d5612f 39requires 'Task::Weaken' => 0;
3fe9c5d9 40requires 'Data::Dump' => '1.06';
3fe9c5d9 41requires 'Lingua::EN::Inflect::Number' => '1.1';
dc379dc6 42requires 'Lingua::EN::Tagger' => 0;
39b22ca9 43requires 'Lingua::EN::Inflect::Phrase' => '0.02';
3fe9c5d9 44requires 'Digest::MD5' => '2.36';
925f9a89 45requires 'Class::Accessor::Grouped' => '0.10002';
942bd5e0 46requires 'MRO::Compat' => '0.09';
cc15b78f 47requires 'Sub::Name' => 0;
6b6f0270 48requires 'Class::C3::Componentised' => '1.0008';
3fe9c5d9 49requires 'Carp::Clan' => 0;
50requires 'Class::Inspector' => 0;
6e8da818 51requires 'DBIx::Class' => '0.08127';
af31090c 52requires 'Class::Unload' => 0;
8793567f 53requires 'List::MoreUtils' => 0;
da793144 54requires 'namespace::clean' => '0.20';
3a89a69f 55requires 'Scope::Guard' => 0;
f3ea13a8 56requires 'Exporter' => '5.63';
906fa216 57requires 'Try::Tiny' => 0;
f9daf711 58requires 'String::ToIdentifier::EN' => '0.05';
ea3b8f03 59requires 'String::CamelCase' => '0.02';
3fe9c5d9 60
509e7821 61if ($Module::Install::AUTHOR && ! $args->{skip_author_deps}) {
2a72f15d 62 eval { require Module::Install::ReadmeFromPod }
63 or die "\nYou need Module::Install::ReadmeFromPod installed to run this Makefile.PL in author mode:\n\n$@\n";
64
65 warn "\n*** AUTHOR MODE: some optional dependencies converted to hard requires.\n\n";
ff746964 66
ef8e9c69 67 require DBIx::Class::Schema::Loader::Optional::Dependencies;
01012543 68
ef8e9c69 69 test_requires map %$_, values %{ DBIx::Class::Schema::Loader::Optional::Dependencies->req_group_list };
70
71 DBIx::Class::Schema::Loader::Optional::Dependencies->_gen_pod;
2a72f15d 72
73 readme_from( 'lib/DBIx/Class/Schema/Loader.pm' );
74 realclean_files( qw[README MANIFEST lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod] );
3fe9c5d9 75}
76
ef8e9c69 77tests_recursive;
78
79install_script 'script/dbicdump';
80
64b844d0 81resources 'IRC' => 'irc://irc.perl.org/#dbix-class';
82resources 'license' => 'http://dev.perl.org/licenses/';
edfab8b3 83resources 'repository' => 'git://git.shadowcat.co.uk/dbsrgits/DBIx-Class-Schema-Loader.git';
64b844d0 84resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class';
85
3fe9c5d9 86auto_install;
87WriteAll;
ef8e9c69 88
89# vim:et sts=4 sw=4 tw=0: