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