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