aboutsummaryrefslogtreecommitdiff
blob: 807bfc1b00ddf2bab224a72fc2f8595279f6e521 (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
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="An implementation of the Double Ratchet cryptographic ratchet in C++"
HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient"

inherit eutils cmake-utils

if [[ ${PV} == "9999" ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/Nheko-Reborn/${PN}.git"
else
	SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="GPL-3"
SLOT="0"
IUSE="-test"

RDEPEND="
	dev-libs/libsodium
	>=dev-libs/boost-1.66.0
	dev-libs/olm"
DEPEND="${RDEPEND}
	dev-libs/spdlog
	dev-cpp/nlohmann_json
	>=dev-util/cmake-3.11
	test? ( dev-cpp/gtest )
"
#cmake >= 3.11 needed for boost deps
src_configure() {
	local mycmakeargs=(
		-DBUILD_LIB_TESTS="$(usex test)"
	)

	cmake-utils_src_configure
}