diff options
| author | Camillo Lugaresi | 2011-08-02 02:46:33 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2011-08-01 20:11:27 -0700 |
| commit | f3b3d4ac17ae6d8c5fddfa7fcde6c3d071da5260 (patch) | |
| tree | 095da1f908e32cfbfb0bcfaa5204338a1045adb0 /Library | |
| parent | 0a892497e153762cdcffa66898966a2b3c60e1ee (diff) | |
| download | homebrew-f3b3d4ac17ae6d8c5fddfa7fcde6c3d071da5260.tar.bz2 | |
wine: download gecko as part of installation
This is the behavior recommended by Wine. It avoids the need to download a
separate copy of Gecko for each prefix. See http://wiki.winehq.org/Gecko
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/wine.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/wine.rb b/Library/Formula/wine.rb index 4c1834693..51b868c95 100644 --- a/Library/Formula/wine.rb +++ b/Library/Formula/wine.rb @@ -1,5 +1,15 @@ require 'formula' +class WineGecko < Formula + url 'http://downloads.sourceforge.net/wine/wine_gecko-1.2.0-x86.msi', :using => :nounzip + sha1 '6964d1877668ab7da07a60f6dcf23fb0e261a808' +end + +class WineGeckoOld < Formula + url 'http://downloads.sourceforge.net/wine/wine_gecko-1.0.0-x86.cab', :using => :nounzip + sha1 'afa22c52bca4ca77dcb9edb3c9936eb23793de01' +end + class Wine < Formula homepage 'http://www.winehq.org/' @@ -63,6 +73,10 @@ EOS # Don't need Gnome desktop support rm_rf share+'applications' + # Download Gecko once so we don't need to redownload for each prefix + gecko = (ARGV.flag? '--devel') ? WineGecko.new : WineGeckoOld.new + gecko.brew { (share+'wine/gecko').install Dir["*"] } + # Use a wrapper script, so rename wine to wine.bin # and name our startup script wine mv (bin+'wine'), (bin+'wine.bin') |
