From f3b3d4ac17ae6d8c5fddfa7fcde6c3d071da5260 Mon Sep 17 00:00:00 2001 From: Camillo Lugaresi Date: Tue, 2 Aug 2011 02:46:33 +0200 Subject: 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 --- Library/Formula/wine.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Library/Formula') 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') -- cgit v1.2.3