blob: 6589f98e00b4b4988dbe9d6da16028c2b40ab7cd (
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
|
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
DESCRIPTION="Client API library for Matrix, built on top of Boost.Asio"
HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient"
SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
IUSE="test"
KEYWORDS="~amd64"
RDEPEND="
>=dev-libs/boost-1.70.0
dev-libs/olm
>=dev-libs/openssl-1.1.0
dev-cpp/nlohmann_json
"
DEPEND="
${RDEPEND}
dev-libs/spdlog
test? ( dev-cpp/gtest )
"
# remove_failing_tests depends on remove_network_tests.
PATCHES=(
"${FILESDIR}/0.3.0_remove_network_tests.patch"
"${FILESDIR}/0.3.0_remove_failing_tests.patch"
)
src_configure() {
local -a mycmakeargs=(
-DBUILD_LIB_TESTS="$(usex test)"
-DBUILD_LIB_EXAMPLES=OFF
)
cmake_src_configure
}
|