1 use inc::Module::Install 0.91;
3 name 'DBIx-Class-Schema-Loader';
4 all_from 'lib/DBIx/Class/Schema/Loader.pm';
6 test_requires 'Test::More' => '0.47';
7 test_requires 'DBI' => '1.56';
8 test_requires 'DBD::SQLite' => '1.12';
9 test_requires 'File::Path' => 0;
10 test_requires 'IPC::Open3' => 0;
11 test_requires 'Test::Exception';
13 requires 'File::Spec' => 0;
14 requires 'Scalar::Util' => 0;
15 requires 'Data::Dump' => '1.06';
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 'Class::C3::Componentised' => '1.0005';
23 requires 'Carp::Clan' => 0;
24 requires 'Class::Inspector' => 0;
25 requires 'DBIx::Class' => '0.08109';
26 requires 'Class::Unload' => 0;
28 install_script 'script/dbicdump';
30 # This is my manual hack for better feature control
31 # If you want to change the default answer for a feature,
32 # set the appropriate environment variable, like
33 # DBIC_FEATURE_MYSQL. If you want the defaults to
34 # apply automatically without asking any questions,
35 # set DBIC_FEATURE_NOQUESTIONS. Hopefully this will
36 # save someone some pain when trying to automate
37 # the installation of this software.
39 # Maintainer shouldn't set these, as they would affect
40 # the META.yml shipped to CPAN.
44 label => 'SQLite Support',
45 def => $ENV{DBIC_FEATURE_SQLITE} || 0,
48 'DBD::SQLite' => '1.12',
52 label => 'MySQL Support',
53 def => $ENV{DBIC_FEATURE_MYSQL} || 0,
56 'DBD::mysql' => '4.004',
60 label => 'PostgreSQL Support',
61 def => $ENV{DBIC_FEATURE_PG} || 0,
64 'DBD::Pg' => '1.49', # Soon to be 1.50
68 label => 'DB2 Support',
69 def => $ENV{DBIC_FEATURE_DB2} || 0,
76 label => 'Oracle Support (experimental)',
77 def => $ENV{DBIC_FEATURE_ORACLE} || 0,
80 'DBD::Oracle' => '0.19',
84 label => 'Sybase Support (experimental)',
85 def => $ENV{DBIC_FEATURE_SYBASE} || 0,
88 'DBD::Sybase' => '1.09',
92 label => 'Microsoft SQL Server Support via DBD::Sybase (experimental)',
93 def => $ENV{DBIC_FEATURE_MSSQL} || 0,
96 'DBD::Sybase' => '1.09',
100 label => 'Microsoft SQL Server Support via DBD::ODBC (experimental)',
101 def => $ENV{DBIC_FEATURE_MSSQL} || 0,
104 'DBD::ODBC' => '1.22',
109 for(my $i = 0; $i <= $#$_features - 1; $i += 2) {
110 my $name = $_features->[$i];
111 my $attrs = $_features->[$i+1];
113 if($ENV{DBIC_FEATURE_NOQUESTIONS}) {
115 requires @{$attrs->{deps}};
119 feature $attrs->{label} =>
120 -default => $attrs->{def},
125 # Rebuild README for maintainers
126 if(-e 'MANIFEST.SKIP') {
127 system("pod2text lib/DBIx/Class/Schema/Loader.pm > README");