wine: block from-source installations on Mojave

This commit is contained in:
Dominyk Tiller 2018-09-03 01:05:50 +01:00
parent e8b4c7136d
commit 661479aa99
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

View file

@ -206,6 +206,16 @@ class Wine < Formula
end
def install
# 32-bit support has been removed by Apple.
if DevelopmentTools.clang_build_version >= 1000
odie <<~EOS
Wine cannot currently be installed from source on
macOS #{MacOS.version}.
You may wish to try:
brew install wine --force-bottle
EOS
end
ENV.prepend_create_path "PATH", "#{libexec}/bin"
ENV.prepend_create_path "PKG_CONFIG_PATH", "#{libexec}/lib/pkgconfig"