Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/mtxclient/
Date: Wed, 21 Apr 2021 06:21:13
Message-Id: 1618985991.8dfbc6cb487c2725fcaa712aed390f61b9b2915a.tastytea@gentoo
1 commit: 8dfbc6cb487c2725fcaa712aed390f61b9b2915a
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Wed Apr 21 06:13:41 2021 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Wed Apr 21 06:19:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8dfbc6cb
7
8 Revert "dev-libs/mtxclient: Remove old ebuild."
9
10 Turns out <=net-im/nheko-0.8.1 doesn't work with
11 >=dev-libs/mtxclient-0.5.0.
12
13 This reverts commit 760f3c9463222a4f35caf23d6ed804cfa44ad3f3.
14
15 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
16
17 dev-libs/mtxclient/Manifest | 1 +
18 dev-libs/mtxclient/mtxclient-0.4.1.ebuild | 44 +++++++++++++++++++++++++++++++
19 2 files changed, 45 insertions(+)
20
21 diff --git a/dev-libs/mtxclient/Manifest b/dev-libs/mtxclient/Manifest
22 index b80e8680c..8d47a37c3 100644
23 --- a/dev-libs/mtxclient/Manifest
24 +++ b/dev-libs/mtxclient/Manifest
25 @@ -1,2 +1,3 @@
26 +DIST mtxclient-0.4.1.tar.gz 572552 BLAKE2B 4d0facaffb0ce1fadc1011b7d557774bcd9ffcef7349894255b9522bcc4e9228739ad8da5a60b0addf6835cf5de3613bebc19842b6922ab9cf94f88c944d0091 SHA512 246c84bc8bc7dd6fd688c79601d16e931b5aaf5fe967d6ea226f1961df2b74ad70d4e790b7400051e007506f58ecd6594ccead31bd3c6308aa2c6727b122c203
27 DIST mtxclient-0.5.0.tar.gz 582236 BLAKE2B 5166c32127973e886adadb6ad8a2895ba5ac77f78e9a774f039b0c8d4329078c0b8de965b477ce1c3a7e4cd929de8ba9b8d4f8d8b0452f6c49c873285a4d8b3a SHA512 6e1e9f5ecb1e6911b5bee85569e4477f6ee4c86ef479a3f408c8bbd187750b3b78db1db0337b51e1df9b90fee3b486eaf909bb79b69a97919685074eee3a82cd
28 DIST mtxclient-0.5.1.tar.gz 582367 BLAKE2B d30a5e0e16d6783d8d1175e5f4144d845fe62897dcc7952cb1598470befa1da47a2b06cd70a60f511a1c2e7656eca2cf5a87734cbc61b79d2a05df295fd256e0 SHA512 f0a5e823bd7f3cccdf5f919c04c36a1a5ab4d2627a6f8f3fac78e4b300eda3b9e1f5060fb31e6e47267bbafc3a03f6c2a2d16c2323e63ce4889f551860e7703f
29
30 diff --git a/dev-libs/mtxclient/mtxclient-0.4.1.ebuild b/dev-libs/mtxclient/mtxclient-0.4.1.ebuild
31 new file mode 100644
32 index 000000000..43315c94d
33 --- /dev/null
34 +++ b/dev-libs/mtxclient/mtxclient-0.4.1.ebuild
35 @@ -0,0 +1,44 @@
36 +# Copyright 2020-2021 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit cmake
42 +
43 +DESCRIPTION="Client API library for Matrix, built on top of Boost.Asio"
44 +HOMEPAGE="https://github.com/Nheko-Reborn/mtxclient"
45 +SRC_URI="https://github.com/Nheko-Reborn/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +
51 +IUSE="test"
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + >=dev-libs/boost-1.70.0
56 + dev-libs/olm
57 + >=dev-libs/openssl-1.1.0
58 + dev-cpp/nlohmann_json
59 +"
60 +DEPEND="
61 + ${RDEPEND}
62 + dev-libs/spdlog
63 + test? ( dev-cpp/gtest )
64 +"
65 +
66 +# remove_failing_tests depends on remove_network_tests.
67 +PATCHES=(
68 + "${FILESDIR}/0.3.0_remove_network_tests.patch"
69 + "${FILESDIR}/0.3.0_remove_failing_tests.patch"
70 +)
71 +
72 +src_configure() {
73 + local -a mycmakeargs=(
74 + -DBUILD_LIB_TESTS="$(usex test)"
75 + -DBUILD_LIB_EXAMPLES=OFF
76 + )
77 +
78 + cmake_src_configure
79 +}