-
Notifications
You must be signed in to change notification settings - Fork 49
/
64bit-5.32.0.1.pp
490 lines (453 loc) · 32.3 KB
/
64bit-5.32.0.1.pp
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
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
### job description for building strawberry perl
#Available '<..>' macros:
# <package_url> is placeholder for http://strawberryperl.com/package
# <dist_sharedir> is placeholder for Perl::Dist::Strawberry's distribution sharedir
# <image_dir> is placeholder for c:\strawberry
{
app_version => '5.32.0.1', #BEWARE: do not use '.0.0' in the last two version digits
bits => 64,
beta => 0,
app_fullname => 'Strawberry Perl (64-bit)',
app_simplename => 'strawberry-perl',
maketool => 'gmake', # 'dmake' or 'gmake'
build_job_steps => [
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::BinaryToolsAndLibs',
install_packages => {
#tools
'dmake' => '<package_url>/kmx/64_tools/64bit_dmake-warn_20170512.zip',
'pexports' => '<package_url>/kmx/64_tools/64bit_pexports-0.47-bin_20170426.zip',
'patch' => '<package_url>/kmx/64_tools/64bit_patch-2.5.9-7-bin_20100110_UAC.zip',
#gcc, gmake, gdb & co.
'gcc-toolchain' => { url=>'<package_url>/kmx/64_gcctoolchain/mingw64-w64-gcc8.3.0_20190316.zip', install_to=>'c' },
'gcc-license' => '<package_url>/kmx/64_gcctoolchain/mingw64-w64-gcc8.3.0_20190316-lic.zip',
#libs
'bzip2' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_bzip2-1.0.6-bin_20190522.zip',
'db' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_db-6.2.38-bin_20190522.zip',
'expat' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_expat-2.2.6-bin_20190522.zip',
'fontconfig' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_fontconfig-2.13.1-bin_20190522.zip',
'freeglut' => '<package_url>/kmx/64_libs/gcc83-2020Q1/64bit_freeglut-2.8.1-bin_20200209.zip',
'freetype' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_freetype-2.10.0-bin_20190522.zip',
'fribidi' => '<package_url>/kmx/64_libs/gcc83-2020Q3/64bit_fribidi-1.0.10-bin_20200712.zip',
'gdbm' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_gdbm-1.18-bin_20190522.zip',
'giflib' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_giflib-5.1.9-bin_20190522.zip',
'gmp' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_gmp-6.1.2-bin_20190522.zip',
'graphite2' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_graphite2-1.3.13-bin_20190522.zip',
'harfbuzz' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_harfbuzz-2.3.1-bin_20190522.zip',
'jpeg' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_jpeg-9c-bin_20190522.zip',
'libffi' => '<package_url>/kmx/64_libs/gcc83-2020Q1/64bit_libffi-3.3-bin_20200207.zip',
'libgd' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_libgd-2.2.5-bin_20190522.zip',
'liblibiconv' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_libiconv-1.16-bin_20190522.zip',
'libidn2' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_libidn2-2.1.1-bin_20190522.zip',
'liblibpng' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_libpng-1.6.37-bin_20190522.zip',
'liblibssh2' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_libssh2-1.8.2-bin_20190522.zip',
'libunistring' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_libunistring-0.9.10-bin_20190522.zip',
'liblibxml2' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_libxml2-2.9.9-bin_20190522.zip',
'liblibXpm' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_libXpm-3.5.12-bin_20190522.zip',
'liblibxslt' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_libxslt-1.1.33-bin_20190522.zip',
'libwebp' => '<package_url>/kmx/64_libs/gcc83-2020Q3/64bit_libwebp-1.1.0-bin_20200712.zip',
'mpc' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_mpc-1.1.0-bin_20190522.zip',
'mpfr' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_mpfr-4.0.2-bin_20190522.zip',
'openssl' => '<package_url>/kmx/64_libs/gcc83-2020Q3/64bit_openssl-1.1.1g-bin_20200712.zip',
'postgresql' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_postgresql-11.3-bin_20190522.zip',
'readline' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_readline-8.0-bin_20190522.zip',
't1lib' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_t1lib-5.1.2-bin_20190522.zip',
'termcap' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_termcap-1.3.1-bin_20190522.zip',
'tiff' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_tiff-4.0.10-bin_20190522.zip',
'xz' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_xz-5.2.4-bin_20190522.zip',
'zlib' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_zlib-1.2.11-bin_20190522.zip',
#special cases
'libmysql' => '<package_url>/kmx/64_libs/gcc71-2017Q2/64bit_mysql-5.7.16-bin_20170517.zip',
},
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::FilesAndDirs',
commands => [
{ do=>'removefile', args=>[ '<image_dir>/c/i686-w64-mingw32/lib/libglut.a', '<image_dir>/c/i686-w64-mingw32/lib/libglut32.a' ] }, #XXX-32bit only workaround
{ do=>'movefile', args=>[ '<image_dir>/c/lib/libdb-6.1.a', '<image_dir>/c/lib/libdb.a' ] }, #XXX ugly hack
{ do=>'removefile', args=>[ '<image_dir>/c/bin/gccbug', '<image_dir>/c/bin/ld.gold.exe', '<image_dir>/c/bin/ld.bfd.exe' ] },
{ do=>'removefile_recursive', args=>[ '<image_dir>/c', qr/.+\.la$/i ] }, # https://rt.cpan.org/Public/Bug/Display.html?id=127184
],
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::InstallPerlCore',
url => 'http://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/perl-5.32.0.tar.gz',
cf_email => 'strawberry-perl@project', #IMPORTANT: keep 'strawberry-perl' before @
perl_debug => 0, # can be overridden by --perl_debug=N option
perl_64bitint => 1, # ignored on 64bit, can be overridden by --perl_64bitint | --noperl_64bitint option
buildoptextra => '-D__USE_MINGW_ANSI_STDIO',
patch => { #DST paths are relative to the perl src root
'<dist_sharedir>/msi/files/perlexe.ico' => 'win32/perlexe.ico',
'<dist_sharedir>/perl-5.32/win32_config.gc.tt' => 'win32/config.gc',
'<dist_sharedir>/perl-5.32/perlexe.rc.tt' => 'win32/perlexe.rc',
'<dist_sharedir>/perl-5.32/win32_config_H.gc' => 'win32/config_H.gc', # enables gdbm/ndbm/odbm
'<dist_sharedir>/perl-5.32/win32_FindExt.pm' => 'win32/FindExt.pm',
},
license => { #SRC paths are relative to the perl src root
'Readme' => '<image_dir>/licenses/perl/Readme',
'Artistic' => '<image_dir>/licenses/perl/Artistic',
'Copying' => '<image_dir>/licenses/perl/Copying',
},
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::UpgradeCpanModules',
exceptions => [
# possible 'do' options: ignore_testfailure | skiptest | skip - e.g.
#{ do=>'ignore_testfailure', distribution=>'ExtUtils-MakeMaker-6.72' },
#{ do=>'ignore_testfailure', distribution=>qr/^IPC-Cmd-/ },
{ do=>'ignore_testfailure', distribution=>qr/^Net-Ping-/ }, # 2.72 fails
]
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::InstallModules',
modules => [
{ module=>'Capture::Tiny', ignore_testfailure=>1 }, #XXX-TODO https://github.com/dagolden/Capture-Tiny/issues/29
{ module=>'Path::Tiny', ignore_testfailure=>1 }, #XXX-TODO 5.30 t/zzz-spec.t fails https://github.com/dagolden/Path-Tiny/issues/228
'TAP::Harness::Restricted', #to be able to skip only some tests
# IPC related
{ module=>'IPC-Run', skiptest=>1 }, #XXX-TODO trouble with 'Terminating on signal SIGBREAK(21)' https://metacpan.org/release/IPC-Run
{ module=>'IPC-System-Simple', ignore_testfailure=>1 }, #XXX-TODO t/07_taint.t fails https://metacpan.org/release/IPC-System-Simple
qw/ IPC-Run3 /,
{ module=>'LWP::UserAgent', skiptest=>1 }, # XXX-HACK: 6.08 is broken
# install cpanm as soon as possible
qw/ App::cpanminus /,
# gdbm / db related
qw/ BerkeleyDB DB_File DBM-Deep /,
#removed from core in 5.20
qw/ Module::Build /,
{ module=>'B::Lint', ignore_testfailure=>1 }, #XXX-TODO https://rt.cpan.org/Public/Bug/Display.html?id=101115
{ module=>'Archive::Extract', ignore_testfailure=>1 }, #XXX-TODO-5.28/64bit
{ module=>'CPANPLUS', env=>{ 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', 'HARNESS_SKIP'=>'t/40_CPANPLUS-Internals-Report.t' } },
#XXX-TODO https://rt.cpan.org/Public/Bug/Display.html?id=116479
qw/ CPANPLUS::Dist::Build File::CheckTree Log::Message Module::Pluggable Object::Accessor Text::Soundex Term::UI Pod::LaTeX Tree::DAG_Node /,
# YAML, JSON & co.
qw/ JSON Cpanel::JSON::XS JSON::XS JSON::MaybeXS YAML YAML::Tiny YAML::XS /,
# pkg-config related
{ module=>'PkgConfig', makefilepl_param=>'--script=pkg-config' },
'ExtUtils::PkgConfig',
# win32 related
qw/Win32API::Registry Win32::TieRegistry/,
{ module=>'Win32::OLE', ignore_testfailure=>1 }, #XXX-TODO: ! Testing Win32-OLE-0.1711 failed
{ module=>'Win32::GuiTest', skiptest=>1 },
{ module=>'Win32::API', ignore_testfailure=>1 }, #XXX-TODO: https://rt.cpan.org/Public/Bug/Display.html?id=107450
'Win32::Exe',
{ module=>'<package_url>/kmx/perl-modules-patched/Win32-Pipe-0.025_patched.tar.gz' }, #XXX-FIXME
qw/ Win32-Daemon Win32-EventLog Win32-Process Win32-WinError Win32-File-Object Win32-UTCFileTime /,
qw/ Win32-ShellQuote Win32::Console Win32::Console::ANSI Win32::Job Win32::ServiceManager Win32::Service Win32::Clipboard /,
{ module=>'<package_url>/kmx/perl-modules-patched/Win32-SerialPort-0.22_patched.tar.gz', skiptest=>1 },
qw/ Sys::Syslog /,
# term related
{ module=>'Term::ReadKey', ignore_testfailure=>1 },
{ module=>'Term::ReadLine::Perl', env=>{ PERL_MM_NONINTERACTIVE=>1 } },
# compression
{ module=>'Archive::Zip', ignore_testfailure=>1 }, #XXX-TODO t/25_traversal.t
qw/ IO-Compress-Lzma Compress-unLZMA Archive::Extract /,
# file related
{ module=>'File-ShareDir-Install', ignore_testfailure=>1 }, #XXX-TODO-5.28
{ module=>'File::Copy::Recursive', ignore_testfailure=>1 }, #XXX-TODO-5.28
qw/ File-Find-Rule File-HomeDir File-Listing File-Remove File-ShareDir File-Which File::Map /,
{ module=>'File::Slurp', ignore_testfailure=>1 },
qw/ File::Slurper /,
qw/ IO::All Path::Tiny Path::Class /,
# math related
'Devel::CheckLib', #this used to fail
qw/ Math-Round Math-BigInt-GMP Math-GMP Math-MPFR Math-MPC /,
qw/ ExtUtils::F77 /,
# SSL & SSH & telnet
{ module=>'Net-SSLeay', ignore_testfailure=>1 }, # openssl-1.1.1 related
'Mozilla::CA', # optional dependency of IO-Socket-SSL
{ module=>'IO-Socket-SSL', skiptest=>1, env=>{ 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', 'HARNESS_SKIP'=>'t/nonblock.t t/mitm.t t/verify_fingerprint.t t/session_ticket.t t/sni_verify.t' } },
qw/ Net-SSH2 Net::Telnet /,
# network
qw/ IO::Socket::IP IO::Socket::INET6 IO::Socket::Socks /,
# EV4.32 + perl-5.30 fails XXX-FIXME
qw/ HTTP-Server-Simple /,
qw/ LWP::UserAgent /,
{ module=>'LWP::Protocol::https', env=>{ 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', 'HARNESS_SKIP'=>'t/https_proxy.t' } }, #https://rt.perl.org/Ticket/Display.html?id=132863
{ module=>'<package_url>/kmx/perl-modules-patched/Crypt-SSLeay-0.72_patched.tar.gz' }, #XXX-FIXME
{ module=>'Mojolicious', env=>{ 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', 'HARNESS_SKIP'=>'t/mojolicious/websocket_lite_app.t' } }, #https://github.com/kraih/mojo/issues/1011
{ module=>'WWW::Mechanize', skiptest=>1 }, # tests hang
# XML & co.
qw/ XML-LibXML XML-LibXSLT XML-Parser XML-SAX XML-Simple /,
{ module=>'XML::Twig', ignore_testfailure=>1 }, #XXX-TODO XML-Twig-3.52 fails
# data/text processing
{ module=>'IO::Stringy', env=>{ 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', 'HARNESS_SKIP'=>'t/IO_InnerFile.t' } }, #https://rt.cpan.org/Public/Bug/Display.html?id=103895
qw/ Text-Diff Text-Patch Text::CSV Text::CSV_XS Tie::Array::CSV Excel::Writer::XLSX Spreadsheet::ParseXLSX Spreadsheet::WriteExcel Spreadsheet::ParseExcel /,
# database stuff
qw/ DBI DBD-ODBC DBD-SQLite DBD-CSV DBD-ADO DBIx-Class DBIx-Simple /,
'https://cpan.metacpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.8.0.tar.gz', ###{ module=>'DBD::Pg' },
{ module=>'DBD::mysql' },
{ module=>'DBD::Oracle', makefilepl_param=>'-V 12.2.0.1.0', env=>{ ORACLE_HOME=>'c:\ora122instant64' }, skiptest=>1 }, ## requires Oracle Instant Client 64bit!!!
# crypto related
{ module =>'Convert-PEM', ignore_testfailure=>1 }, #XXX-TODO Convert-PEM-0.08 fails
qw/ Convert-PEM /,
# crypto
qw/ CryptX Crypt::OpenSSL::Bignum Crypt::OpenSSL::DSA Crypt-OpenSSL-RSA Crypt-OpenSSL-Random Crypt-OpenSSL-X509 /,
'KMX/Crypt-OpenSSL-AES-0.05.tar.gz', #XXX-FIXME patched https://metacpan.org/pod/Crypt::OpenSSL::AES https://rt.cpan.org/Public/Bug/Display.html?id=77605
#Crypt-SMIME ?
qw/ Crypt::CBC Crypt::Blowfish Crypt::CAST5_PP Crypt::DES Crypt::DES_EDE3 Crypt::DSA Crypt::IDEA Crypt::Rijndael Crypt::Twofish Crypt::Serpent Crypt::RC6 /,
qw/ Digest-MD2 Digest-MD5 Digest-SHA Digest-SHA1 Crypt::RIPEMD160 Digest::Whirlpool Digest::HMAC Digest::CMAC /,
'Alt::Crypt::RSA::BigInt', #hack Crypt-RSA without Math::PARI - https://metacpan.org/release/Crypt-RSA
qw/ Crypt-DSA Crypt::DSA::GMP /,
qw/ Bytes::Random::Secure Crypt::OpenPGP /,
#qw/ Module::Signature /, #XXX-TODO still not able to properly handle CRLF - https://metacpan.org/release/Module-Signature
# date/time
{ module=>'Test2::Plugin::NoWarnings', ignore_testfailure=>1 }, #otherwise DateTime fails
qw/ DateTime Date::Format DateTime::Format::DateParse DateTime::TimeZone::Local::Win32 Time::Moment /,
# e-mail
qw/ List::MoreUtils::XS List::MoreUtils /, # required by Net::IMAP::Client - https://rt.cpan.org/Public/Bug/Display.html?id=122875
qw/ Email::MIME::Kit Email::Sender Email::Simple Email::Valid Email::Stuffer Mail::Send /,
qw/ Net::SMTPS Net::SMTP Net::IMAP::Client Net::POP3 /,
{ module=>'Net::DNS', skiptest=>1 }, # tests might hang due to network issues
# graphics
'GD',
##{ module=>'http://chorny.net/strawberry/Imager-1.006.zip', ignore_testfailure=>1 }, #https://rt.cpan.org/Ticket/Display.html?id=124001
{ module=>'Imager', ignore_testfailure=>1 }, #https://rt.cpan.org/Ticket/Display.html?id=124001
qw/ Imager-File-GIF Imager-File-JPEG Imager-File-PNG Imager-File-TIFF Imager-Font-FT2 Imager-Font-W32 /,
{ module=>'OpenGL', ignore_testfailure=>1 },
# XML/SOAP webservices
'Log::Report',
qw/ SOAP-Lite /,
#qw/ XML::Compile::SOAP12 XML::Compile::SOAP11 XML::Compile::WSDL11 /,
# utils
qw/ App::cpanoutdated App::pmuninstall pler App-module-version App-local-lib-Win32Helper /,
# par & ppm
qw/ PAR PAR::Dist::FromPPD PAR::Dist::InstallPPD PAR::Repository::Client /,
# The build path in ppm.xml is derived from $ENV{TMP}. So set TMP to a dedicated location inside of the
# distribution root to prevent it being locked to the temp directory of the build machine.
{ module=>'<package_url>/kmx/perl-modules-patched/PPM-11.11_04.tar.gz', env=>{ TMP=>'<image_dir>\ppm' } }, #XXX-FIXME
# exceptions
qw/ Try-Tiny Carp::Always autodie /,
# templates
{ module=>'Template', env=>{ 'HARNESS_SUBCLASS'=>'TAP::Harness::Restricted', 'HARNESS_SKIP'=>'t/process_dir.t' } }, #XXX-NEW 5.26.0 https://github.com/abw/Template2/pull/67
qw/ Template-Tiny /,
# OO - moose, moo & co.
qw/ Moose MooseX-Types MooseX::Types::Structured /,
{ module=>'MooseX::Declare', ignore_testfailure=>1 }, #XXX-PREREQ-ONLY https://rt.cpan.org/Public/Bug/Display.html?id=97690
qw/ MooseX::ClassAttribute MooseX::Role::Parameterized MooseX::NonMoose Moo /,
# OO - others
qw/ Class::Accessor Class::Accessor::Lite Class::XSAccessor Class::Tiny Object::Tiny /,
# dumpers
qw/ Data::Dump Data::Printer /,
{ module=>'Data-Dump-Streamer', ignore_testfailure=>1 }, #XXX-TODO ! Testing Data-Dump-Streamer-2.37 failed
# misc
#{ module=>'Alien::Tidyp', buildpl_param=>'--srctarball=http://strawberryperl.com/package/kmx/testing/tidyp-1.04.tar.gz' }, #gcc 8.3 failure
qw/ CPAN::SQLite FCGI /,
qw/ IO::String /,
{ module=>'Unicode::UTF8', ignore_testfailure=>1 }, #XXX-TODO-5.28
qw/ V Modern::Perl Perl::Tidy /,
qw/ FFI::Raw FFI::Platypus /,
qw/ PadWalker Devel::vscode /,
# GUI - not yet
#qw/IUP/,
],
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::FixShebang',
shebang => '#!perl',
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::FilesAndDirs',
commands => [
# directories
{ do=>'createdir', args=>[ '<image_dir>/cpan' ] },
{ do=>'createdir', args=>[ '<image_dir>/cpan/sources' ] },
{ do=>'createdir', args=>[ '<image_dir>/win32' ] },
# templated files
{ do=>'apply_tt', args=>[ '<dist_sharedir>/config-files/CPAN_Config.pm.tt', '<image_dir>/perl/lib/CPAN/Config.pm', {}, 1 ] }, #XXX-temporary empty tt_vars, no_backup=1
{ do=>'apply_tt', args=>[ '<dist_sharedir>/extra-files/README.txt.tt', '<image_dir>/README.txt' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/extra-files/DISTRIBUTIONS.txt.tt', '<image_dir>/DISTRIBUTIONS.txt' ] },
# fixed files
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/licenses/License.rtf', '<image_dir>/licenses/License.rtf' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/relocation.pl.bat', '<image_dir>/relocation.pl.bat' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/update_env.pl.bat', '<image_dir>/update_env.pl.bat' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/win32/cpan.ico', '<image_dir>/win32/cpan.ico' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/win32/onion.ico', '<image_dir>/win32/onion.ico' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/win32/perldoc.ico', '<image_dir>/win32/perldoc.ico' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/win32/perlhelp.ico', '<image_dir>/win32/perlhelp.ico' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/win32/strawberry.ico', '<image_dir>/win32/strawberry.ico' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/win32/win32.ico', '<image_dir>/win32/win32.ico' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/extra-files/win32/metacpan.ico', '<image_dir>/win32/metacpan.ico' ] },
# URLs
{ do=>'apply_tt', args=>[ '<dist_sharedir>/extra-files/win32/CPAN Module Search.url.tt', '<image_dir>/win32/CPAN Module Search.url' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/extra-files/win32/MetaCPAN Search Engine.url.tt', '<image_dir>/win32/MetaCPAN Search Engine.url' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/extra-files/win32/Learning Perl (tutorials, examples).url.tt', '<image_dir>/win32/Learning Perl (tutorials, examples).url' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/extra-files/win32/Live Support (chat).url.tt', '<image_dir>/win32/Live Support (chat).url' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/extra-files/win32/Perl Documentation.url.tt', '<image_dir>/win32/Perl Documentation.url' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/extra-files/win32/Strawberry Perl Release Notes.url.tt', '<image_dir>/win32/Strawberry Perl Release Notes.url' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/extra-files/win32/Strawberry Perl Website.url.tt', '<image_dir>/win32/Strawberry Perl Website.url' ] },
# cleanup (remove unwanted files/dirs)
{ do=>'removefile', args=>[ '<image_dir>/perl/vendor/lib/Crypt/._test.pl', '<image_dir>/perl/vendor/lib/DBD/testme.tmp.pl' ] },
{ do=>'removefile', args=>[ '<image_dir>/perl/bin/nssm_32.exe.bat', '<image_dir>/perl/bin/nssm_64.exe.bat' ] },
{ do=>'removefile_recursive', args=>[ '<image_dir>/perl', qr/.+\.dll\.AA[A-Z]$/i ] },
{ do=>'removedir', args=>[ '<image_dir>/perl/bin/freeglut.dll' ] }, #XXX OpenGL garbage
# cleanup cpanm related files
{ do=>'removedir', args=>[ '<image_dir>/perl/site/lib/MSWin32-x86-multi-thread-64int' ] },
{ do=>'removedir', args=>[ '<image_dir>/perl/site/lib/MSWin32-x86-multi-thread' ] },
{ do=>'removedir', args=>[ '<image_dir>/perl/site/lib/MSWin32-x64-multi-thread' ] },
],
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::CreateRelocationFile',
reloc_in => '<dist_sharedir>/relocation/relocation.txt.initial',
reloc_out => '<image_dir>/relocation.txt',
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::OutputZIP', # no options needed
},
### NEXT STEP ###########################
{
disable => $ENV{SKIP_MSI_STEP}, ### hack
plugin => 'Perl::Dist::Strawberry::Step::OutputMSI',
exclude => [
#'dirname\subdir1\subdir2',
#'dirname\file.pm',
'relocation.pl.bat',
'update_env.pl.bat',
],
msi_upgrade_code => 'DBA41113-4E91-3FFC-B400-573BB4B80705', #BEWARE: fixed value for all 64bit releases (for ever)
app_publisher => 'strawberryperl.com project',
url_about => 'http://strawberryperl.com/',
url_help => 'http://strawberryperl.com/support.html',
msi_root_dir => 'Strawberry',
msi_main_icon => '<dist_sharedir>\msi\files\strawberry.ico',
msi_license_rtf => '<dist_sharedir>\msi\files\License-short.rtf',
msi_dialog_bmp => '<dist_sharedir>\msi\files\StrawberryDialog.bmp',
msi_banner_bmp => '<dist_sharedir>\msi\files\StrawberryBanner.bmp',
msi_debug => 0,
start_menu => [ # if "description" is missing it will be set to the same value as "name"
{ type=>'shortcut', name=>'Perl (command line)', icon=>'<dist_sharedir>\msi\files\perlexe.ico', description=>'Quick way to get to the command line in order to use Perl', target=>'[SystemFolder]cmd.exe', workingdir=>'PersonalFolder' },
{ type=>'shortcut', name=>'Strawberry Perl Release Notes', icon=>'<dist_sharedir>\msi\files\strawberry.ico', target=>'[d_win32]Strawberry Perl Release Notes.url', workingdir=>'d_win32' },
{ type=>'shortcut', name=>'Strawberry Perl README', target=>'[INSTALLDIR]README.txt', workingdir=>'INSTALLDIR' },
{ type=>'folder', name=>'Tools', members=>[
{ type=>'shortcut', name=>'CPAN Client', icon=>'<dist_sharedir>\msi\files\cpan.ico', target=>'[d_perl_bin]cpan.bat', workingdir=>'d_perl_bin' },
{ type=>'shortcut', name=>'Create local library areas', icon=>'<dist_sharedir>\msi\files\strawberry.ico', target=>'[d_perl_bin]llw32helper.bat', workingdir=>'d_perl_bin' },
] },
{ type=>'folder', name=>'Related Websites', members=>[
{ type=>'shortcut', name=>'CPAN Module Search', icon=>'<dist_sharedir>\msi\files\cpan.ico', target=>'[d_win32]CPAN Module Search.url', workingdir=>'d_win32' },
{ type=>'shortcut', name=>'MetaCPAN Search Engine', icon=>'<dist_sharedir>\msi\files\metacpan.ico', target=>'[d_win32]MetaCPAN Search Engine.url', workingdir=>'d_win32' },
{ type=>'shortcut', name=>'Perl Documentation', icon=>'<dist_sharedir>\msi\files\perldoc.ico', target=>'[d_win32]Perl Documentation.url', workingdir=>'d_win32' },
{ type=>'shortcut', name=>'Strawberry Perl Website', icon=>'<dist_sharedir>\msi\files\strawberry.ico', target=>'[d_win32]Strawberry Perl Website.url', workingdir=>'d_win32' },
{ type=>'shortcut', name=>'Learning Perl (tutorials, examples)', icon=>'<dist_sharedir>\msi\files\perldoc.ico', target=>'[d_win32]Learning Perl (tutorials, examples).url', workingdir=>'d_win32' },
{ type=>'shortcut', name=>'Live Support (chat)', icon=>'<dist_sharedir>\msi\files\onion.ico', target=>'[d_win32]Live Support (chat).url', workingdir=>'d_win32' },
] },
],
env => {
#TERM => "dumb",
},
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::InstallModules',
# modules specific to portable edition
modules => [ 'Portable' ],
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::SetupPortablePerl', # no options needed
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::FilesAndDirs',
commands => [ # files and dirs specific to portable edition
{ do=>'removefile', args=>[ '<image_dir>/README.txt', '<image_dir>/perl2.reloc.txt', '<image_dir>/perl1.reloc.txt', '<image_dir>/relocation.txt',
'<image_dir>/update_env.pl.bat', '<image_dir>/relocation.pl.bat' ] },
{ do=>'createdir', args=>[ '<image_dir>/data' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/portable/portable.perl.tt', '<image_dir>/portable.perl', {gcchost=>'x86_64-w64-mingw32', gccver=>'8.3.0'} ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/portable/portableshell.bat', '<image_dir>/portableshell.bat' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/portable/README.portable.txt.tt', '<image_dir>/README.txt' ] },
# cleanup cpanm related files
{ do=>'removedir', args=>[ '<image_dir>/perl/site/lib/MSWin32-x86-multi-thread-64int' ] },
{ do=>'removedir', args=>[ '<image_dir>/perl/site/lib/MSWin32-x86-multi-thread' ] },
{ do=>'removedir', args=>[ '<image_dir>/perl/site/lib/MSWin32-x64-multi-thread' ] },
],
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::OutputPortableZIP', # no options needed
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::CreateReleaseNotes', # no options needed
},
### NEXT STEP ###########################
{
disable => $ENV{SKIP_PDL_STEP}, ### hack
plugin => 'Perl::Dist::Strawberry::Step::BinaryToolsAndLibs',
install_packages => {
'cfitsio' => '<package_url>/kmx/64_libs/gcc83-2020Q3/64bit_cfitsio-3.48-bin_20200712.zip',
'fftw3' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_fftw-3.3.8-bin_20190522.zip',
'gnuplot' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_gnuplot-5.2.6-bin_20190522.zip',
'gsl' => '<package_url>/kmx/64_libs/gcc83-2020Q1/64bit_gsl-2.6-bin_20200207.zip',
'hdf4' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_hdf-4.2.14-bin_20190522.zip',
'hdf5' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_hdf5-1.10.5-bin_20190522.zip',
'plplot' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_plplot-5.14.0-bin_20190522.zip',
'proj' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_proj-5.2.0-bin_20190522.zip',
'szip' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_szip-2.1.1-bin_20190522.zip',
'talib' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_ta-lib-0.4.0-bin_20190522.zip',
'netcdf' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_netcdf-c-4.6.3-bin_20190522.zip',
'lapack' => '<package_url>/kmx/64_libs/gcc83-2019Q2/64bit_lapack-3.8.0-bin_20190522.zip',
},
},
### NEXT STEP ###########################
{
disable => $ENV{SKIP_PDL_STEP}, ### hack
plugin => 'Perl::Dist::Strawberry::Step::InstallModules',
# modules specific to PDL edition
modules => [
{ module => 'File::Next', ignore_testfailure => 1 }, #XXX-TODO-5.28 / PREREQ-ONLY
{ module => 'Devel::REPL', ignore_testfailure => 1 },
qw/Lexical::Persistence Astro::FITS::Header Astro::FITS::CFITSIO/,
{ module => 'Inline::C', ignore_testfailure => 1 },
{ module => 'Module::Compile', ignore_testfailure => 1 }, #XXX-TODO-5.28 / PREREQ-ONLY
{ module => 'PDL',
#makefilepl_param => 'PDLCONF=<dist_sharedir>\pdl\perldl2.conf',
ignore_testfailure => 1,
env => {
PLPLOT_LIB => '<image_dir>\c\share\plplot',
PLPLOT_DRV_DIR => '<image_dir>\c\share\plplot',
},
},
qw/ PDL::IO::CSV PDL::IO::DBI PDL::DateTime PDL::Stats /, # PDL::IO::Image
qw/ PDL::LinearAlgebra /,
##{ module=>'PDL::Graphics::Gnuplot', skiptest=>1 },
##{ module=>'PDL::Graphics::Prima', ignore_testfailure => 1 }, # does not compile with 5.30.1 XXX-FIXME
],
},
### NEXT STEP ###########################
{
disable => $ENV{SKIP_PDL_STEP}, ### hack
plugin => 'Perl::Dist::Strawberry::Step::FilesAndDirs',
commands => [ # files and dirs specific to portable edition
{ do=>'removefile', args=>[ '<image_dir>/README.txt', '<image_dir>/portableshell.bat' ] },
{ do=>'copyfile', args=>[ '<dist_sharedir>/portable/portableshell.pdl.bat', '<image_dir>/portableshell.bat' ] },
{ do=>'apply_tt', args=>[ '<dist_sharedir>/portable/README.pdl.txt.tt', '<image_dir>/README.txt' ] },
# cleanup (remove unwanted files/dirs)
{ do=>'removefile_recursive', args=>[ '<image_dir>/perl', qr/.+\.dll\.AA[A-Z]$/i ] },
# cleanup cpanm related files
{ do=>'removedir', args=>[ '<image_dir>/data/.cpanm' ] },
{ do=>'removedir', args=>[ '<image_dir>/perl/site/lib/MSWin32-x86-multi-thread-64int' ] },
{ do=>'removedir', args=>[ '<image_dir>/perl/site/lib/MSWin32-x86-multi-thread' ] },
{ do=>'removedir', args=>[ '<image_dir>/perl/site/lib/MSWin32-x64-multi-thread' ] },
],
},
### NEXT STEP ###########################
{
disable => $ENV{SKIP_PDL_STEP}, ### hack
plugin => 'Perl::Dist::Strawberry::Step::OutputPdlZIP', # no options needed
},
### NEXT STEP ###########################
{
plugin => 'Perl::Dist::Strawberry::Step::OutputLogZIP', # no options needed
},
],
}