diff options
| author | Adam Vandenberg | 2012-06-11 21:11:22 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-11 21:11:22 -0700 |
| commit | bde9f3db878579f7c48b0f16cd5d5d8f7cd7f09b (patch) | |
| tree | 47f9968c15daccd058553089093d5bde9628b4f7 /Library | |
| parent | 2816e896d3c4394badbf8461e0d6daf6f2857abb (diff) | |
| download | homebrew-bde9f3db878579f7c48b0f16cd5d5d8f7cd7f09b.tar.bz2 | |
ml-donkey 3.1.1
Also patch compiler selection to not hard-code GCC.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mldonkey.rb | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/mldonkey.rb b/Library/Formula/mldonkey.rb index 2a369c271..63df66e6f 100644 --- a/Library/Formula/mldonkey.rb +++ b/Library/Formula/mldonkey.rb @@ -1,9 +1,9 @@ require 'formula' class Mldonkey < Formula - url 'http://downloads.sourceforge.net/project/mldonkey/mldonkey/3.1.0/mldonkey-3.1.0.tar.bz2' homepage 'http://mldonkey.sourceforge.net/Main_Page' - md5 '072726d158ba1e936c554be341e7ceff' + url 'http://downloads.sourceforge.net/project/mldonkey/mldonkey/3.1.1/mldonkey-3.1.1.tar.bz2' + sha1 '2d0bc9f849728528f833e32db3b051aab51b6c7f' depends_on 'objective-caml' @@ -17,12 +17,14 @@ class Mldonkey < Formula end def install - args = ["--prefix=#{prefix}"] + ENV.libpng + + # Fix compiler selection + ENV['OCAMLC'] = "#{HOMEBREW_PREFIX}/bin/ocamlc.opt -cc #{ENV.cc}" + inreplace 'Makefile', '-O6', '' if ENV.compiler == :clang - if ARGV.include? "--with-x" - ENV.x11 - args << "--enable-gui=newgui2" - end + args = ["--prefix=#{prefix}"] + args << "--enable-gui=newgui2" if ARGV.include? "--with-x" system "./configure", *args system "make install" |
