commit:     84bc38bdc07b9894e7d36a4d7be9b669c1f589ed
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Mon Feb 20 12:06:09 2023 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Mon Feb 20 14:17:18 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=84bc38bd

dev-libs/mtxclient: add 0.9.2

remove LTO workaround for tests

Bug: https://bugs.gentoo.org/861731
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 dev-libs/mtxclient/Manifest               |  1 +
 dev-libs/mtxclient/mtxclient-0.9.2.ebuild | 45 +++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-libs/mtxclient/Manifest b/dev-libs/mtxclient/Manifest
index 4ada75109..c358e6b5c 100644
--- a/dev-libs/mtxclient/Manifest
+++ b/dev-libs/mtxclient/Manifest
@@ -1,2 +1,3 @@
 DIST mtxclient-0.8.2.tar.gz 609627 BLAKE2B 
c88441dfb8792246199cdf8cfd5c69c52d6086ab4013be15fe0c471345ebd157e5a1451eceb7e5b73ac06229e87977103ed1f439c47e3d25172d5c39152b29fa
 SHA512 
0f9d07f5001f933dbf0163b865056361b583de2f2aeae159c5d05ff54adbf88cf7033ad57ee3232b032b4f75328bc410d0059a9dcc209b62aa0ae67b2405667f
 DIST mtxclient-0.9.1.tar.gz 621917 BLAKE2B 
aaadc1228ebd792c46e6aa4ff9dab9755bb6215b8ed37f65f3c12192b509ceae46e4e3e1f26aa400b14cfe6690af816139d273028cb0d58e19c756835c53209f
 SHA512 
578d18add07aa2bf52fea41f99bcc91fa403a78d6d4d656a9775ae141fa2f6bffc2f1f0dc95740eab1d46bb9ac79a62691192682d06a75a8cee3e94ad93723c1
+DIST mtxclient-0.9.2.tar.gz 623481 BLAKE2B 
322506eaac9abf2463c08bee5e17547d7a33cf473785839566ec185db97303f7e33d5b58aa85735fa066f7f2f507e682bec985dc9dffa83f9b9ac799ed78c80d
 SHA512 
87c9cd23ce8a52b2f850e3770eb51d03f40f4a5e45b5e536b2446932fc866b8835212d9364c5890af7404843da2547bdc94bb5d3d1933903fea8374b8900fd73

diff --git a/dev-libs/mtxclient/mtxclient-0.9.2.ebuild 
b/dev-libs/mtxclient/mtxclient-0.9.2.ebuild
new file mode 100644
index 000000000..a1a040656
--- /dev/null
+++ b/dev-libs/mtxclient/mtxclient-0.9.2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2020-2023 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="+pie test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/libfmt:=
+       dev-libs/olm
+       >=dev-libs/openssl-1.1.0:=
+       >=dev-libs/re2-0.2022.04.01:=
+       dev-libs/spdlog:=
+       >=dev-cpp/coeurl-0.3.0:=[ssl]
+"
+DEPEND="
+       ${RDEPEND}
+       dev-cpp/nlohmann_json
+       test? ( dev-cpp/gtest )
+"
+
+PATCHES=(
+       "${FILESDIR}/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=$(usex pie)
+       )
+
+       cmake_src_configure
+}

Reply via email to