-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
104 lines (96 loc) · 3.65 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
use 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;
use File::ShareDir::Install;
install_share dist => 'data';
# Optional except for cpancover, cpantesters etc.
my $extra_test =
( $ENV{EXTENDED_TESTING} || $ENV{AUTOMATED_TESTING} )
? 'requires'
: 'recommends';
my %WriteMakefileArgs = (
NAME => 'Benchmark::DKbench',
AUTHOR => q{Dimitrios Kechagias <dkechag@cpan.org>},
VERSION_FROM => 'lib/Benchmark/DKbench.pm',
ABSTRACT_FROM => 'lib/Benchmark/DKbench.pm',
LICENSE => 'perl_5',
MIN_PERL_VERSION => '5.12.0',
CONFIGURE_REQUIRES => {
"ExtUtils::MakeMaker" => '6.52',
"File::ShareDir::Install" => 0,
},
EXE_FILES => ["dkbench", "setup_dkbench"],
TEST_REQUIRES => {
'Test2::V0' => '0',
},
PREREQ_PM => {
'Astro::Coord::Constellations' => '0',
'Astro::Coord::Precession' => '0',
'CryptX' => '0.067',
'Crypt::JWT' => '0.032',
'CSS::Inliner' => '0',
'DateTime' => '1.52',
'DBD::Mock' => '0',
'DBI' => '1.642',
'File::ShareDir' => '0',
'HTML::FormatText' => '0',
'HTML::Parser' => '0',
'HTML::TreeBuilder' => '0',
'Imager' => '1.007',
'Image::PHash' => '0.3',
'JSON::XS' => '4.0',
'Math::MatrixReal' => '0',
'Math::DCT' => '0',
'Moose' => '2.2005',
'MCE::Loop' => '0',
'SQL::Inserter' => '0',
'SQL::Abstract::Classic' => '0',
'System::CPU' => '0',
'System::Info' => '0.057',
'Test::Harness' => '0',
'Test::Requires' => '0',
'Text::Levenshtein::XS' => '0',
'Text::Levenshtein::Damerau::XS' => '0',
},
dist => {
COMPRESS => 'gzip -9f',
SUFFIX => 'gz',
},
META_MERGE => {
"meta-spec" => { version => 2 },
prereqs => {
test => {
$extra_test => {
'Test::MockFile' => '0',
}
},
},
resources => {
repository => {
type => 'git',
url => 'git://github.com/dkechag/Benchmark-DKbench.git',
web => 'https://github.com/dkechag/Benchmark-DKbench',
},
},
},
clean => {FILES => 'Benchmark-DKbench-*'},
);
# Compatibility with old versions of ExtUtils::MakeMaker
unless (eval { ExtUtils::MakeMaker->VERSION('6.64'); 1 }) {
my $test_requires = delete $WriteMakefileArgs{TEST_REQUIRES} || {};
@{$WriteMakefileArgs{PREREQ_PM}}{keys %$test_requires} = values %$test_requires;
}
unless (eval { ExtUtils::MakeMaker->VERSION('6.55_03'); 1 }) {
my $build_requires = delete $WriteMakefileArgs{BUILD_REQUIRES} || {};
@{$WriteMakefileArgs{PREREQ_PM}}{keys %$build_requires} = values %$build_requires;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION('6.52'); 1 };
delete $WriteMakefileArgs{MIN_PERL_VERSION}
unless eval { ExtUtils::MakeMaker->VERSION('6.48'); 1 };
delete $WriteMakefileArgs{LICENSE}
unless eval { ExtUtils::MakeMaker->VERSION('6.31'); 1 };
WriteMakefile(%WriteMakefileArgs);
package MY;
use File::ShareDir::Install 'postamble';