Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
wine: update caveats
Browse files Browse the repository at this point in the history
Hide x11-info if user requested a wine build without x11

Closes #20782.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
dholm authored and adamv committed Aug 5, 2013
1 parent d02e16c commit 31f453f
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions Library/Formula/wine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,22 +110,29 @@ def install
(bin/'wine').write(wine_wrapper)
end

def caveats; <<-EOS.undent
You may want to get winetricks:
brew install winetricks
By default Wine uses a native Mac driver. To switch to the X11 driver, use
regedit to set the "graphics" key under "HKCU\Software\Wine\Drivers" to
"x11" (or use winetricks).
For best results with X11, install the latest version of XQuartz:
http://xquartz.macosforge.org/
The current version of Wine contains a partial implementation of dwrite.dll
which may cause text rendering issues in applications such as Steam.
We recommend that you run winecfg, add an override for dwrite in the
Libraries tab, and edit the override mode to "disable". See:
http://bugs.winehq.org/show_bug.cgi?id=31374
def caveats
s = <<-EOS.undent
You may want to get winetricks:
brew install winetricks
The current version of Wine contains a partial implementation of dwrite.dll
which may cause text rendering issues in applications such as Steam.
We recommend that you run winecfg, add an override for dwrite in the
Libraries tab, and edit the override mode to "disable". See:
http://bugs.winehq.org/show_bug.cgi?id=31374
EOS

unless build.without? 'x11'
s += <<-EOS.undent
By default Wine uses a native Mac driver. To switch to the X11 driver, use
regedit to set the "graphics" key under "HKCU\Software\Wine\Drivers" to
"x11" (or use winetricks).
For best results with X11, install the latest version of XQuartz:
http://xquartz.macosforge.org/
EOS
end
return s
end
end

0 comments on commit 31f453f

Please sign in to comment.