diff options
| author | Jarkko Oranen | 2011-07-26 00:29:57 +0300 |
|---|---|---|
| committer | Jack Nagel | 2011-08-30 20:44:18 -0500 |
| commit | 948bc5547f36de6395d0a34cdd902fea008ab28d (patch) | |
| tree | 20875962a1100a4cd289bd00f006c4f1b1afdede /Library | |
| parent | f363b05336af3cc9a63db75235bbab864e366c28 (diff) | |
| download | homebrew-948bc5547f36de6395d0a34cdd902fea008ab28d.tar.bz2 | |
transmission 2.33 (CLI utilities)
Does not build mac or GTK user interfaces; GTK makes no sense
for most people and anyone who wants the Mac UI can just go
download the .app from the website.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/transmission.rb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Library/Formula/transmission.rb b/Library/Formula/transmission.rb new file mode 100644 index 000000000..a0642f65b --- /dev/null +++ b/Library/Formula/transmission.rb @@ -0,0 +1,39 @@ +require 'formula' + +class Transmission < Formula + url 'http://download.transmissionbt.com/files/transmission-2.33.tar.bz2' + homepage 'http://www.transmissionbt.com/' + md5 '082217a65713ac879410c622cbe6eb26' + + # 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 |
