/
perl@5.10.1.1+gcc.json
23 lines (23 loc) · 1.22 KB
/
perl@5.10.1.1+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.10.1.1+gcc",
"license": "GPL",
// "architecture": {
// "32bit": {
"url": "http://strawberryperl.com/download/5.10.1.1/strawberry-perl-5.10.1.1-portable.zip",
"hash": "sha256:9da0cc11166e13ce0a9077cb0b42c4909ed849647c094f71aebb2eaf7550bd68",
// }
// },
"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>"
}