homebrew-core/Formula/transmission.rb

34 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
class Transmission < Formula
homepage 'http://www.transmissionbt.com/'
url 'http://download.transmissionbt.com/files/transmission-2.50.tar.bz2'
md5 'c3611108e34fe6ebdcf93da5beb89045'
2012-03-11 23:24:12 +00:00
depends_on 'pkg-config' => :build # So it will find system libcurl
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
def install
args = ["--disable-dependency-tracking",
"--prefix=#{prefix}",
"--disable-mac",
"--without-gtk"]
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
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
EOS
end
end