blob: 0e13bd5e1eff4a68c6c4db2bfe44f99a5e762fe9 (
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
|
# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="C++17 Distributed Hash Table implementation "
HOMEPAGE="https://git.jami.net/savoirfairelinux/opendht"
SRC_URI="https://git.jami.net/savoirfairelinux/${PN}/-/archive/v${PV}.tar.bz2 -> ${P}.tar.bz2"
COMMIT="69a1bdfc45617d9374954948fbe840f34d58b3b4"
S="${WORKDIR}/${PN}-v${PV}-${COMMIT}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="api doc python systemd test tools"
RESTRICT="!test? ( test )"
RDEPEND="
app-crypt/argon2
dev-libs/msgpack[cxx]
dev-libs/nettle
dev-libs/restinio
net-libs/gnutls
api? (
dev-libs/jsoncpp
dev-libs/restinio
)
doc? ( app-doc/doxygen )
python? ( dev-python/cython )
tools? ( sys-libs/readline )
"
DEPEND="${RDEPEND}"
# Disable peerdiscoverytest, since it fails upstream
# https://github.com/savoirfairelinux/opendht/issues/568
PATCHES=(
"${FILESDIR}/peerdiscoverytest-2.4.10.patch"
)
src_configure() {
local mycmakeargs=(
"-DOPENDHT_PYTHON=$(usex python ON OFF)"
"-DOPENDHT_TOOLS=$(usex tools ON OFF)"
"-DOPENDHT_SYSTEMD=$(usex systemd ON OFF)"
"-DOPENDHT_PROXY_SERVER=$(usex api ON OFF)"
"-DOPENDHT_PROXY_SERVER_IDENTITY=$(usex api ON OFF)"
"-DOPENDHT_PROXY_CLIENT=$(usex api ON OFF)"
"-DOPENDHT_TESTS=$(usex test ON OFF)"
)
cmake_src_configure
}
|