commit:     4c9d240e0a5334c2d50bfbb7a95a4795817b5b47
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 21 15:04:01 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Mar 21 15:06:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c9d240e

net-libs/libquotient: add 0.9.3

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 net-libs/libquotient/Manifest                 |  1 +
 net-libs/libquotient/libquotient-0.9.3.ebuild | 53 +++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/net-libs/libquotient/Manifest b/net-libs/libquotient/Manifest
index 49359ec295ca..3c647e193c39 100644
--- a/net-libs/libquotient/Manifest
+++ b/net-libs/libquotient/Manifest
@@ -1 +1,2 @@
 DIST libquotient-0.9.2.tar.gz 777025 BLAKE2B 
f616283a7ebd493caba57de950c8dd1a53213b54ff3183ffd436a4d901439607d086020256955375208d3c311e20f3e3fd0b55e3164961bd885b5a0882296919
 SHA512 
c179b1ca670f9b75b945d50026b02c34dabbd58056abb6f210998229dae80dba8f00de157d9c3fc32254b613c5db149ca497a9b9695cdf5e61255e82be73db0c
+DIST libquotient-0.9.3.tar.gz 777778 BLAKE2B 
5a775321eb194e25af29a9c30ed7f2ff20a4fd98ff33fad1d2275cae9188c93e1c6c0700d3a82a98470902fb9457c116737756c68ca405ba564292fb6097a8da
 SHA512 
d9ec85cb8af11100806bced4ef084427bf508cbf1ecc22a884aab84a020a8955e5dc747ea7cda20e8de8fac1b7a5f0f98ddfc88396baa7f930000c783cb2d0ce

diff --git a/net-libs/libquotient/libquotient-0.9.3.ebuild 
b/net-libs/libquotient/libquotient-0.9.3.ebuild
new file mode 100644
index 000000000000..cafd0f8faefe
--- /dev/null
+++ b/net-libs/libquotient/libquotient-0.9.3.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Qt-based SDK to develop applications for Matrix"
+HOMEPAGE="https://github.com/quotient-im/libQuotient";
+SRC_URI="https://github.com/quotient-im/libQuotient/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+S="${WORKDIR}/libQuotient-${PV}"
+
+LICENSE="LGPL-2+"
+SLOT="0/${PV}" # FIXME: check soname on next version bump
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/olm
+       dev-libs/openssl:=
+       >=dev-libs/qtkeychain-0.14.2:=[qt6(+)]
+       >=dev-qt/qtbase-6.4:6=[gui,network,sql,ssl]
+       >=dev-qt/qtmultimedia-6.4:6
+"
+DEPEND="${RDEPEND}
+       test? ( >=dev-qt/qtbase-6.4:6[concurrent] )
+"
+
+# downstream patch
+PATCHES=( "${FILESDIR}"/${PN}-0.8.0-no-android.patch )
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_TESTING=$(usex test)
+       )
+
+       use test && mycmakeargs+=(
+               -DQuotient_INSTALL_TESTS=OFF
+       )
+       cmake_src_configure
+}
+
+src_test() {
+       # https://github.com/quotient-im/libQuotient/issues/435
+       # testolmaccount requires network connection/server set up
+       local myctestargs=(
+               -j1
+               -E "(testolmaccount)"
+       )
+       cmake_src_test
+}

Reply via email to