forked from gisle/digest
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.PL
More file actions
50 lines (46 loc) · 1.72 KB
/
Copy pathMakefile.PL
File metadata and controls
50 lines (46 loc) · 1.72 KB
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
require 5.006;
use strict;
use warnings;
use ExtUtils::MakeMaker;
my %WriteMakefile_args = (
'NAME' => 'Digest',
'AUTHOR' => 'Gisle Aas <gisle@activestate.com>',
'VERSION_FROM' => 'lib/Digest.pm',
'ABSTRACT_FROM' => 'lib/Digest.pm',
'LICENSE' => 'perl',
'MIN_PERL_VERSION' => '5.006',
'PREREQ_PM' => {
'MIME::Base64' => 0,
},
'TEST_REQUIRES' => {
'Test::More' => '0.47',
'File::Temp' => '0',
},
'INSTALLDIRS' => ( ( $] >= '5.009005' && $] < '5.012' ) ? 'perl' : 'site' ),
'dist' => { 'COMPRESS' => 'gzip -9f', 'SUFFIX' => 'gz', },
'clean' => { 'FILES' => 'Digest-*' },
'META_MERGE' => {
'meta-spec' => { 'version' => 2 },
'dynamic_config' => 0,
'resources' => {
'license' => ['http://dev.perl.org/licenses/'],
'bugtracker' => { 'web' => 'https://github.com/Dual-Life/digest/issues' },
'repository' => {
'type' => 'git',
'url' => 'https://github.com/Dual-Life/digest.git',
'web' => 'https://github.com/Dual-Life/digest',
},
}
},
);
delete $WriteMakefile_args{LICENSE}
unless eval { ExtUtils::MakeMaker->VERSION('6.31') };
delete $WriteMakefile_args{META_MERGE}
unless eval { ExtUtils::MakeMaker->VERSION('6.46') };
delete $WriteMakefile_args{MIN_PERL_VERSION}
unless eval { ExtUtils::MakeMaker->VERSION('6.48') };
unless ( eval { ExtUtils::MakeMaker->VERSION('6.64') } ) {
my $test_requires = delete $WriteMakefile_args{TEST_REQUIRES};
$WriteMakefile_args{PREREQ_PM}{$_} = $test_requires->{$_} for keys %$test_requires;
}
WriteMakefile(%WriteMakefile_args);