aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-05-21 12:09:24 -0700
committerAdam Vandenberg2014-05-21 12:32:37 -0700
commit56a108d5fac392417357d1935222a737978deabb (patch)
tree6258713b80ab0ddfccbec935b4be37764700a1b4 /Library
parent49cc5e22f3c020ff609ea4c0c763567e66cd8a5d (diff)
downloadhomebrew-56a108d5fac392417357d1935222a737978deabb.tar.bz2
rtorrent 0.9.4
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rtorrent.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/Library/Formula/rtorrent.rb b/Library/Formula/rtorrent.rb
index ea047fbe4..29252ed3d 100644
--- a/Library/Formula/rtorrent.rb
+++ b/Library/Formula/rtorrent.rb
@@ -1,28 +1,28 @@
-require 'formula'
+require "formula"
class Rtorrent < Formula
- homepage 'http://libtorrent.rakshasa.no/'
- url 'http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.3.tar.gz'
- sha256 '9e93ca41beb1afe74ad7ad8013e0d53ae3586c9b0e97263d722f721535cc7310'
+ homepage "http://libtorrent.rakshasa.no/"
+ url "http://libtorrent.rakshasa.no/downloads/rtorrent-0.9.4.tar.gz"
+ sha1 "e997822e9b0d53cf8ecfb6b836e380065890e10d"
- depends_on 'pkg-config' => :build
- depends_on 'libtorrent'
- depends_on 'xmlrpc-c' => :optional
+ depends_on "pkg-config" => :build
+ depends_on "libtorrent"
+ depends_on "xmlrpc-c" => :optional
# rtorrent gets a private libsigc++ because libtorrent can only build
# under libstdc++, but libsigc++ is too widely used for us to force it
# to use libstdc++ globally.
# This should be removed once libtorrent is fixed to work under libstdc++.
# See https://github.com/mxcl/homebrew/issues/23483
- resource 'libsigcxx' do
- url 'http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.3/libsigc++-2.3.1.tar.xz'
- sha256 '67d05852b31fdb267c9fdcecd40b046a11aa54d884435e99e3c60dd20cd60393'
+ resource "libsigcxx" do
+ url "http://ftp.gnome.org/pub/GNOME/sources/libsigc++/2.3/libsigc++-2.3.1.tar.xz"
+ sha256 "67d05852b31fdb267c9fdcecd40b046a11aa54d884435e99e3c60dd20cd60393"
end
def install
ENV.libstdcxx if ENV.compiler == :clang
- resource('libsigcxx').stage do
+ resource("libsigcxx").stage do
system "./configure", "--prefix=#{libexec}/libsigcxx", "--disable-dependency-tracking"
system "make"
system "make check"
@@ -30,14 +30,14 @@ class Rtorrent < Formula
end
# Skip pkg-config, which was having trouble looking into rtorrent's libexec
- ENV['sigc_CFLAGS'] = "-I#{libexec}/libsigcxx/include/sigc++-2.0 \
+ ENV["sigc_CFLAGS"] = "-I#{libexec}/libsigcxx/include/sigc++-2.0 \
-I#{libexec}/libsigcxx/lib/sigc++-2.0/include"
- ENV['sigc_LIBS'] = "-L#{libexec}/libsigcxx/lib -lsigc-2.0"
+ ENV["sigc_LIBS"] = "-L#{libexec}/libsigcxx/lib -lsigc-2.0"
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|
+ 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