aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-09-07 23:36:22 +0200
committerRonny (tastytea) Gutbrod <gentoo@tastytea.de>2022-09-07 23:37:05 +0200
commit8aaf2a983367e910f1d202deae145f1584ce7fb2 (patch)
treed3af8959109494162920136252e39f5acac2c9f1 /dev-libs
parentdev-cpp/drogon: fix trantor dependency (diff)
downloadguru-8aaf2a983367e910f1d202deae145f1584ce7fb2.tar.gz
guru-8aaf2a983367e910f1d202deae145f1584ce7fb2.tar.bz2
guru-8aaf2a983367e910f1d202deae145f1584ce7fb2.zip
dev-libs/mtxclient: add 0.8.1
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/mtxclient/Manifest1
-rw-r--r--dev-libs/mtxclient/mtxclient-0.8.1.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-libs/mtxclient/Manifest b/dev-libs/mtxclient/Manifest
index 6c7b2e542..596fa7017 100644
--- a/dev-libs/mtxclient/Manifest
+++ b/dev-libs/mtxclient/Manifest
@@ -1,2 +1,3 @@
DIST mtxclient-0.7.0.tar.gz 601042 BLAKE2B 05c390d7e3f48d5c02a74fb5783693d5380141b28738b064101f6aaa2fbddf30e0d4b95dc774e68fbad93c642592806d9417344fb9cdd6b01659ec874c3ba67f SHA512 fe015e6532a62fd1d1f5828c7aff08c181a4da1279afe54a502c09ba924a404099d23e74eb176841e774f67c6701e9c0ab666e239f486e4559aaea863ba8f5f9
DIST mtxclient-0.8.0.tar.gz 606271 BLAKE2B 7a12f1f595d509cb2a0bbf9052393f67e427925875124398bf7fa6fc1f96f78084eb357d8ed1642df15274523b66ac78117ab1d088328131a5103d6a4da9b6d4 SHA512 4156432bf66d00bdabb6feee2521b659ee8b50cbcab8eae9d1c8dd496442822d204f7085baa616e51acd4cb7037994d5746fb37be73e71c1c5a3f882229f1e18
+DIST mtxclient-0.8.1.tar.gz 609617 BLAKE2B 00decdcb5a049feebaa9b1d96037923118c49633441c12320fc268e2f09d0dbaf7437f015f74752dd0fec1aa69fe957bcae7a82a0829eec8c1027c88131db653 SHA512 da2f195478cca3f9464aa8d7ca360bdca10f08f8cf658d55124ada3b37ed5b3d9d1ee640019dde58e434a1351b36bf461f4d022ad3d16f33d2957af23ea8a707
diff --git a/dev-libs/mtxclient/mtxclient-0.8.1.ebuild b/dev-libs/mtxclient/mtxclient-0.8.1.ebuild
new file mode 100644
index 000000000..f5c71567f
--- /dev/null
+++ b/dev-libs/mtxclient/mtxclient-0.8.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic
+
+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/${PV}" # ABI may break even on patch version changes
+KEYWORDS="~amd64"
+
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-libs/libfmt:=
+ dev-libs/olm
+ >=dev-libs/openssl-1.1.0:=
+ dev-libs/spdlog:=
+ >=dev-cpp/coeurl-0.2.1:=[ssl]
+"
+DEPEND="
+ ${RDEPEND}
+ dev-cpp/nlohmann_json
+ test? ( dev-cpp/gtest )
+"
+
+PATCHES=(
+ "${FILESDIR}/0.6.0_remove_network_tests.patch"
+)
+
+src_prepare() {
+ if use test; then
+ filter-lto # bug 861731
+ fi
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local -a mycmakeargs=(
+ -DBUILD_LIB_TESTS="$(usex test)"
+ -DBUILD_LIB_EXAMPLES=OFF
+ )
+
+ cmake_src_configure
+}