forked from jasonk/dbicx-autodoc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
69 lines (66 loc) · 1.85 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
use ExtUtils::MakeMaker;
use File::ShareDir::Install;
install_share 'templates';
my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
my %eumm_args = (
NAME => 'DBICx::AutoDoc',
ABSTRACT_FROM => 'lib/DBICx/AutoDoc.pm',
AUTHOR => 'Jason Kohles <[email protected]>',
LICENSE => 'perl',
VERSION_FROM => 'lib/DBICx/AutoDoc.pm',
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => '6.42',
'File::ShareDir::Install' => '0',
},
PREREQ_PM => {
'DBIx::Class' => '0',
'Template' => '0',
'Carp' => '0',
'Class::Accessor::Grouped' => '0',
'FindBin' => '0',
'Data::Dump' => '0',
'File::Temp' => '0',
'Pod::Usage' => '0',
'Getopt::Long' => '0',
'Tie::IxHash' => '0',
'File::ShareDir' => '1.00',
},
TEST_REQUIRES => {
'Test::More' => '0',
},
EXE_FILES => [ qw(dbicx-autodoc) ],
META_MERGE => {
"meta-spec" => { version => 2 },
dynamic_config => 0,
resources => {
repository => {
type => 'git',
url => '[email protected]:ilmari/dbicx-autodoc.git',
web => 'https://github.com/ilmari/dbicx-autodoc',
},
license => [ 'http://dev.perl.org/licenses/' ],
},
no_index => {
directory => [qw(examples templates xt)],
},
},
);
sub _move_to {
my ($hash, $fromkey, $tokey) = @_;
$hash->{$tokey} = {
%{ $hash->{$tokey} || {} },
%{ delete($hash->{$fromkey}) || {} },
};
}
delete $eumm_args{META_MERGE} if $eumm_version < 6.45_01;
_move_to(\%eumm_args, 'CONFIGURE_REQUIRES', 'PREREQ_PM')
if $eumm_version < 6.51_03;
_move_to(\%eumm_args, 'BUILD_REQUIRES', 'PREREQ_PM')
if $eumm_version < 6.55_01;
$eumm_args{NO_MYMETA} = 1
if $eumm_version >= 6.57_02 and $eumm_version < 6.57_07;
_move_to(\%eumm_args, 'TEST_REQUIRES', 'PREREQ_PM')
if $eumm_version < 6.63_03;
WriteMakefile(%eumm_args);
package MY;
use File::ShareDir::Install qw(postamble);