summaryrefslogtreecommitdiff
path: root/net-libs/libtorrent/libtorrent-scm.ebuild
blob: 5ec35169b625abd481fa23dd15884f2cc4381528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 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
}