blob: 7eb47930deb54b3be29ab738d4060ea9d824ace9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
require "formula"
class Rtorrent < Formula
homepage "http://libtorrent.rakshasa.no/"
url "http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.4.tar.gz"
sha1 "e997822e9b0d53cf8ecfb6b836e380065890e10d"
revision 1
depends_on "pkg-config" => :build
depends_on "libtorrent"
depends_on "xmlrpc-c" => :optional
# https://github.com/Homebrew/homebrew/issues/24132
fails_with :clang do
cause "Causes segfaults at startup/at random."
end
def install
# Commented out since we're now marked as failing with clang - adamv
# ENV.libstdcxx if ENV.compiler == :clang
args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
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`',
' 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
|