homebrew-core/Formula/mldonkey.rb

31 lines
639 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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'
depends_on 'objective-caml'
2012-01-30 00:21:08 +00:00
if ARGV.include? "--with-x"
depends_on 'librsvg'
depends_on 'lablgtk'
end
def options
[["--with-x", "Build mldonkey with X11 support"]]
end
def install
args = ["--prefix=#{prefix}"]
if ARGV.include? "--with-x"
2012-01-30 00:21:08 +00:00
ENV.x11
args << "--enable-gui=newgui2"
end
system "./configure", *args
system "make install"
end
end