diff --git a/Library/Formula/rtorrent.rb b/Library/Formula/rtorrent.rb index 62150e19ee..f2bf356ad1 100644 --- a/Library/Formula/rtorrent.rb +++ b/Library/Formula/rtorrent.rb @@ -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`',