-
Notifications
You must be signed in to change notification settings - Fork 44
/
Makefile.PL
346 lines (306 loc) · 11.5 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
# NOTE: inc::Module::Install::PRIVATE::Padre needs Perl 5.8, so make sure
# that we force the Perl version check (and fail) early.
# Unicode is also considered to finally be "stable" at 5.8.5, so we will
# set our dependency on that.
use 5.010000;
use strict;
use lib 'privinc';
use inc::Module::Install 1.12;
use POSIX qw(locale_h);
BEGIN {
if (! defined $Module::Install::VERSION or $Module::Install::VERSION < 1.08) {
die "Need to install Module::Install 1.08 before we can continue";
}
}
# Workaround for the fact that Module::Install loads the modules
# into memory and when Test::NoWarnings is loaded it will hide
# the warnings generated from that point.
# Removed in r2208, added again in r9001
eval {
require Test::NoWarnings;
$SIG{__WARN__} = 'DEFAULT';
};
BEGIN {
if ( author_context and not eval("use Locale::Msgfmt 0.15; 1;") ) {
die("Install Locale::Msgfmt version 0.15 or higher to build from Git");
}
}
# Configure-time dependencies MUST be done first.
# This version ensures that we have a new MakeMaker that
# WON'T load modules to determine the version.
# This _SHOULD_ theoretically make the "require Test::NoWarnings".
# stuff above here no longer needed.
# NOTE: IF YOU GET A BAREWORD ERROR HERE IT MAY BE DUE TO A PARTIALL BROKEN COMPILE.
# NOTE: DELETE THE blib AND inc DIRECTORIES AND TRY AGAIN.
configure_requires 'ExtUtils::MakeMaker' => '6.52';
# Force an explicit configure_requires dependency on module that is
# SUPPOSED to be in the Perl core but that some Perl vendors seem to
# be splitting out into separate modules (spotted first on centos)
configure_requires 'ExtUtils::Embed' => '1.250601';
# the above line does not seem to force an upgrade
# the below code might work but not tested
#eval "use ExtUtils::MakeMaker ()"; # avoid importing prompt() and other subs
#if ($@) {
# print STDERR "Warning: prerequisite ExtUtils::MakeMaker 6.52 not found.\n";
# exit 0;
#} elsif ($ExtUtils::MakeMaker::VERSION <= 6.52) {
# print STDERR "Warning: prerequisite ExtUtils::MakeMaker 6.52 not found. We have $ExtUtils::MakeMaker::VERSION.\n";
# exit 0;
#}
# This makes sure that we didn't compile Alien::wxWidgets with the wrong options.
configure_requires 'Alien::wxWidgets' => '0.62';
my $wxw = eval { use Alien::wxWidgets; 1; };
if ( $@ or not $wxw ) {
print STDERR "Warning: prerequisite Alien::wxWidgets not found.\n";
exit 0;
}
if ( '2.009000' eq Alien::wxWidgets->version ) {
print STDERR "Warning: Alien::wxWidgets was compiled with the development version of\n";
print STDERR "wxWidgets. This is known to cause Padre to crash.\n";
exit 0;
}
#####################################################################
# Normal Boring Commands
# NOTE: Core modules that aren't dual-life should always have a version of 0
name 'Padre';
license 'perl';
author 'Gabor Szabo';
all_from 'lib/Padre.pm';
requires 'perl' => '5.011000';
# General dependencies
requires 'Algorithm::Diff' => '1.19';
requires 'App::cpanminus' => '0.9923';
requires 'B::Deparse' => 0;
requires 'Capture::Tiny' => '0.06';
requires 'CGI' => '3.47';
requires 'Class::Adapter' => '1.05';
requires 'Class::Inspector' => '1.22';
requires 'Class::XSAccessor' => '1.13';
requires 'Cwd' => '3.2701';
requires 'Data::Dumper' => '2.101';
requires 'DBD::SQLite' => '1.35';
requires 'DBI' => '1.58';
requires 'Debug::Client' => '0.29';
requires 'Devel::Dumpvar' => '0.04';
requires 'Devel::Refactor' => '0.05';
requires 'Encode' => '2.26';
requires 'ExtUtils::MakeMaker' => '6.56';
requires 'ExtUtils::Manifest' => '1.56';
requires 'File::Basename' => 0;
requires 'File::Glob' => 0;
requires 'File::Glob::Windows' => '0.1.3' if win32;
requires 'File::Copy::Recursive' => '0.37';
requires 'File::Find::Rule' => '0.30';
requires 'File::HomeDir' => (win32) ? '0.98' : '0.91';
requires 'File::Path' => '2.08';
requires 'File::Remove' => (win32) ? '1.49' : '1.40';
requires 'File::ShareDir' => '1.00';
requires 'File::Spec' => '3.2701';
requires 'File::Spec::Functions' => '3.2701';
requires 'File::Temp' => '0.20';
requires 'File::Which' => '1.08';
requires 'File::pushd' => '1.00';
requires 'FindBin' => 0;
requires 'Getopt::Long' => 0;
requires 'HTML::Entities' => '3.57';
requires 'HTML::Parser' => '3.58';
requires 'IO::Socket' => '1.30';
requires 'IO::String' => '1.08';
requires 'IPC::Run' => '0.83';
requires 'IPC::Open2' => 0;
requires 'IPC::Open3' => 0;
requires 'JSON::XS' => '2.29';
requires 'List::Util' => '1.18';
requires 'Parse::Functions' => '0.01';
requires 'List::MoreUtils' => '0.22';
requires 'LWP' => '5.815';
requires 'LWP::UserAgent' => '5.815';
requires 'Module::Build' => '0.3603';
requires 'Module::CoreList' => '2.22';
requires 'Module::Manifest' => '0.07';
requires 'Module::Starter' => '1.60' if not win32;
requires 'ORLite' => '1.98';
requires 'ORLite::Migrate' => '1.10';
requires 'Params::Util' => '0.33';
requires 'Parse::ErrorString::Perl' => '0.18';
requires 'Parse::ExuberantCTags' => '1.00';
requires 'Pod::Functions' => 0;
requires 'Pod::POM' => '0.17';
requires 'Pod::Simple' => '3.07';
requires 'Pod::Simple::XHTML' => '3.04';
requires 'Pod::Abstract' => '0.16';
requires 'Pod::Perldoc' => '3.23';
requires 'POD2::Base' => '0.043';
requires 'POSIX' => 0;
requires 'PPI' => '1.218';
requires 'PPIx::EditorTools' => '0.18';
requires 'PPIx::Regexp' => '0.011';
requires 'Probe::Perl' => '0.01';
requires 'Storable' => '2.16';
requires 'Sort::Versions' => '1.5';
requires 'Template::Tiny' => '0.11';
requires 'Term::ReadLine' => 0;
requires 'Text::Balanced' => '2.01';
requires 'Text::Diff' => '1.41';
requires 'Text::FindIndent' => '0.10';
requires 'Time::HiRes' => '1.9718';
requires 'Text::Patch' => '1.8';
requires 'threads' => '1.71';
requires 'threads::shared' => '1.33';
requires 'URI' => '0';
requires 'version' => '0.80';
requires 'Win32' => '0.31' if win32;
requires 'Win32::Shortcut' => '0.07' if win32;
requires 'Win32::TieRegistry' => '0.26' if win32;
requires 'Wx' => '0.9916';
requires 'Wx::Perl::ProcessStream' => '0.32';
requires 'Wx::Scintilla' => '0.39';
requires 'YAML::Tiny' => '1.32';
test_requires 'Test::More' => '0.98';
# Ticket #1419: Padre and the soon to be Perl 5.16
test_requires 'Test::Warn' => '0.24';
test_requires 'Test::MockObject' => '1.09';
test_requires 'Test::Script' => '1.07';
test_requires 'Test::Exception' => '0.27';
test_requires 'Test::NoWarnings' => '1.04';
# Special dependencies
# In the Padre.ppd file we need to list IO-stringy instead
requires 'IO::Scalar' => '2.110';
# Add later, once we native support portability
# requires 'Portable' => '0.12' if win32;
# PAR support disabled for now
# requires 'File::ShareDir::PAR' => '0.04';
# requires 'PAR' => '0.989';
my $locale = setlocale(LC_CTYPE);
print "Found locale $locale\n";
# What tests should we run?
my @TESTS = (
't/*.t',
't/perl/*.t',
't/python/*.t',
't/ruby/*.t',
't/java/*.t',
't/csharp/*.t',
);
if ( win32 and $locale =~ /^English/ ) {
if ( author_context or $ENV{RELEASE_TESTING} ) {
push @TESTS, 't/win32/*.t';
}
}
if ( author_context or $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) {
push @TESTS, 'xt/*.t';
}
tests join ' ', @TESTS;
no_index 'directory' => qw{ t xt eg share inc privinc };
homepage 'http://padre.perlide.org/';
bugtracker 'http://padre.perlide.org/trac/';
repository 'https://github.com/PadreIDE/Padre/';
# NOTE: Disabled due to Unicode parsing problems on Win32
#Meta->add_metadata(
# x_contributors => [
# 'Aaron Trevena (TEEJAY)',
# 'Adam Kennedy (ADAMK) <[email protected]>',
# 'Ahmad Zawawi أحمد محمد زواوي (AZAWAWI)',
# 'Andrew Shitov',
# 'Alexandr Ciornii (CHORNY)',
# 'Amir E. Aharoni - אמיר א. אהרוני',
# 'Blake Willmarth (BLAKEW)',
# 'BlueT - Matthew Lien - 練喆明 (BLUET) <[email protected]>',
# 'Breno G. de Oliveira (GARU)',
# 'Brian Cassidy (BRICAS)',
# 'Burak Gürsoy (BURAK) <[email protected]>',
# 'Cezary Morga (THEREK) <[email protected]>',
# 'Chris Dolan (CHRISDOLAN)',
# 'Claudio Ramirez (NXADM) <[email protected]>',
# 'Dirk De Nijs (ddn123456)',
# 'Enrique Nell (ENELL)',
# 'Fayland Lam (FAYLAND) <[email protected]>',
# 'Gabriel Vieira (GABRIELMAD)',
# 'Gábor Szabó - גאבור סבו (SZABGAB) <[email protected]>',
# 'György Pásztor (GYU)',
# 'Heiko Jansen (HJANSEN) <[email protected]>',
# 'Jérôme Quelin (JQUELIN) <[email protected]>',
# 'Kaare Rasmussen (KAARE) <[email protected]>',
# 'Keedi Kim - 김도형 (KEEDI)',
# 'Kenichi Ishigaki - 石垣憲一 (ISHIGAKI) <[email protected]>',
# 'Kevin Dawson (BOWTIE) <[email protected]>',
# 'Kjetil Skotheim (KJETIL)',
# 'Marcela Mašláňová (mmaslano)',
# 'Marek Roszkowski (EviL) <[email protected]>',
# 'Mark Grimes <[email protected]>',
# 'Max Maischein (CORION)',
# 'Olivier MenguE<eacute> (DOLMEN)',
# 'Omer Zak - עומר זק',
# 'Paco Alguacil (PacoLinux)',
# 'Patrick Donelan (PDONELAN) <[email protected]>',
# 'Paweł Murias (PMURIAS)',
# 'Petar Shangov (PSHANGOV)',
# 'Peter Lavender (PLAVEN)',
# 'Ryan Niebur (RSN) <[email protected]>',
# 'Sebastian Willing (SEWI)',
# 'Shlomi Fish - שלומי פיש (SHLOMIF)',
# 'Simone Blandino (SBLANDIN)',
# 'Steffen Müller (TSEE) <[email protected]>',
# 'Zeno Gantner (ZENOG)',
# 'Chuanren Wu',
# ],
#);
keywords(
"auto-completion",
"code",
"coding",
"completion",
"context",
"cross-platform",
"development",
"editor",
"environment",
"find",
"function list",
"gui",
"help",
"highlight",
"hightlighting",
"ide",
"linux",
"mac os",
"mac os x",
"padre",
"perl",
"portable",
"refactoring",
"replace",
"syntax",
"windows",
"version control",
"patch",
"diff",
"wx",
"wxwidgets",
);
install_script 'script/padre';
build_padre_exe if win32;
# This enhanced version of install_share is provided by Locale::Msgfmt
# Without Locale::Msgfmt you will get a bareword error for this line.
# Without running install_share_with_mofiles Padre won't have a share
# directory and now you have bigger problems.
install_share_with_mofiles;
auto_provides if -f 'MANIFEST';
#####################################################################
# Padre-Specific Oddities
# Padre requires threads
# First we should check if the perl is threaded so the users
# won't waste time installing modules on a perl without thread support.
use Config;
unless ( $Config{usethreads} ) {
warn("Padre requires a perl built using threads\n");
# Exit 0 without Makefile means "Not Applicable" (NA in CPAN Testers)
exit(0);
}
# The check_wx_version command SHOULD (hopefully) now be able to verify the
# wxWidgets version WITHOUT having to have DISPLAY.
check_wx_version;
# Add the make exe target
setup_padre;
show_debuginfo;
WriteAll;