1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/libtorrent/libtorrent-0.12.6.ebuild,v 1.8 2010/12/08 02:50:00 vapier Exp $
6 inherit eutils libtool toolchain-funcs
8 DESCRIPTION
="BitTorrent library written in C++ for *nix"
9 HOMEPAGE
="http://libtorrent.rakshasa.no/"
10 SRC_URI
="http://libtorrent.rakshasa.no/downloads/${P}.tar.gz"
14 KEYWORDS
="amd64 ~arm hppa ~ia64 ppc ppc64 ~sparc x86 ~x86-fbsd"
17 RDEPEND
=">=dev-libs/libsigc++-2.2.2:2
18 ssl? ( dev-libs/openssl )"
23 # the configure check for posix_fallocate is wrong.
24 # reported upstream as Ticket 2416.
26 echo "int main(){return posix_fallocate();}" > "${T}"/posix_fallocate.c
27 if $
(tc-getCC
) ${CFLAGS} ${LDFLAGS} "${T}"/posix_fallocate.c -o /dev/null 2>/dev/null ; then
28 myconf="--with-posix-fallocate"
30 myconf="--without-posix-fallocate"
34 --disable-dependency-tracking \
38 $(use_enable ssl openssl) \
43 emake DESTDIR="${D}" install || die
44 dodoc AUTHORS NEWS README