blob: 90e74a8227d0506f64ef863994f473bae0a202f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
require 'formula'
class Mldonkey < Formula
url 'http://downloads.sourceforge.net/project/mldonkey/mldonkey/3.0.7/mldonkey-3.0.7.tar.bz2'
homepage 'http://mldonkey.sourceforge.net/Main_Page'
md5 '162b78fc4e20335a8fe31d91e1656db2'
depends_on 'objective-caml'
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"
args << "--enable-gui=newgui2"
end
system "./configure", *args
system "make install"
end
end
|