1 use inc::Module::Install 0.67;
4 perl_version '5.006001';
5 all_from 'lib/DBIx/Class.pm';
7 requires 'Data::Page' => 2.00;
8 requires 'Scalar::Util' => 0;
9 requires 'SQL::Abstract' => 1.20;
10 requires 'SQL::Abstract::Limit' => 0.101;
11 requires 'Class::C3' => 0.13;
12 requires 'Class::C3::Componentised' => 0;
13 requires 'Storable' => 0;
14 requires 'Carp::Clan' => 0;
15 requires 'DBI' => 1.40;
16 requires 'Module::Find' => 0;
17 requires 'Class::Inspector' => 0;
18 requires 'Class::Accessor::Grouped' => 0.05002;
19 requires 'JSON::Any' => 1.00;
20 requires 'Scope::Guard' => 0.03;
22 # Perl 5.8.0 doesn't have utf8::is_utf8()
23 requires 'Encode' => 0 if ($] <= 5.008000);
25 build_requires 'DBD::SQLite' => 1.13;
26 build_requires 'Test::Builder' => 0.33;
27 build_requires 'Test::Warn' => 0.08;
29 install_script 'script/dbicadmin';
31 tests "t/*.t t/*/*.t";
33 # re-build README and require CDBI modules for testing if we're in a checkout
34 if( -e 'inc/.author' ) {
35 build_requires 'DBIx::ContextualFetch';
36 build_requires 'Class::Trigger';
37 build_requires 'Time::Piece';
39 system('pod2text lib/DBIx/Class.pm > README');
49 if ($Module::Install::AUTHOR) {
50 # Need to do this _after_ WriteAll else it looses track of them
51 Meta->{values}{build_requires} = [ grep {
53 DBIx::ContextualFetch |
57 } @{Meta->{values}{build_requires}} ];
59 my @scalar_keys = Module::Install::Metadata::Meta_TupleKeys();
60 sub Module::Install::Metadata::Meta_TupleKeys {
61 return @scalar_keys, 'resources';
63 Meta->{values}{resources} = [
64 [ 'MailingList', 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class' ],
65 [ 'IRC', 'irc://irc.perl.org/#dbix-class' ],