blob: f4c3aec40deabbfed662715c671c5a7ed6030907 (
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
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
AUTOTOOLS_AUTORECONF=1
inherit autotools-utils
DESCRIPTION="This library implements the client side of the Gadu-Gadu protocol"
HOMEPAGE="http://toxygen.net/libgadu/"
SRC_URI="https://github.com/wojtekka/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-2.1"
KEYWORDS="amd64 ~arm arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
SLOT="0"
IUSE="doc gnutls ssl static-libs test threads"
REQUIRED_USE="
gnutls? ( ssl )
"
COMMON_DEPEND="
>=dev-libs/protobuf-c-1.0.0
sys-libs/zlib
ssl? (
gnutls? ( net-libs/gnutls:0 )
!gnutls? ( >=dev-libs/openssl-0.9.6m:0 )
)
"
DEPEND="${COMMON_DEPEND}
doc? ( app-doc/doxygen )
test? (
dev-libs/expat
dev-libs/libxml2:2
net-misc/curl
)
"
RDEPEND="${COMMON_DEPEND}
!=net-im/kadu-0.6.0.2
!=net-im/kadu-0.6.0.1
"
AUTOTOOLS_IN_SOURCE_BUILD=1
DOCS=(AUTHORS ChangeLog NEWS README)
src_configure() {
local myeconfargs=(
--with-protobuf
$(use_enable test tests)
$(use_with threads pthread)
)
if use ssl; then
myeconfargs+=(
$(use_with gnutls gnutls)
$(use_with !gnutls openssl)
)
else
myeconfargs+=(
--without-gnutls
--without-openssl
)
fi
autotools-utils_src_configure
}
src_install() {
use doc && HTML_DOCS=(docs/html/)
autotools-utils_src_install
}
|