homebrew-core/Formula/mldonkey.rb

29 lines
717 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Mldonkey < Formula
homepage 'http://mldonkey.sourceforge.net/Main_Page'
2012-08-25 18:22:06 +00:00
url 'http://downloads.sourceforge.net/project/mldonkey/mldonkey/3.1.3/mldonkey-3.1.3.tar.bz2'
2012-08-27 05:24:27 +00:00
sha1 '424386f277e84df55a2cbab213fae60787e42c8b'
2012-08-25 18:22:06 +00:00
option "with-x", "Build mldonkey with X11 support"
depends_on 'objective-caml'
depends_on :libpng
2012-01-30 00:21:08 +00:00
2012-08-25 18:22:06 +00:00
if build.include? "with-x"
depends_on 'librsvg'
depends_on 'lablgtk'
end
def install
# Fix compiler selection
ENV['OCAMLC'] = "#{HOMEBREW_PREFIX}/bin/ocamlc.opt -cc #{ENV.cc}"
args = ["--prefix=#{prefix}"]
2012-08-25 18:22:06 +00:00
args << "--enable-gui=newgui2" if build.include? "with-x"
system "./configure", *args
system "make install"
end
end