blob: 2a061f30f44ab8d7d93b7d4c91fd4f7803c4cf81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
require 'formula'
class Transmission < Formula
url 'http://download.transmissionbt.com/files/transmission-2.41.tar.bz2'
homepage 'http://www.transmissionbt.com/'
md5 '799b7bb24e236dbbdc86275f89ea9e67'
# Actually depends on libcurl but doesn't find it without pkg-config
depends_on 'pkg-config' => :build
depends_on 'libevent'
depends_on 'intltool' => :optional
depends_on 'gettext' => :optional # need gettext only if intltool is also installed
def install
args = ["--disable-dependency-tracking",
"--disable-gtk", "--disable-mac",
"--prefix=#{prefix}"]
args << "--disable-nls" unless Formula.factory("intltool").installed? and
Formula.factory("gettext").installed?
system "./configure", *args
system "make" # build fails for some reason if make isn't done first
system "make install"
end
def caveats; <<-EOS.undent
This formula only installs the Transmission command line utilities:
transmission-cli
transmission-create
transmission-daemon
transmission-edit
transmission-remote
transmission-show
Transmission.app can be downloaded from Transmission's website.
EOS
end
end
|