From bde9f3db878579f7c48b0f16cd5d5d8f7cd7f09b Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 11 Jun 2012 21:11:22 -0700 Subject: ml-donkey 3.1.1 Also patch compiler selection to not hard-code GCC. --- Library/Formula/mldonkey.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Library/Formula') 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" -- cgit v1.2.3