/
perl@5.12.3.0+gcc.json
23 lines (23 loc) · 1.19 KB
/
perl@5.12.3.0+gcc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
"homepage": "http://strawberryperl.com",
"version": "5.12.3.0+gcc",
"license": "GPL",
// "architecture": {
// "32bit": {
"url": "http://strawberryperl.com/download/5.12.3.0/strawberry-perl-5.12.3.0-portable.zip",
"hash": "sha1:309ad7a9ba74614fcd0c65bff7ea4400c10fa92f",
// }
// },
"post_install": "
# enable idiomatic access to user's home directory
## remove HomeDir section from portable.perl (disables Portable.pm override of File::HomeDir)
## NOTE: conversion to byte[] (via char[]) avoids adding an extra trailing newline to the output file
[byte[]][char[]]((Get-Content -raw $dir\\portable.perl) -replace \"(?ms)^HomeDir:.*?^(?=\\S)\",\"\") | Set-Content $dir\\portable.perl -encoding byte
# rename any clashing executable
# * `pip` (from Perl Installation Program, if present); reserved for Python
Move-Item \"$dir\\perl\\bin\\pip\" \"$dir\\perl\\bin\\perl-pip\" -ea silent
Move-Item \"$dir\\perl\\bin\\pip.bat\" \"$dir\\perl\\bin\\perl-pip.bat\" -ea silent
",
"env_add_path": ["perl\\site\\bin", "perl\\bin", "c\\bin"],
"checkver": "<b>Recommended version:</b></p>\\s*<a[^>]*><b>Strawberry Perl ([0-9\\.]+) \\(32bit\\)</b>"
}