libtorrent: boneyard

Closes #369.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
Alex Dunn 2016-04-16 09:00:55 -07:00
parent 0814789919
commit 8c4ab75df9
2 changed files with 1 additions and 53 deletions

View file

@ -1,53 +0,0 @@
class Libtorrent < Formula
desc "BitTorrent library"
homepage "https://github.com/rakshasa/libtorrent"
url "http://rtorrent.net/downloads/libtorrent-0.13.6.tar.gz"
sha256 "2838a08c96edfd936aff8fbf99ecbb930c2bfca3337dd1482eb5fccdb80d5a04"
bottle :disable,
"Cannot be built with Clang so bottle depends on GCC at runtime."
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "pkg-config" => :build
depends_on "cppunit" => :build
depends_on "pkg-config" => :build
depends_on "openssl"
# https://github.com/Homebrew/homebrew/issues/24132
fails_with :clang do
cause "Causes segfaults at startup/at random."
end
def install
# Currently can't build against libc++; see:
# https://github.com/homebrew/homebrew/issues/23483
# https://github.com/rakshasa/libtorrent/issues/47
ENV.libstdcxx if ENV.compiler == :clang
system "sh", "autogen.sh"
system "./configure", "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--with-kqueue",
"--enable-ipv6"
system "make"
system "make", "install"
end
test do
(testpath/"sample.cc").write <<-EOS.undent
#include <iostream>
#include <torrent/torrent.h>
int main(int argc, char* *argv)
{
std::cout << torrent::version();
return 0;
}
EOS
system ENV.cxx, "-o", "sample", "sample.cc", "-ltorrent"
system "./sample"
end
end

View file

@ -132,6 +132,7 @@
"librets": "homebrew/boneyard",
"libspotify": "homebrew/binary",
"libtomcrypt": "homebrew/boneyard",
"libtorrent": "homebrew/boneyard",
"lilypond": "homebrew/tex",
"lmutil": "homebrew/binary",
"magit": "homebrew/emacs",