aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMcklaren2011-02-14 23:36:56 +0100
committerMike McQuaid2011-02-27 20:45:23 +0000
commite98b73f37379b6352e761c9937496d737d6d2115 (patch)
treed82fd697fa3a953cb9015cbeffc9c58b9ed5e344 /Library/Formula
parentcc9ffaecf260856cb7557e7461611d56ec74eac3 (diff)
downloadhomebrew-e98b73f37379b6352e761c9937496d737d6d2115.tar.bz2
Updated mldonkey to version 3.0.7 and added X11 support
Closes #4252. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mldonkey.rb20
1 files changed, 17 insertions, 3 deletions
diff --git a/Library/Formula/mldonkey.rb b/Library/Formula/mldonkey.rb
index bf21534b4..39b8e9165 100644
--- a/Library/Formula/mldonkey.rb
+++ b/Library/Formula/mldonkey.rb
@@ -1,14 +1,28 @@
require 'formula'
class Mldonkey <Formula
- url 'http://downloads.sourceforge.net/project/mldonkey/mldonkey/3.0.3/mldonkey-3.0.3.tar.bz2'
+ 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 'b5b5252fe60b5ec52396c9f58b7cb577'
+ 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
- system "./configure", "--prefix=#{prefix}"
+ args = ["--prefix=#{prefix}"]
+
+ if ARGV.include? "--with-x"
+ args << "--enable-gui=newgui2"
+ end
+
+ system "./configure", *args
system "make install"
end
end