-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
129 lines (117 loc) · 3.96 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
use strict;
use warnings;
use ExtUtils::MakeMaker;
WriteMakefile1(
NAME => 'Termbox::Go',
VERSION_FROM => 'lib/Termbox/Go.pm',
ABSTRACT_FROM => 'lib/Termbox/Go.pm',
MIN_PERL_VERSION => '5.014',
AUTHOR => 'J. Schneider',
LICENSE => 'mit',
EXE_FILES => ['bin/build_wcwidth_tables.pl'],
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 6.64,
},
PREREQ_PM => {
'Devel::StrictMode' => 0.003,
'List::Util' => 1.29, # v5.14 => 1.23
'Params::Util' => 1.07,
'Import::Into' => 1.002004,
'Thread::Queue' => 3.07, # v5.14 => 2.12
'Unicode::EastAsianWidth' => 0,
'Unicode::EastAsianWidth::Detect' => 0,
},
TEST_REQUIRES => {
'Test::Exception' => 0.31,
'Test::Simple' => 1.302188,
},
META_MERGE => {
'meta-spec' => {
version => 2
},
homepage => 'http://brickpool.de',
resources => {
repository => {
type => 'git',
url => 'https://github.com/brickpool/Termbox-Go.git',
web => 'https://github.com/brickpool/Termbox-Go',
},
bugtracker => {
web => 'https://github.com/brickpool/Termbox-Go/issues',
},
},
prereqs => {
runtime => {
requires => { # v5.14 builtin modules
'autodie' => 0,
'bytes' => 0,
'Carp' => 0,
'Encode' => 0,
'English' => 0,
'Exporter' => 0,
'Data::Dumper' => 0,
'IO::File' => 0,
'lib' => 0,
'open' => 0,
'Pod::Usage' => 0,
'POSIX' => 0,
'Scalar::Util' => 0,
'strict' => 0,
'threads' => 0,
'threads::shared' => 0,
'Time::HiRes' => 0,
'version' => 0,
'warnings' => 0,
},
recommends => {
'charnames' => 0,
'Find::Bin' => 0,
'LWP' => 0,
'Pod::Autopod' => 0,
},
},
test => {
requires => { # v5.14 builtin modules
'Devel::Peek' => 0,
'utf8' => 0,
},
},
},
},
dist => {
TARFLAGS => '-cvzf',
COMPRESS => 'perl -MExtUtils::Command -e test_f',
POSTOP => 'perl -MExtUtils::Command -e mv $(DISTVNAME).tar $(DISTVNAME).tar$(SUFFIX)'
},
test => { TESTS => 't/*.t t/*/*.t' },
);
# Cribbed from eumm-upgrade by Alexandr Ciornii
sub WriteMakefile1 { # void (%params)
my %params = @_;
my $eumm_version = $ExtUtils::MakeMaker::VERSION;
$eumm_version = eval $eumm_version;
if ($^O eq 'MSWin32') {
$params{PREREQ_PM}->{'Win32'} = 0;
$params{PREREQ_PM}->{'Win32::Console'} = 0.10;
$params{PREREQ_PM}->{'Win32::API'} = 0.75;
$params{PREREQ_PM}->{'Win32API::File'} = 0.1201;
}
if ($params{TEST_REQUIRES} and $eumm_version < 6.6303) {
$params{BUILD_REQUIRES}={ %{$params{BUILD_REQUIRES} || {}} , %{$params{TEST_REQUIRES}} };
delete $params{TEST_REQUIRES};
}
if ($params{BUILD_REQUIRES} and $eumm_version < 6.5503) {
#EUMM 6.5502 has problems with BUILD_REQUIRES
$params{PREREQ_PM}={ %{$params{PREREQ_PM} || {}} , %{$params{BUILD_REQUIRES}} };
delete $params{BUILD_REQUIRES};
}
delete $params{CONFIGURE_REQUIRES} if $eumm_version < 6.52;
delete $params{MIN_PERL_VERSION} if $eumm_version < 6.48;
delete $params{META_MERGE} if $eumm_version < 6.46;
delete $params{META_ADD} if $eumm_version < 6.46;
delete $params{LICENSE} if $eumm_version < 6.31;
delete $params{AUTHOR} if $] < 5.005;
delete $params{ABSTRACT_FROM} if $] < 5.005;
delete $params{BINARY_LOCATION} if $] < 5.005;
WriteMakefile(%params);
}