homebrew-core/Formula/libtorrent-rasterbar.rb
Dominyk Tiller 8dbb6d06c7 libtorrent-rasterbar: website fix
A tad awkwardly, the owner of the rasterbar website seems to have
forgotten to renew their domain and it currently leads to an auction
domain. Consequently, have shoved the link over to SourceForge for now.

Closes Homebrew/homebrew#33199.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-10-16 00:06:04 -05:00

57 lines
1.5 KiB
Ruby

require "formula"
class LibtorrentRasterbar < Formula
homepage "http://sourceforge.net/projects/libtorrent/"
url "https://downloads.sourceforge.net/project/libtorrent/libtorrent/libtorrent-rasterbar-1.0.2.tar.gz"
sha1 "bfb161825306abbd5c03775e75f5e094ee757a9a"
revision 1
head do
url "https://libtorrent.googlecode.com/svn/trunk"
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "libtool" => :build
end
bottle do
cellar :any
sha1 "ab6d57a760ab449140fe1343089884e5f7a77c9f" => :mavericks
sha1 "6561ef265172991b558e0e13c34b1f3e7fddb253" => :mountain_lion
sha1 "72e50533cf48186ca1442c0bbbb5a7d2e6049aee" => :lion
end
depends_on "pkg-config" => :build
depends_on "openssl"
depends_on :python => :optional
depends_on "geoip" => :optional
depends_on "boost"
depends_on "boost-python" if build.with? "python"
def install
boost = Formula["boost"]
args = [ "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-boost=#{boost.opt_prefix}" ]
# Build python bindings requires forcing usage of the mt version of boost_python.
if build.with? "python"
args << "--enable-python-binding"
args << "--with-boost-python=boost_python-mt"
end
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