rtorrent: include xmlrpc-c if specified, not if installed

Closes Homebrew/homebrew#18859.
This commit is contained in:
Adam Vandenberg 2013-03-31 12:27:51 -07:00
parent 670587f57d
commit b7eb01a911

View file

@ -12,7 +12,7 @@ class Rtorrent < Formula
def install
args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
args << "--with-xmlrpc-c" if Formula.factory("xmlrpc-c").installed?
args << "--with-xmlrpc-c" if build.with? "xmlrpc-c"
if MacOS.version == :leopard
inreplace 'configure' do |s|
s.gsub! ' pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" 2>/dev/null`',