homebrew-core/Formula/rtorrent.rb
Jack Nagel 8cb9a4cf3d Revert "rtorrent 0.9.0" and "libtorrent 0.13.0"
These are unstable versions.

This reverts commit 9b5cba752f678a11686299d09a78f2970ed0f4bd.
This reverts commit 130b408db14d4d54f8ec4fb1c8cca5caa2edcd29.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-24 16:59:14 -06:00

25 lines
874 B
Ruby

require 'formula'
class Rtorrent < Formula
url 'http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.9.tar.gz'
homepage 'http://libtorrent.rakshasa.no/'
md5 '629247636cb1210663b52dadbd040a6c'
depends_on 'pkg-config' => :build
depends_on 'libsigc++'
depends_on 'libtorrent'
depends_on 'xmlrpc-c' => :optional
def install
args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
args << "--with-xmlrpc-c" if Formula.factory("xmlrpc-c").installed?
if MacOS.leopard?
inreplace 'configure' do |s|
s.gsub! ' pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" 2>/dev/null`', ' pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" | sed -e "s/-arch [^-]*/-arch $(uname -m) /" 2>/dev/null`'
end
end
system "./configure", *args
system "make"
system "make install"
end
end