Skip to content

Instantly share code, notes, and snippets.

@tzudot
Created September 28, 2015 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tzudot/6f20b5509e024fc2c585 to your computer and use it in GitHub Desktop.
Save tzudot/6f20b5509e024fc2c585 to your computer and use it in GitHub Desktop.
Homebrew formula for installing rtorrent
class Rtorrent < Formula
desc "Console-based BitTorrent client"
homepage "https://github.com/rakshasa/rtorrent"
url "http://rtorrent.net/downloads/rtorrent-0.9.6.tar.gz"
sha256 "1e69c24f1f26f8f07d58d673480dc392bfc4317818c1115265b08a7813ff5b0e"
depends_on "pkg-config" => :build
depends_on "xmlrpc-c" => :optional
depends_on "libtool" => :build
depends_on "libtorrent"
def install
ENV.libstdcxx if ENV.compiler == :clang
args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
args << "--with-xmlrpc-c" if build.with? "xmlrpc-c"
system "./configure", *args
system "make"
system "make", "install"
doc.install "doc/rtorrent.rc"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment