homebrew-core/Formula/winetricks.rb
2017-08-24 01:42:31 -07:00

32 lines
850 B
Ruby

class Winetricks < Formula
desc "Download and install various runtime libraries"
homepage "https://github.com/Winetricks/winetricks"
url "https://github.com/Winetricks/winetricks/archive/20170823.tar.gz"
sha256 "0e7e007b0dd39f773213a5540e7c44e4105d9435ef067c0efdcc6fda70c029de"
head "https://github.com/Winetricks/winetricks.git"
bottle :unneeded
option "with-zenity", "Zenity is needed for GUI"
depends_on "cabextract"
depends_on "p7zip"
depends_on "unrar"
depends_on "wine" => :optional
depends_on "zenity" => :optional
def install
bin.install "src/winetricks"
man1.install "src/winetricks.1"
end
def caveats; <<-EOS.undent
winetricks is a set of utilities for wine, which is installed separately:
brew install wine
EOS
end
test do
system "#{bin}/winetricks", "--version"
end
end