diff --git a/perl.json b/perl.json index 68d72784bb..7e4225cce5 100644 --- a/perl.json +++ b/perl.json @@ -12,6 +12,12 @@ "hash": "sha1:844e7c2d741bda915ece0688bf3a00ab12577460" } }, + "post_install":" + # enable standard idiomatic access to user's home directory + ## remove HomeDir section from portable.perl (disables Portable.pm override of File::HomeDir) + ## NOTE: conversion to byte[] 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 + ", "env_add_path": [ "perl\\site\\bin", "perl\\bin", "c\\bin" ], "checkver": "Recommended version:
\\s*]*>Strawberry Perl ([0-9\\.]+) \\(32bit\\)" }