/
perl@5.20+gcc.json
27 lines (27 loc) · 1.36 KB
/
perl@5.20+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
24
25
26
27
{
"homepage": "http://strawberryperl.com",
"version": "5.20.3.3+gcc",
"license": "GPL",
"architecture": {
"64bit": {
"url": "http://strawberryperl.com/download/5.20.3.3/strawberry-perl-5.20.3.3-64bit-portable.zip",
"hash": "sha1:b13a0e3000b3ea4ed6137a6279274c4aa09d1f46"
},
"32bit": {
"url": "http://strawberryperl.com/download/5.20.3.3/strawberry-perl-5.20.3.3-32bit-portable.zip",
"hash": "sha1:9a3220a21260339ac6054a8fee4592a00b41e265"
}
},
"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>"
}