-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.PL
50 lines (48 loc) · 1.2 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
require 5.008;
use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'Encode::Locale',
VERSION_FROM => 'lib/Encode/Locale.pm',
ABSTRACT_FROM => "lib/Encode/Locale.pm",
AUTHOR => 'Gisle Aas <gisle@activestate.com>',
LICENSE => "perl",
MIN_PERL_VERSION => 5.008,
PREREQ_PM => {
'Encode' => 2,
'Encode::Alias' => 0,
},
META_MERGE => {
resources => {
repository => 'http://github.com/gisle/encode-locale',
},
recommends => {
'I18N::Langinfo' => 0,
'Win32::Console' => 0,
},
},
BUILD_REQUIRES => {
Test => 0,
},
);
BEGIN {
# compatibility with older versions of MakeMaker
my $developer = -d ".git";
my %mm_req = (
LICENCE => 6.31,
META_MERGE => 6.45,
META_ADD => 6.45,
MIN_PERL_VERSION => 6.48,
BUILD_REQUIRES => 6.56,
);
undef(*WriteMakefile);
*WriteMakefile = sub {
my %arg = @_;
for (keys %mm_req) {
unless (eval { ExtUtils::MakeMaker->VERSION($mm_req{$_}) }) {
warn "$_ $@" if $developer;
delete $arg{$_};
}
}
ExtUtils::MakeMaker::WriteMakefile(%arg);
};
}