diff options
| author | Jack Nagel | 2013-09-21 20:47:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-21 21:05:16 -0500 |
| commit | 3fab7fcc899562a3f8de629ba3728cb618f328a9 (patch) | |
| tree | 06bcbc4eb198ffb133faf4cea1805621bf34ae47 /Library/Formula | |
| parent | d9339aca2947fb443d6a9d358acf7025bf89debe (diff) | |
| download | homebrew-3fab7fcc899562a3f8de629ba3728cb618f328a9.tar.bz2 | |
wine: use spec deps
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/wine.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Library/Formula/wine.rb b/Library/Formula/wine.rb index 0e426b40b..22c81331c 100644 --- a/Library/Formula/wine.rb +++ b/Library/Formula/wine.rb @@ -5,23 +5,29 @@ require 'formula' # http://wiki.winehq.org/Mono class Wine < Formula homepage 'http://winehq.org/' - url 'http://downloads.sourceforge.net/project/wine/Source/wine-1.6.tar.bz2' - sha256 'e1f130efbdcbfa211ca56ee03357ccd17a31443889b4feebdcb88248520b42ae' - head 'git://source.winehq.org/git/wine.git' + stable do + url 'http://downloads.sourceforge.net/project/wine/Source/wine-1.6.tar.bz2' + sha256 'e1f130efbdcbfa211ca56ee03357ccd17a31443889b4feebdcb88248520b42ae' + depends_on 'little-cms' + end devel do url 'http://downloads.sourceforge.net/project/wine/Source/wine-1.7.2.tar.bz2' sha256 '0bfc4276c93de1fdd5989f91807c7362b11995efdf581d60601fec789665b7f1' + depends_on 'little-cms2' end - env :std + head do + url 'git://source.winehq.org/git/wine.git' + depends_on 'little-cms2' + end - # this tells Homebrew that dependencies must be built universal - def build.universal? ; true; end + env :std # note that all wine dependencies should declare a --universal option in their formula, # otherwise homebrew will not notice that they are not built universal + require_universal_deps # Wine will build both the Mac and the X11 driver by default, and you can switch # between them. But if you really want to build without X11, you can. @@ -34,12 +40,6 @@ class Wine < Formula depends_on 'sane-backends' depends_on 'libgsm' => :optional - if build.stable? - depends_on 'little-cms' - else - depends_on 'little-cms2' - end - resource 'gecko' do url 'http://downloads.sourceforge.net/wine/wine_gecko-2.21-x86.msi', :using => :nounzip sha1 'a514fc4d53783a586c7880a676c415695fe934a3' |
