2011-07-25 21:29:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Transmission < Formula
|
|
|
|
homepage 'http://www.transmissionbt.com/'
|
2012-09-27 11:53:39 +00:00
|
|
|
url 'http://download.transmissionbt.com/files/transmission-2.71.tar.bz2'
|
|
|
|
sha1 '78dbd49fff06e6562e3e8861da8af54069285fc9'
|
2011-07-25 21:29:57 +00:00
|
|
|
|
2012-03-11 23:24:12 +00:00
|
|
|
depends_on 'pkg-config' => :build # So it will find system libcurl
|
2011-07-25 21:29:57 +00:00
|
|
|
depends_on 'libevent'
|
|
|
|
depends_on 'intltool' => :optional
|
2012-03-11 23:24:12 +00:00
|
|
|
depends_on 'gettext' => :optional # need gettext if intltool is used
|
2011-07-25 21:29:57 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--disable-dependency-tracking",
|
2012-03-02 09:18:17 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--disable-mac",
|
|
|
|
"--without-gtk"]
|
2011-07-25 21:29:57 +00:00
|
|
|
|
|
|
|
args << "--disable-nls" unless Formula.factory("intltool").installed? and
|
|
|
|
Formula.factory("gettext").installed?
|
|
|
|
|
|
|
|
system "./configure", *args
|
2012-03-11 23:24:12 +00:00
|
|
|
system "make" # Make and install in one step fails
|
2011-07-25 21:29:57 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2012-03-11 23:24:12 +00:00
|
|
|
This formula only installs the command line utilities.
|
|
|
|
Transmission.app can be downloaded from Transmission's website:
|
|
|
|
http://www.transmissionbt.com
|
2011-07-25 21:29:57 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|