dev-libs/mtxclient: add 0.10.1

Signed-off-by: David Roman <davidroman96@gmail.com>
Part-of: https://github.com/gentoo/guru/pull/365
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
David Roman
2025-08-27 16:12:06 +02:00
parent 5121cddaee
commit 2f7d835fc8
2 changed files with 46 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST mtxclient-0.10.0.tar.gz 633765 BLAKE2B c76c4592e51c46418e5ad610432b2edc39f4bcfe3a9f8642888addc91296b7aa129e5716b818a1257e6e1cc8b945bac7d3434d283d9ba9705cd9250f6b6ad59b SHA512 584831f67d7c15c293dd3c3cdca6e5b76c8fd477d5daa5eecea4de43431db0628f5af846f2c1cb1cfdabbd53e3f696b45c8aa736bd615729df583a33157958bd
DIST mtxclient-0.10.1.tar.gz 636035 BLAKE2B 3bb9d75c18608e07ece268950db060610d562296f831eb518ea804324d2400802f7640807c092446608f1b41c6ce62ce578aa3a7f88be5ed297b5a6b25913e50 SHA512 9b56f3e8c022f9e5d569cbd959259315c0b070ef2220c288208c64f901491b5c7365ead12c538df2ddb9774f332cf48f10d02d20baced6d497bc969da16fbe87

View File

@@ -0,0 +1,45 @@
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Client API library for Matrix, built on top of libcurl"
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/${PV}" # ABI may break even on patch version changes
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-cpp/coeurl-0.3.1:=[ssl]
dev-libs/libfmt:=
dev-libs/olm
dev-libs/openssl:=
dev-libs/re2:0/10
dev-libs/spdlog:=
"
DEPEND="
${RDEPEND}
>=dev-cpp/nlohmann_json-3.11.0
test? ( dev-cpp/gtest )
"
PATCHES=(
"${FILESDIR}"/${PN}-0.6.0-remove-network-tests.patch
)
src_configure() {
local -a mycmakeargs=(
-DBUILD_LIB_TESTS="$(usex test)"
-DBUILD_LIB_EXAMPLES=OFF
-DCMAKE_POSITION_INDEPENDENT_CODE=OFF
)
cmake_src_configure
}