Update Firebird ODBC driver download URL
[dbsrgits/DBIx-Class-Schema-Loader.git] / Makefile.PL
1 use warnings;
2 use strict;
3
4 use 5.008001;
5 use ExtUtils::MakeMaker;
6 my ($dev_requires) = (do './maint/Makefile.PL.include' or die $@)
7     unless -f 'META.yml';
8
9 my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
10 my %eumm_args = (
11     NAME => 'DBIx::Class::Schema::Loader',
12     VERSION_FROM => 'lib/DBIx/Class/Schema/Loader.pm',
13     LICENSE => 'perl',
14     MIN_PERL_VERSION => '5.008001',
15     CONFIGURE_REQUIRES => {
16         'ExtUtils::MakeMaker' => '0',
17     },
18     TEST_REQUIRES => {
19         'DBD::SQLite'     => '1.29',
20         'Test::Exception' => '0.31',
21         'Test::More'      => '0.94',
22         'Test::Warn'      => '0.21',
23         'Test::Deep'      => '0.107',
24         'Test::Differences' => '0.60',
25         # temporary, needs to be thrown out
26         'DBIx::Class::IntrospectableM2M' => 0,
27         # core, but specific versions not available on older perls
28         'File::Temp'      => '0.16',
29         'File::Path'      => '2.07',
30     },
31     test => {TESTS => 't/*.t t/*/*.t t/*/*/*.t'},
32     PREREQ_PM => {
33         'Carp::Clan'                  => 0,
34         'Class::Accessor::Grouped'    => '0.10008',
35         'Class::C3::Componentised'    => '1.0008',
36         'Class::Inspector'            => '1.27',
37         'Class::Unload'               => '0.07',
38         'curry'                       => '1.000000',
39         'Data::Dump'                  => '1.06',
40         'DBIx::Class'                 => '0.08127',
41         'Hash::Merge'                 => '0.12',
42         'Lingua::EN::Inflect::Number' => '1.1',
43         'Lingua::EN::Tagger'          => '0.23',
44         'Lingua::EN::Inflect::Phrase' => '0.15',
45         'List::Util'                  => '1.33',
46         'MRO::Compat'                 => '0.09',
47         'namespace::clean'            => '0.23',
48         'Scope::Guard'                => '0.20',
49         'String::ToIdentifier::EN'    => '0.05',
50         'String::CamelCase'           => '0.02',
51         'Sub::Util'                   => '1.40',
52         'Try::Tiny'                   => 0,
53         # core, but specific versions not available on older perls
54         'Digest::MD5'                 => '2.36',
55         'Exporter'                    => '5.63',
56     },
57     realclean => {
58         FILES => 'lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod'
59     },
60     EXE_FILES => [ qw(script/dbicdump) ],
61     META_MERGE => {
62         "meta-spec" => { version => 2 },
63         dynamic_config => 0,
64         resources => {
65             repository => {
66                 type => 'git',
67                 url => 'git@github.com/dbsrgits/dbix-class-schema-loader.git',
68                 web => 'https://github.com/dbsrgits/dbix-class-schema-loader',
69             },
70             x_IRC => 'irc://irc.perl.org/#dbix-class',
71             license => [ 'http://dev.perl.org/licenses/' ],
72             x_MailingList => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class',
73         },
74         no_index => {
75             directory => [qw(maint xt)],
76         },
77         prereqs => {
78             develop => { requires => $dev_requires || +{} },
79         },
80     },
81 );
82
83 sub _move_to {
84   my ($hash, $fromkey, $tokey) = @_;
85   $hash->{$tokey} = {
86     %{ $hash->{$tokey} || {} },
87     %{ delete($hash->{$fromkey}) || {} },
88   };
89 }
90 delete $eumm_args{META_MERGE} if $eumm_version < 6.45_01;
91 delete $eumm_args{CONFIGURE_REQUIRES}
92   if $eumm_version < 6.51_03; # too late to use so just delete
93 _move_to(\%eumm_args, 'TEST_REQUIRES', 'BUILD_REQUIRES')
94   if $eumm_version < 6.63_03;
95 _move_to(\%eumm_args, 'BUILD_REQUIRES', 'PREREQ_PM')
96   if $eumm_version < 6.55_01;
97 $eumm_args{NO_MYMETA} = 1
98   if $eumm_version >= 6.57_02 and $eumm_version < 6.57_07;
99 WriteMakefile(%eumm_args);
100
101 print <<"EOF";
102 ******************* DBIx::Class::Schema::Loader WARNING ***********************
103 The default attributes for belongs_to relationships for foreign keys with no
104 rules has been changed for most databases, and is soon changing for the rest,
105 as ON DELETE/UPDATE and DEFERRABLE clauses for foreign keys are now being
106 introspected.
107
108 THIS MAY AFFECT YOUR DDL DIFFS WHEN DEPLOYING
109
110 YOUR GENERATED CODE WILL ALMOST CERTAINLY CHANGE
111
112 Read more about the changes in "relationship_attrs" in:
113
114 perldoc DBIx::Class::Schema::Loader::Base
115
116 https://metacpan.org/module/DBIx::Class::Schema::Loader::Base#relationship_attrs
117
118 See also the "Changes" file for the last few revisions.
119 *******************************************************************************
120 EOF
121
122 # vim:et sts=4 sw=4 tw=0: