2 use inc::Module::Install 0.65;
4 name 'DBIx-Class-Schema-Loader';
5 all_from 'lib/DBIx/Class/Schema/Loader.pm';
7 test_requires 'Test::More' => '0.47';
8 test_requires 'DBI' => '1.56';
9 test_requires 'DBD::SQLite' => '1.12';
10 test_requires 'File::Path' => 0;
12 requires 'File::Spec' => 0;
13 requires 'Scalar::Util' => 0;
14 requires 'Data::Dump' => '1.06';
15 requires 'UNIVERSAL::require' => '0.11';
16 requires 'Lingua::EN::Inflect::Number' => '1.1';
17 requires 'Text::Balanced' => 0;
18 requires 'Digest::MD5' => '2.36';
19 requires 'Class::Accessor::Fast' => '0.30';
20 requires 'Class::Data::Accessor' => '0.03';
21 requires 'Class::C3' => '0.18';
22 requires 'Carp::Clan' => 0;
23 requires 'Class::Inspector' => 0;
24 requires 'DBIx::Class' => '0.07006';
26 # This is my manual hack for better feature control
27 # If you want to change the default answer for a feature,
28 # set the appropriate environment variable, like
29 # DBIC_FEATURE_MYSQL. If you want the defaults to
30 # apply automatically without asking any questions,
31 # set DBIC_FEATURE_NOQUESTIONS. Hopefully this will
32 # save someone some pain when trying to automate
33 # the installation of this software.
35 # Maintainer shouldn't set these, as they would affect
36 # the META.yml shipped to CPAN.
40 label => 'SQLite Support',
41 def => $ENV{DBIC_FEATURE_SQLITE} || 0,
44 'DBD::SQLite' => '1.12',
48 label => 'MySQL Support',
49 def => $ENV{DBIC_FEATURE_MYSQL} || 0,
52 'DBD::mysql' => '4.004',
56 label => 'PostgreSQL Support',
57 def => $ENV{DBIC_FEATURE_PG} || 0,
60 'DBD::Pg' => '1.49', # Soon to be 1.50
64 label => 'DB2 Support',
65 def => $ENV{DBIC_FEATURE_DB2} || 0,
72 label => 'Oracle Support (experimental)',
73 def => $ENV{DBIC_FEATURE_ORACLE} || 0,
76 'DBD::Oracle' => '0.19',
81 for(my $i = 0; $i <= $#$_features - 1; $i += 2) {
82 my $name = $_features->[$i];
83 my $attrs = $_features->[$i+1];
85 if($ENV{DBIC_FEATURE_NOQUESTIONS}) {
87 requires @{$attrs->{deps}};
91 feature $attrs->{label} =>
92 -default => $attrs->{def},
97 # Rebuild README for maintainers
98 if(-e 'MANIFEST.SKIP') {
99 system("pod2text lib/DBIx/Class/Schema/Loader.pm > README");