Permalink
Browse files

fixed mingw 4.8.1

  • Loading branch information...
ferventcoder committed Jan 7, 2014
1 parent 68e610c commit 7d0124a166575be5c1b97c84ba5827abeb3b8392
Showing with 14 additions and 5 deletions.
  1. +2 −3 mingw/mingw.nuspec
  2. +12 −2 mingw/tools/chocolateyInstall.ps1
View
@@ -3,22 +3,21 @@
<metadata>
<id>mingw</id>
<title>MinGW</title>
- <version>4.8.1</version>
+ <version>4.8.1.20140107</version>
<authors>cstrauss, cwilso11, earnie, keithmarshall</authors>
<owners>Rob Reynolds, matthewphillips</owners>
<summary>MinGW ("Minimalistic GNU for Windows") is a collection of freely available and freely distributable Windows specific header files and import libraries combined with GNU toolsets that allow one to produce native Windows programs that do not rely on any 3rd-party C runtime DLLs.</summary>
<description>MinGW ("Minimalistic GNU for Windows") is a collection of freely available and freely distributable Windows specific header files and import libraries combined with GNU toolsets that allow one to produce native Windows programs that do not rely on any 3rd-party C runtime DLLs.
Gambit Scheme system, compiler and interpreter.</description>
<projectUrl>http://www.mingw.org/wiki/MinGW</projectUrl>
- <tags>mingw tar gnu unix</tags>
+ <tags>mingw gnu unix gcc</tags>
<copyright></copyright>
<licenseUrl>http://www.mingw.org/license</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>http://sourceforge.net/images/potm-2005-09_logo_mingw.gif</iconUrl>
<dependencies>
<dependency id="7zip.commandline" />
- <dependency id="chocolatey" version="0.9.8.21" />
</dependencies>
</metadata>
<files>
@@ -27,8 +27,14 @@ try {
$file = Join-Path $tempDir "$($packageName).7z"
Get-ChocolateyWebFile "$packageName" "$file" "$url" "$url64"
Write-Host "Extracting `'$file`' to `'$installDir`'"
+ if (![System.IO.Directory]::Exists("$installDir\temp")) {[System.IO.Directory]::CreateDirectory("$installDir\temp")}
Start-Process "7za" -ArgumentList "x -o`"$installDir\temp`" -y `"$file`"" -Wait
- Copy-Item "$($installDir)\temp\mingw\*" "$($installDir)" -Force -Recurse
+
+ if (Get-ProcessorBits 64) {
+ Copy-Item "$($installDir)\temp\mingw64\*" "$($installDir)" -Force -Recurse
+ } else {
+ Copy-Item "$($installDir)\temp\mingw32\*" "$($installDir)" -Force -Recurse
+ }
# if (Get-ProcessorBits 64) {
# # unzip 64 bit on top of 32 bit
@@ -39,7 +45,11 @@ try {
# Copy-Item "$($installDir)\temp\mingw\*" "$($installDir)" -Force -Recurse
# }
- Remove-Item "$($installDir)\temp\" -Force -Recurse
+ try {
+ Remove-Item "$($installDir)\temp\" -Force -Recurse
+ } catch {
+ Write-Warning "Could not remove `"$($installDir)\temp\`". Please remove manually."
+ }
Write-ChocolateySuccess "$packageName"
} catch {

0 comments on commit 7d0124a

Please sign in to comment.