Commit | Line | Data |
737416a4 |
1 | use inc::Module::Install 0.67; |
ce4c07df |
2 | |
3 | name 'DBIx-Class'; |
ce4c07df |
4 | perl_version '5.006001'; |
8e0f16f1 |
5 | all_from 'lib/DBIx/Class.pm'; |
ce4c07df |
6 | |
ce4c07df |
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; |
1680d317 |
12 | requires 'Class::C3::Componentised' => 0; |
ce4c07df |
13 | requires 'Storable' => 0; |
ce4c07df |
14 | requires 'Carp::Clan' => 0; |
15 | requires 'DBI' => 1.40; |
16 | requires 'Module::Find' => 0; |
17 | requires 'Class::Inspector' => 0; |
1d4e109a |
18 | requires 'Class::Accessor::Grouped' => 0.05002; |
c843f5e4 |
19 | requires 'JSON::Any' => 1.00; |
9c6d6d93 |
20 | requires 'Scope::Guard' => 0.03; |
ce4c07df |
21 | |
22 | # Perl 5.8.0 doesn't have utf8::is_utf8() |
23 | requires 'Encode' => 0 if ($] <= 5.008000); |
24 | |
f103b03b |
25 | build_requires 'DBD::SQLite' => 1.13; |
ab2cf1fb |
26 | build_requires 'Test::Builder' => 0.33; |
ce4c07df |
27 | |
28 | install_script 'script/dbicadmin'; |
29 | |
30 | tests "t/*.t t/*/*.t"; |
31 | |
1543db24 |
32 | # re-build README and require CDBI modules for testing if we're in a checkout |
33 | if( -e 'inc/.author' ) { |
34 | build_requires 'DBIx::ContextualFetch'; |
35 | build_requires 'Class::Trigger'; |
09d46657 |
36 | build_requires 'Time::Piece'; |
37 | |
1543db24 |
38 | system('pod2text lib/DBIx/Class.pm > README'); |
ff132c6f |
39 | } |
40 | |
41 | auto_provides; |
42 | |
3e110410 |
43 | auto_install; |
44 | |
ce4c07df |
45 | WriteAll; |
09d46657 |
46 | |
47 | |
48 | if ($Module::Install::AUTHOR) { |
49 | # Need to do this _after_ WriteAll else it looses track of them |
50 | Meta->{values}{build_requires} = [ grep { |
51 | $_->[0] !~ / |
52 | DBIx::ContextualFetch | |
53 | Class::Trigger | |
54 | Time::Piece |
55 | /x; |
56 | } @{Meta->{values}{build_requires}} ]; |
57 | |
58 | my @scalar_keys = Module::Install::Metadata::Meta_TupleKeys(); |
59 | sub Module::Install::Metadata::Meta_TupleKeys { |
60 | return @scalar_keys, 'resources'; |
61 | } |
62 | Meta->{values}{resources} = [ |
63 | [ 'MailingList', 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class' ], |
64 | [ 'IRC', 'irc://irc.perl.org/#dbix-class' ], |
65 | ]; |
66 | Meta->write; |
67 | } |
68 | |
69 | |
70 | |