Commit | Line | Data |
4a032d4f |
1 | use strict; |
2 | use warnings FATAL => 'all'; |
3 | use ExtUtils::MakeMaker; |
4 | |
5 | (do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml'; |
6 | |
466f5c34 |
7 | require DBIx::Class::Optional::Dependencies; |
8 | |
4a032d4f |
9 | my $eumm_version = eval $ExtUtils::MakeMaker::VERSION; |
10 | |
11 | my %_test_req = ( |
12 | 'Test::More' => 0, |
c9dfb2d6 |
13 | 'Test::Fatal' => 0, |
466f5c34 |
14 | %{ DBIx::Class::Optional::Dependencies->req_list_for('deploy') }, |
15 | ); |
16 | my %_configure_req = ( |
17 | 'DBIx::Class' => '0.082820', |
4a032d4f |
18 | ); |
19 | my %_build_req = ( |
20 | ($eumm_version < 6.63_03) ? (%_test_req) : (), |
21 | ); |
22 | my %_req = ( |
23 | ($eumm_version < 6.55_01) ? (%_build_req) : (), |
24 | 'DBIx::Class' => 0, |
25 | ); |
26 | |
27 | WriteMakefile( |
28 | NAME => 'DBIx::Class::ParameterizedJoinHack', |
29 | VERSION_FROM => 'lib/DBIx/Class/ParameterizedJoinHack.pm', |
30 | LICENSE => 'perl5', |
31 | TEST_REQUIRES => \%_test_req, |
32 | BUILD_REQUIRES => \%_build_req, |
466f5c34 |
33 | CONFIGURE_REQUIRES => \%_configure_req, |
4a032d4f |
34 | PREREQ_PM => \%_req, |
35 | ); |