# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit eutils toolchain-funcs libtool git-r3 DESCRIPTION="BitTorrent library written in C++ for *nix" HOMEPAGE="https://rakshasa.github.io/rtorrent/" SRC_URI="" SLOT="0" LICENSE="GPL-2" KEYWORDS="" EGIT_REPO_URI="git://github.com/rakshasa/libtorrent.git" EGIT_BRANCH="feature-bind" IUSE="debug ipv6 +c++0x libressl +ssl static-libs" RDEPEND=">=dev-libs/libsigc++-2.2.2 ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= ) ) " DEPEND="${RDEPEND} dev-util/pkgconfig dev-util/cppunit" src_prepare() { ./autogen.sh elibtoolize multilib_copy_sources default } src_configure() { CONFIG_SHELL=${BASH} econf \ $(use_enable debug) \ $(use_enable ipv6) \ $(use_enable c++0x) \ $(use_enable ssl openssl) \ $(use_enable static-libs static) \ --enable-aligned \ --enable-shared \ --disable-dependency-tracking \ --with-posix-fallocate \ || die "econf failed" } src_install() { default prune_libtool_files --all }