20 lines
572 B
Ruby
20 lines
572 B
Ruby
require 'formula'
|
|
|
|
class Rtorrent <Formula
|
|
url 'http://libtorrent.rakshasa.no/downloads/rtorrent-0.8.6.tar.gz'
|
|
homepage 'http://libtorrent.rakshasa.no/'
|
|
md5 'b804c45c01c40312926bcea6b55bb084'
|
|
|
|
depends_on 'pkg-config'
|
|
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?
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|