# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/rb_libtorrent/rb_libtorrent-0.11.ebuild,v 1.1 2007/01/08 18:05:27 armin76 Exp $ WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest" inherit eutils autotools MY_P="${P/rb_/}" S="${WORKDIR}/${MY_P}" DESCRIPTION="BitTorrent library written in C++ for *nix." HOMEPAGE="http://www.rasterbar.com/products/libtorrent/" SRC_URI="mirror://sourceforge/libtorrent/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug" DEPEND="dev-libs/boost !net-libs/libtorrent" RDEPEND="${DEPEND}" pkg_setup() { # We need boost built with threads if ! built_with_use "dev-libs/boost" threads && ! built_with_use "dev-libs/boost" threadsonly ; then die "rb_libtorrent needs dev-libs/boost built with threads or threadsonly USE flag" fi } src_compile() { econf $(use_enable debug) || die "econf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc ChangeLog AUTHORS NEWS README }