From 0fc5e52db3164a469857f4325ac192355766cae2 Mon Sep 17 00:00:00 2001 From: Carl Moden Date: Fri, 23 Jan 2015 20:02:56 +0100 Subject: [PATCH] winetricks 20150114 Changed upsteram repo from svn to git. Added tests. Closes Homebrew/homebrew#36079. Signed-off-by: Mike McQuaid --- Formula/winetricks.rb | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/Formula/winetricks.rb b/Formula/winetricks.rb index c44938982c..0edc3e546f 100644 --- a/Formula/winetricks.rb +++ b/Formula/winetricks.rb @@ -1,15 +1,24 @@ -require 'formula' +class Winetricks < Formula + homepage "https://code.google.com/p/winetricks/" + url "https://code.google.com/p/winetricks.git", :revision => "fa9e42955dbdf780240dedf9057295264fddd98f" + version "20150114" + sha1 "fa9e42955dbdf780240dedf9057295264fddd98f" -class Winetricks < ScriptFileFormula - homepage 'http://code.google.com/p/winetricks/' - url 'http://winetricks.googlecode.com/svn-history/r1217/trunk/src/winetricks', :using => :curl - # since the version stated in the field is seldom updated, we append the revision number - version '20141125-r1217' - sha256 'b2317fbac4282412cc7f6d8f1d387da73dac6d4f5580a8ef8d8f2a2ae8df34b8' + head "https://code.google.com/p/winetricks.git" - head 'http://winetricks.googlecode.com/svn/trunk/src/winetricks', :using => :curl + depends_on "cabextract" + depends_on "p7zip" + depends_on "unrar" + depends_on "wine" - depends_on 'cabextract' + def install + bin.install "src/winetricks" + man1.install "src/winetricks.1" + end + + test do + system "#{bin}/winetricks", "dlls", "list" + end def caveats; <<-EOS.undent winetricks is a set of utilities for wine, which is installed separately: