Created
September 28, 2015 16:31
-
-
Save tzudot/6f20b5509e024fc2c585 to your computer and use it in GitHub Desktop.
Homebrew formula for installing rtorrent
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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