rtorrent - add xmlrpc-c support

This commit is contained in:
Adam Vandenberg 2010-05-12 22:20:50 -07:00
parent 963ece0d30
commit e056b9c178

View file

@ -8,9 +8,12 @@ class Rtorrent <Formula
depends_on 'pkg-config' depends_on 'pkg-config'
depends_on 'libsigc++' depends_on 'libsigc++'
depends_on 'libtorrent' depends_on 'libtorrent'
depends_on 'xmlrpc-c' => :optional
def install def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
args << "--with-xmlrpc-c" if Formula.factory("xmlrpc-c").installed?
system "./configure", *args
system "make" system "make"
system "make install" system "make install"
end end