aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-13 12:08:07 -0600
committerJack Nagel2014-11-13 12:08:07 -0600
commitdc6ac806321a8bfaaac2bb3cf1bb3c546f163d08 (patch)
tree5cf8b4734852bd2082d9da355b20c48bdcf9e635 /Library
parenta491586c86b02da7b94b5de9ae92cf02d65e768a (diff)
downloadhomebrew-dc6ac806321a8bfaaac2bb3cf1bb3c546f163d08.tar.bz2
mldonkey: update x11 option
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mldonkey.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/mldonkey.rb b/Library/Formula/mldonkey.rb
index d3a8ed094..a73ebecdd 100644
--- a/Library/Formula/mldonkey.rb
+++ b/Library/Formula/mldonkey.rb
@@ -5,14 +5,15 @@ class Mldonkey < Formula
url 'https://downloads.sourceforge.net/project/mldonkey/mldonkey/3.1.5/mldonkey-3.1.5.tar.bz2'
sha1 '7bc4f9272ecfe6403eef7062766b26bf321e3015'
- option "with-x", "Build mldonkey with X11 support"
+ deprecated_option "with-x" => "with-x11"
depends_on 'pkg-config' => :build
depends_on 'objective-caml'
depends_on 'gd'
depends_on 'libpng'
+ depends_on :x11 => :optional
- if build.with? "x"
+ if build.with? "x11"
depends_on 'librsvg'
depends_on 'lablgtk'
end
@@ -22,7 +23,7 @@ class Mldonkey < Formula
ENV['OCAMLC'] = "#{HOMEBREW_PREFIX}/bin/ocamlc.opt -cc #{ENV.cc}"
args = ["--prefix=#{prefix}"]
- args << "--enable-gui=newgui2" if build.with? "x"
+ args << "--enable-gui=newgui2" if build.with? "x11"
system "./configure", *args
system "make install"