### job description for building strawberry perl #Available '<..>' macros: # is placeholder for http://strawberryperl.com/package # is placeholder for Perl::Dist::Strawberry's distribution sharedir # is placeholder for c:\strawberry { app_version => '5.18.2.2', #BEWARE: do not use '.0.0' in the last two version digits bits => 32, beta => 0, app_fullname => 'Strawberry Perl', app_simplename => 'strawberry-perl', build_job_steps => [ ### NEXT STEP ########################### { plugin => 'Perl::Dist::Strawberry::Step::BinaryToolsAndLibs', install_packages => { #tools 'dmake' => '/kmx/32_tools/32bit_dmake-SVN20091127-bin_20111107.zip', 'mingw-make' => '/kmx/32_tools/32bit_gmake-3.82-bin_20110503.zip', 'pexports' => '/kmx/32_tools/32bit_pexports-0.44-bin_20100110.zip', 'patch' => '/kmx/32_tools/32bit_patch-2.5.9-7-bin_20100110_UAC.zip', 'gendef' => '/kmx/32_tools/32bit_gendef-rev4724-bin_20120411.zip', #gcc & co. 'gcc-toolchain' => { url=>'/kmx/32_gcctoolchain/mingw64-w32-gcc4.7.3_20130526.zip', install_to=>'c' }, 'gcc-license' => '/kmx/32_gcctoolchain/mingw64-w32-gcc4.7.3_20130526-lic.zip', 'gfortran' => '/kmx/32_gcctoolchain/mingw64-w32-gfortran4.7.3_20130526.zip', #libs 'libdb' => '/kmx/32_libs/gcc47-2014Q1/32bit_db-6.0.30-bin_20140416.zip', 'libexpat' => '/kmx/32_libs/gcc47-2014Q1/32bit_expat-2.1.0-bin_20140416.zip', 'libfreeglut' => '/kmx/32_libs/gcc47-2014Q1/32bit_freeglut-2.8.1-bin_20140416.zip', 'libfreetype' => '/kmx/32_libs/gcc47-2014Q1/32bit_freetype-2.5.3-bin_20140416.zip', 'libgdbm' => '/kmx/32_libs/gcc47-2014Q1/32bit_gdbm-1.10-bin_20140416.zip', 'libgiflib' => '/kmx/32_libs/gcc47-2014Q1/32bit_giflib-5.0.5-bin_20140416.zip', 'libgmp' => '/kmx/32_libs/gcc47-2014Q1/32bit_gmp-5.1.3-bin_20140416.zip', 'libjpeg' => '/kmx/32_libs/gcc47-2014Q1/32bit_jpeg-9a-bin_20140416.zip', 'libgd' => '/kmx/32_libs/gcc47-2014Q1/32bit_libgd-2.1.0-bin_20140416.zip', 'liblibXpm' => '/kmx/32_libs/gcc47-2014Q1/32bit_libXpm-3.5.11-bin_20140416.zip', 'liblibiconv' => '/kmx/32_libs/gcc47-2014Q1/32bit_libiconv-1.14-bin_20140416.zip', 'liblibpng' => '/kmx/32_libs/gcc47-2014Q1/32bit_libpng-1.6.10-bin_20140416.zip', 'liblibssh2' => '/kmx/32_libs/gcc47-2014Q1/32bit_libssh2-1.4.3-bin_20140416.zip', 'liblibxml2' => '/kmx/32_libs/gcc47-2014Q1/32bit_libxml2-2.9.1-bin_20140416.zip', 'liblibxslt' => '/kmx/32_libs/gcc47-2014Q1/32bit_libxslt-1.1.28-bin_20140416.zip', 'libmpc' => '/kmx/32_libs/gcc47-2014Q1/32bit_mpc-1.0.2-bin_20140416.zip', 'libmpfr' => '/kmx/32_libs/gcc47-2014Q1/32bit_mpfr-3.1.2-bin_20140416.zip', 'libopenssl' => '/kmx/32_libs/gcc47-2014Q1/32bit_openssl-1.0.1g-bin_20140416.zip', 'libpostgresql' => '/kmx/32_libs/gcc47-2014Q1/32bit_postgresql-9.3.4-bin_20140416.zip', 'libt1lib' => '/kmx/32_libs/gcc47-2014Q1/32bit_t1lib-5.1.2-bin_20140416.zip', 'libtiff' => '/kmx/32_libs/gcc47-2014Q1/32bit_tiff-4.0.3-bin_20140416.zip', 'libxz' => '/kmx/32_libs/gcc47-2014Q1/32bit_xz-5.0.5-bin_20140416.zip', 'libzlib' => '/kmx/32_libs/gcc47-2014Q1/32bit_zlib-1.2.8-bin_20140416.zip', #special cases 'pthreads' => '/kmx/32_libs/gcc47-2013Q3/32bit_pthreads-2.10.0-bin_20130526.zip', # built together with gcc toolchain 'libmysql' => '/kmx/32_libs/gcc44-2011/32bit_mysql-5.1.44-bin_20100304.zip', # the latest DLL binary is missing some exports }, }, ### NEXT STEP ########################### { plugin => 'Perl::Dist::Strawberry::Step::InstallPerlCore', url => 'http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/perl-5.18.2.tar.bz2', cf_email => 'strawberry-perl@project', #IMPORTANT: keep 'strawberry-perl' before @ perl_debug => 0, perl_64bitint => 1, #buildoptextra => '-D__USE_MINGW_ANSI_STDIO', patch => { #DST paths are relative to the perl src root '/perl-5.18/win32_config.gc.tt' => 'win32/config.gc', ### decoration '/msi/files/perlexe.ico' => 'win32/perlexe.ico', '/perl-5.18/perlexe.rc.tt' => 'win32/perlexe.rc', ### GDBM & co. '/perl-5.18/win32_config_H.gc' => 'win32/config_H.gc', # enables gdbm/ndbm/odbm '/perl-5.18/win32_FindExt.pm' => 'win32/FindExt.pm', '/perl-5.18/NDBM_MSWin32.pl' => 'ext/NDBM_File/hints/MSWin32.pl', '/perl-5.18/ODBM_MSWin32.pl' => 'ext/ODBM_File/hints/MSWin32.pl', }, license => { #SRC paths are relative to the perl src root 'Readme' => '/licenses/perl/Readme', 'Artistic' => '/licenses/perl/Artistic', 'Copying' => '/licenses/perl/Copying', }, }, ### NEXT STEP ########################### ## { ## plugin => 'Perl::Dist::Strawberry::Step::InstallModules', ## modules => [ ## # here is a place to (re)install/(up/down)grade modules needed before 'Perl::Dist::Strawberry::Step::UpgradeCpanModules' ## # e.g. { install_to=>'perl', module=>'Module::Name' }, ## ], ## }, ### NEXT STEP ########################### { plugin => 'Perl::Dist::Strawberry::Step::UpgradeCpanModules', exceptions => [ # possible 'do' options: ignore_testfailure | skiptest | skip { do=>'ignore_testfailure', distribution=>'IPC-Cmd-0.92' }, ] }, ### NEXT STEP ########################### { plugin => 'Perl::Dist::Strawberry::Step::InstallModules', modules => [ # IPC related { module=>'IPC-Run', skiptest=>1 }, #XXX-FIXME trouble with 'Terminating on signal SIGBREAK(21)' qw/ IPC-Run3 IPC-System-Simple /, # term related '/kmx/perl-modules-patched/TermReadKey-2.31_patched.tar.gz', # special version needed XXX-report a bug https://metacpan.org/pod/Term::ReadKey { module=>'Term::ReadLine::Perl', env=>{ PERL_MM_NONINTERACTIVE=>1 } }, # compression { module=>'Archive-Zip', ignore_testfailure=>1 }, #XXX-TODO: Archive-Zip-1.33 test FAILS qw/ IO-Compress-Lzma Compress-unLZMA /, #XXX-HACK { module=>'Test::Script', ignore_testfailure=>1 }, # file related { module=>'File-Slurp', ignore_testfailure=>1 }, #XXX-TODO: on 32bit OK qw/ File-Find-Rule File-HomeDir File-Listing File-Remove File-ShareDir File-Which File-Copy-Recursive /, # database stuff qw/ DBI DBD-ODBC DBD-SQLite DBIx-Simple /, { module=>'DBD-ADO', ignore_testfailure=>1 }, #XXX-TODO: DBD-ADO-2.99 test FAILS { module=>'DBD-Pg' }, { module=>'DBD-mysql', ignore_testfailure=>1, makefilepl_param=>'--mysql_config=mysql_config' }, #XXX-TODO: check test failures # math related qw/ Math-Round Math-BigInt-GMP Math-GMP Math-MPC Math-MPFR /, #qw/ Math-Pari /, #fails on 64bit # has to go before Module::Signature as it throws an error: Not trusting this module, aborting install qw/ HTTP-Server-Simple /, # win32 related { module=>'Win32API-Registry', ignore_testfailure=>1 }, #XXX-TODO: Win32API-Registry-0.32 test FAILS { module=>'Win32-TieRegistry', ignore_testfailure=>1 }, #XXX-TODO: Win32-TieRegistry-0.26 test FAILS { module=>'Win32-OLE', ignore_testfailure=>1 }, #XXX-TODO: test used to fail qw/ Win32-API Win32-EventLog Win32-Exe Win32-Process Win32-WinError Win32-File-Object Win32-UTCFileTime /, # crypto '/kmx/perl-modules-patched/Crypt-OpenSSL-Random-0.04_patched.tar.gz', #XXX-CHECK https://metacpan.org/pod/Crypt::OpenSSL::Random '/kmx/perl-modules-patched/Crypt-OpenSSL-Bignum-0.04_patched.tar.gz', #XXX-CHECK https://metacpan.org/pod/Crypt::OpenSSL::Bignum '/kmx/perl-modules-patched/Crypt-OpenSSL-AES-0.02_patched.tar.gz', #XXX-CHECK https://metacpan.org/pod/Crypt::OpenSSL::AES '/kmx/perl-modules-patched/Crypt-OpenSSL-DSA-0.14_patched.tar.gz', #XXX-CHECK https://metacpan.org/pod/Crypt::OpenSSL::DSA 'Crypt-OpenSSL-RSA', 'Alt::Crypt::RSA::BigInt', #XXX-TODO: a hack Crypt-RSA without Math::PARI # this is subset of modules we install on64bit qw/ Crypt::IDEA Crypt::Blowfish Crypt::Twofish Crypt::DES Crypt::DH /, qw/ Crypt::Rijndael Crypt::CAST5_PP Crypt::CBC Crypt::DES_EDE3 Crypt::DSA Crypt::RIPEMD160 /, { module =>'Convert-PEM', ignore_testfailure=>1 }, #XXX-TODO qw/ Class-Loader Convert-ASCII-Armor Sort-Versions Tie-EncryptedHash /, #qw/ Crypt::Random /, #fails on 64bit # tests fail on 5.18.x #{ module =>'Crypt::OpenPGP' }, #{ module =>'Module::Signature', ignore_testfailure=>1 }, # digests qw/ Digest-BubbleBabble Digest-HMAC Digest-MD2 Digest-SHA1 /, # SSL & SSH qw/ Net-SSLeay /, { module=>'IO-Socket-SSL', ignore_testfailure=>1 }, #XXX-TODO qw/ Net-SMTP-TLS Net-SSH2 /, { module =>'Crypt-SSLeay', ignore_testfailure=>1 }, # network qw/ LWP::UserAgent LWP-Protocol-https /, # graphics { module=>'GD', ignore_testfailure=>1 }, #XXX-TODO { module=>'Imager', ignore_testfailure=>1 }, #XXX-TODO qw/ Imager-File-GIF Imager-File-JPEG Imager-File-PNG Imager-File-TIFF Imager-Font-FT2 Imager-Font-W32 /, # XML & co. qw/ XML-LibXML XML-LibXSLT XML-Parser XML-SAX XML-Simple SOAP-Lite /, # YAML, JSON & co. qw/ JSON JSON-XS YAML YAML-Tiny YAML::XS /, #'YAML-Syck', #XXX-TODO: buggy therefore removed # dbm related qw/ BerkeleyDB DB_File DBM-Deep /, # utils qw/ pler App-local-lib-Win32Helper /, { module=>'pip', ignore_testfailure=>1 }, #XXX-TODO: test fails - The directory 'C:\strawberry\cpan\sources' does not exist # par & ppm &cpanm 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=>'/kmx/perl-modules-patched/PPM-11.11_03.tar.gz', env=>{ TMP=>'\ppm' } }, # tiny qw/ Capture-Tiny Try-Tiny Template-Tiny /, # misc qw/ CPAN::SQLite Alien-Tidyp FCGI Text-Diff Text-Patch /, qw/ IO::Stringy IO::String String-CRC32 Sub-Uplevel Convert-PEM/, # strawberry extras qw/ App-module-version /, # new modules added to 5.16 (added also to 5.14.3) qw/ ExtUtils::F77 /, qw/ Data::Dump Data::Printer /, qw/ Moose MooseX-Types MooseX::Types::Structured MooseX::Declare MooseX::ClassAttribute MooseX::Role::Parameterized MooseX::NonMoose Moo /, { module=>'IO::Socket::IP', ignore_testfailure=>1 }, #XXX-TODO test failures ipv6related - https://rt.cpan.org/Ticket/Display.html?id=83485 qw/ IO::Socket::INET6 /, qw/ WWW::Mechanize Net::Telnet Class::Accessor Date::Format /, { module=>'Template', ignore_testfailure=>1 }, #XXX-TODO qw/ App-cpanminus /, # trying to include some GUI tools #qw/IUP/, ], }, ### NEXT STEP ########################### ## { ## plugin => 'Perl::Dist::Strawberry::Step::UninstallModules', ## #modules => [ 'Alien-IUP' ], ## modules => [], ## }, ### NEXT STEP ########################### { plugin => 'Perl::Dist::Strawberry::Step::FixShebang', shebang => '#!perl', }, ### NEXT STEP ########################### { plugin => 'Perl::Dist::Strawberry::Step::FilesAndDirs', commands => [ # directories { do=>'createdir', args=>[ '/cpan' ] }, { do=>'createdir', args=>[ '/cpan/sources' ] }, { do=>'createdir', args=>[ '/win32' ] }, # templated files { do=>'apply_tt', args=>[ '/config-files/CPAN_Config.pm.tt', '/perl/lib/CPAN/Config.pm', {}, 1 ] }, #XXX-temporary empty tt_vars, no_backup=1 { do=>'apply_tt', args=>[ '/extra-files/README.txt.tt', '/README.txt' ] }, { do=>'apply_tt', args=>[ '/extra-files/DISTRIBUTIONS.txt.tt', '/DISTRIBUTIONS.txt' ] }, # fixed files { do=>'copyfile', args=>[ '/extra-files/licenses/License.rtf', '/licenses/License.rtf' ] }, { do=>'copyfile', args=>[ '/extra-files/relocation.pl.bat', '/relocation.pl.bat' ] }, { do=>'copyfile', args=>[ '/extra-files/update_env.pl.bat', '/update_env.pl.bat' ] }, { do=>'copyfile', args=>[ '/extra-files/win32/cpan.ico', '/win32/cpan.ico' ] }, { do=>'copyfile', args=>[ '/extra-files/win32/onion.ico', '/win32/onion.ico' ] }, { do=>'copyfile', args=>[ '/extra-files/win32/perldoc.ico', '/win32/perldoc.ico' ] }, { do=>'copyfile', args=>[ '/extra-files/win32/perlhelp.ico', '/win32/perlhelp.ico' ] }, { do=>'copyfile', args=>[ '/extra-files/win32/strawberry.ico', '/win32/strawberry.ico' ] }, { do=>'copyfile', args=>[ '/extra-files/win32/win32.ico', '/win32/win32.ico' ] }, { do=>'copyfile', args=>[ '/extra-files/win32/metacpan.ico', '/win32/metacpan.ico' ] }, # URLs { do=>'apply_tt', args=>[ '/extra-files/win32/CPAN Module Search.url.tt', '/win32/CPAN Module Search.url' ] }, { do=>'apply_tt', args=>[ '/extra-files/win32/MetaCPAN Search Engine.url.tt', '/win32/MetaCPAN Search Engine.url' ] }, { do=>'apply_tt', args=>[ '/extra-files/win32/Learning Perl (tutorials, examples).url.tt', '/win32/Learning Perl (tutorials, examples).url' ] }, { do=>'apply_tt', args=>[ '/extra-files/win32/Live Support (chat).url.tt', '/win32/Live Support (chat).url' ] }, { do=>'apply_tt', args=>[ '/extra-files/win32/Perl Documentation.url.tt', '/win32/Perl Documentation.url' ] }, { do=>'apply_tt', args=>[ '/extra-files/win32/Strawberry Perl Release Notes.url.tt', '/win32/Strawberry Perl Release Notes.url' ] }, { do=>'apply_tt', args=>[ '/extra-files/win32/Strawberry Perl Website.url.tt', '/win32/Strawberry Perl Website.url' ] }, # cleanup (remove unwanted files/dirs) { do=>'removefile', args=>[ '/c/bin/gccbug', '/perl/vendor/lib/Crypt/._test.pl', '/perl/vendor/lib/DBD/testme.tmp.pl' ] }, { do=>'removefile', args=>[ '/c/i686-w64-mingw32/lib/libglut.a', '/c/i686-w64-mingw32/lib/libglut32.a' ] }, #XXX-32bit only workaround { do=>'removefile_recursive', args=>[ '/perl', qr/.+\.dll\.AA[A-Z]$/i ] }, # cleanup cpanm related files { do=>'removedir', args=>[ '/perl/site/lib/MSWin32-x86-multi-thread-64int' ] }, { do=>'removedir', args=>[ '/perl/site/lib/MSWin32-x86-multi-thread' ] }, { do=>'removedir', args=>[ '/perl/site/lib/MSWin32-x64-multi-thread' ] }, ], }, ### NEXT STEP ########################### { plugin => 'Perl::Dist::Strawberry::Step::CreateRelocationFile', reloc1_in => '/relocation/perl1.reloc.txt.initial', reloc1_out => '/perl1.reloc.txt', reloc2_in => '/relocation/perl2.reloc.txt.initial', reloc2_out => '/perl2.reloc.txt', }, ### NEXT STEP ########################### { plugin => 'Perl::Dist::Strawberry::Step::OutputZIP', # no options needed }, ### NEXT STEP ########################### { plugin => 'Perl::Dist::Strawberry::Step::OutputMSM_MSI', exclude => [ # do not include neither to MSM nor to MSI #'dirname\subdir1\subdir2', #'dirname\file.pm', 'relocation.pl.bat', 'update_env.pl.bat', ], exclude_msm => [ # do not include these to MSM but to MSI #qr/^win32\\.*?\.url$/, 'win32', 'perl2.reloc.txt', 'README.txt' ], msi_upgrade_code => '45F906A2-F86E-335B-992F-990E8BEABC13', #BEWARE: fixed value for all 32bit releases (for ever) app_publisher => 'strawberryperl.com project', url_about => 'http://strawberryperl.com/', url_help => 'http://strawberryperl.com/support.html', msi_default_instdir => 'c:\strawberry', msi_main_icon => '\msi\files\strawberry.ico', msi_license_rtf => '\msi\files\License-short.rtf', msi_dialog_bmp => '\msi\files\StrawberryDialog.bmp', msi_banner_bmp => '\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=>'\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=>'\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=>'\msi\files\cpan.ico', target=>'[d_perl_bin.]cpan.bat', workingdir=>'d_perl_bin.' }, { type=>'shortcut', name=>'Create local library areas', icon=>'\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=>'\msi\files\cpan.ico', target=>'[d_win32]CPAN Module Search.url', workingdir=>'d_win32' }, { type=>'shortcut', name=>'MetaCPAN Search Engine', icon=>'\msi\files\metacpan.ico', target=>'[d_win32]MetaCPAN Search Engine.url', workingdir=>'d_win32' }, { type=>'shortcut', name=>'Perl Documentation', icon=>'\msi\files\perldoc.ico', target=>'[d_win32]Perl Documentation.url', workingdir=>'d_win32' }, { type=>'shortcut', name=>'Strawberry Perl Website', icon=>'\msi\files\strawberry.ico', target=>'[d_win32]Strawberry Perl Website.url', workingdir=>'d_win32' }, { type=>'shortcut', name=>'Learning Perl (tutorials, examples)', icon=>'\msi\files\perldoc.ico', target=>'[d_win32]Learning Perl (tutorials, examples).url', workingdir=>'d_win32' }, { type=>'shortcut', name=>'Live Support (chat)', icon=>'\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=>[ '/README.txt', '/perl2.reloc.txt', '/perl1.reloc.txt', '/relocation.txt', '/update_env.pl.bat', '/relocation.pl.bat' ] }, { do=>'createdir', args=>[ '/data' ] }, { do=>'copyfile', args=>[ '/portable/portable.perl.473.32', '/portable.perl' ] }, # take portable.perl.32 or portable.perl.64 { do=>'copyfile', args=>[ '/portable/portableshell.bat', '/portableshell.bat' ] }, { do=>'apply_tt', args=>[ '/portable/README.portable.txt.tt', '/README.portable.txt' ] }, # cleanup cpanm related files { do=>'removedir', args=>[ '/perl/site/lib/MSWin32-x86-multi-thread-64int' ] }, { do=>'removedir', args=>[ '/perl/site/lib/MSWin32-x86-multi-thread' ] }, { do=>'removedir', args=>[ '/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 ########################### { plugin => 'Perl::Dist::Strawberry::Step::OutputLogZIP', # no options needed }, ], }