2010-08-04 00:00:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Mldonkey < Formula
|
2011-02-14 22:36:56 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/mldonkey/mldonkey/3.0.7/mldonkey-3.0.7.tar.bz2'
|
2010-08-04 00:00:42 +00:00
|
|
|
homepage 'http://mldonkey.sourceforge.net/Main_Page'
|
2011-02-14 22:36:56 +00:00
|
|
|
md5 '162b78fc4e20335a8fe31d91e1656db2'
|
2010-08-04 00:00:42 +00:00
|
|
|
|
|
|
|
depends_on 'objective-caml'
|
2011-02-14 22:36:56 +00:00
|
|
|
if ARGV.include? "--with-x"
|
|
|
|
depends_on 'librsvg'
|
|
|
|
depends_on 'lablgtk'
|
|
|
|
end
|
|
|
|
|
|
|
|
def options
|
|
|
|
[["--with-x", "Build mldonkey with X11 support"]]
|
|
|
|
end
|
2010-08-04 00:00:42 +00:00
|
|
|
|
|
|
|
def install
|
2011-02-14 22:36:56 +00:00
|
|
|
args = ["--prefix=#{prefix}"]
|
|
|
|
|
|
|
|
if ARGV.include? "--with-x"
|
|
|
|
args << "--enable-gui=newgui2"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
2010-08-04 00:00:42 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|