Reduce the number of times $self->_dbh is called inside dbh_do() to speed
[dbsrgits/DBIx-Class-Historic.git] / Makefile.PL
CommitLineData
737416a4 1use inc::Module::Install 0.67;
ce4c07df 2
3name 'DBIx-Class';
ce4c07df 4perl_version '5.006001';
8e0f16f1 5all_from 'lib/DBIx/Class.pm';
ce4c07df 6
ce4c07df 7requires 'Data::Page' => 2.00;
8requires 'Scalar::Util' => 0;
9requires 'SQL::Abstract' => 1.20;
10requires 'SQL::Abstract::Limit' => 0.101;
11requires 'Class::C3' => 0.13;
1680d317 12requires 'Class::C3::Componentised' => 0;
ce4c07df 13requires 'Storable' => 0;
ce4c07df 14requires 'Carp::Clan' => 0;
15requires 'DBI' => 1.40;
16requires 'Module::Find' => 0;
17requires 'Class::Inspector' => 0;
1d4e109a 18requires 'Class::Accessor::Grouped' => 0.05002;
c843f5e4 19requires 'JSON::Any' => 1.00;
9c6d6d93 20requires 'Scope::Guard' => 0.03;
ce4c07df 21
22# Perl 5.8.0 doesn't have utf8::is_utf8()
23requires 'Encode' => 0 if ($] <= 5.008000);
24
f103b03b 25build_requires 'DBD::SQLite' => 1.13;
ab2cf1fb 26build_requires 'Test::Builder' => 0.33;
c77d3e8c 27build_requires 'Test::Warn' => 0.08;
ce4c07df 28
29install_script 'script/dbicadmin';
30
31tests "t/*.t t/*/*.t";
32
1543db24 33# re-build README and require CDBI modules for testing if we're in a checkout
34if( -e 'inc/.author' ) {
35 build_requires 'DBIx::ContextualFetch';
36 build_requires 'Class::Trigger';
09d46657 37 build_requires 'Time::Piece';
38
1543db24 39 system('pod2text lib/DBIx/Class.pm > README');
ff132c6f 40}
41
42auto_provides;
43
3e110410 44auto_install;
45
ce4c07df 46WriteAll;
09d46657 47
48
49if ($Module::Install::AUTHOR) {
50 # Need to do this _after_ WriteAll else it looses track of them
51 Meta->{values}{build_requires} = [ grep {
52 $_->[0] !~ /
53 DBIx::ContextualFetch |
54 Class::Trigger |
55 Time::Piece
56 /x;
57 } @{Meta->{values}{build_requires}} ];
58
59 my @scalar_keys = Module::Install::Metadata::Meta_TupleKeys();
60 sub Module::Install::Metadata::Meta_TupleKeys {
61 return @scalar_keys, 'resources';
62 }
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' ],
66 ];
67 Meta->write;
68}
69
70
71