diff options
| author | David Christenson | 2014-05-24 02:56:11 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-05-24 17:10:57 -0500 |
| commit | 4447f78dc78bc16e528d0b40c1042fe8d286be2d (patch) | |
| tree | 8768aaed307f4ff50b04aeeed4c3c3a8164a9d5c /Library/Formula | |
| parent | 31780970764b0cc7459648deb71a35f08a8e988c (diff) | |
| download | homebrew-4447f78dc78bc16e528d0b40c1042fe8d286be2d.tar.bz2 | |
libtorrent-rasterbar: add HEAD and geoip option
Add svn link and installation procedure, add option to use homebrew’s
geoip.
Closes #29546.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/libtorrent-rasterbar.rb | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/Library/Formula/libtorrent-rasterbar.rb b/Library/Formula/libtorrent-rasterbar.rb index eb648412e..ecfec7094 100644 --- a/Library/Formula/libtorrent-rasterbar.rb +++ b/Library/Formula/libtorrent-rasterbar.rb @@ -1,9 +1,16 @@ -require 'formula' +require "formula" class LibtorrentRasterbar < Formula - homepage 'http://www.rasterbar.com/products/libtorrent/' - url 'https://downloads.sourceforge.net/project/libtorrent/libtorrent/libtorrent-rasterbar-0.16.16.tar.gz' - sha1 'de8faed5cbc09baddb2748cb7b75edd07ab0addc' + homepage "http://www.rasterbar.com/products/libtorrent/" + url "https://downloads.sourceforge.net/project/libtorrent/libtorrent/libtorrent-rasterbar-0.16.16.tar.gz" + sha1 "de8faed5cbc09baddb2748cb7b75edd07ab0addc" + + head do + url "http://libtorrent.googlecode.com/svn/trunk" + depends_on "automake" => :build + depends_on "autoconf" => :build + depends_on "libtool" => :build + end bottle do cellar :any @@ -15,6 +22,7 @@ class LibtorrentRasterbar < Formula depends_on "pkg-config" => :build depends_on "openssl" depends_on :python => :optional + depends_on "geoip" => :optional if build.with? "python" depends_on "boost" => "with-python" @@ -36,7 +44,17 @@ class LibtorrentRasterbar < Formula args << "--with-boost-python=boost_python-mt" end - system "./configure", *args + if build.with? "geoip" + args << "--enable-geoip" + args << "--with-libgeoip" + end + + if build.head? + system "./bootstrap.sh", *args + else + system "./configure", *args + end + system "make install" end end |
