From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1598011-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 5B95315815E
	for <garchives@archives.gentoo.org>; Tue,  6 Feb 2024 15:14:28 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 3E101E29D8;
	Tue,  6 Feb 2024 15:14:27 +0000 (UTC)
Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 92C2EE29D9
	for <gentoo-commits@lists.gentoo.org>; Tue,  6 Feb 2024 15:14:26 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id A59AA3430B9
	for <gentoo-commits@lists.gentoo.org>; Tue,  6 Feb 2024 15:14:25 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 0B85114BE
	for <gentoo-commits@lists.gentoo.org>; Tue,  6 Feb 2024 15:14:24 +0000 (UTC)
From: "Anna Vyalkova" <cyber+gentoo@sysrq.in>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" <cyber+gentoo@sysrq.in>
Message-ID: <1707232409.0f22f81bf5b92f30e6f956ad4502cec032d7b527.cybertailor@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-im/nheko/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: net-im/nheko/nheko-0.11.3-r2.ebuild
X-VCS-Directories: net-im/nheko/
X-VCS-Committer: cybertailor
X-VCS-Committer-Name: Anna Vyalkova
X-VCS-Revision: 0f22f81bf5b92f30e6f956ad4502cec032d7b527
X-VCS-Branch: dev
Date: Tue,  6 Feb 2024 15:14:24 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 303dc568-3f9e-4dfe-89d6-a0d8cb9c23b7
X-Archives-Hash: 600a1709c98dea66934143c77e12733a

commit:     0f22f81bf5b92f30e6f956ad4502cec032d7b527
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Tue Feb  6 14:47:34 2024 +0000
Commit:     Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Tue Feb  6 15:13:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0f22f81b

net-im/nheko: don't require ssl support for cpp-httplib

It is used only for launching an HTTP server.

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-im/nheko/nheko-0.11.3-r2.ebuild | 130 ++++++++++++++++++++++++++++++++++++
 1 file changed, 130 insertions(+)

diff --git a/net-im/nheko/nheko-0.11.3-r2.ebuild b/net-im/nheko/nheko-0.11.3-r2.ebuild
new file mode 100644
index 0000000000..b4fb5ac039
--- /dev/null
+++ b/net-im/nheko/nheko-0.11.3-r2.ebuild
@@ -0,0 +1,130 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake optfeature xdg
+
+MY_P="${PN}-v${PV}"
+DESCRIPTION="Desktop client for the Matrix protocol"
+HOMEPAGE="https://nheko-reborn.github.io/"
+SRC_URI="https://nheko.im/nheko-reborn/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-3 MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="X doc +jpeg man tiff v4l video voip +webp"
+REQUIRED_USE="video? ( voip )"
+
+MY_GST_V="1.18"
+COMMON_DEPEND="
+	app-text/cmark:=
+	>=dev-cpp/blurhash-0.2.0:=
+	dev-cpp/cpp-httplib:=
+	dev-db/lmdb:=
+	dev-libs/libfmt:=
+	>=dev-libs/mtxclient-0.9.0:=
+	dev-libs/olm
+	>=dev-libs/qtkeychain-0.12.0:=[qt5]
+	dev-libs/spdlog:=
+	dev-qt/qtcore:5
+	dev-qt/qtdbus:5
+	dev-qt/qtdeclarative:5[widgets]
+	dev-qt/qtgui:5[jpeg?,png]
+	dev-qt/qtmultimedia:5[qml]
+	dev-qt/qtnetwork:5
+	dev-qt/qtsvg:5
+	dev-qt/qtwidgets:5
+	voip? (
+		dev-libs/glib:2
+		>=media-libs/gst-plugins-bad-${MY_GST_V}:1.0
+		>=media-libs/gst-plugins-base-${MY_GST_V}:1.0
+		>=media-libs/gstreamer-${MY_GST_V}:1.0
+		video? (
+			X? (
+				x11-libs/libxcb:=
+				x11-libs/xcb-util-wm
+			)
+		)
+	)
+"
+# 'dev-qt/qtconcurrent' is linked but never used
+DEPEND="${COMMON_DEPEND}
+	dev-cpp/nlohmann_json
+	>=dev-db/lmdb++-1.0.0
+	dev-qt/qtconcurrent:5
+"
+# 'virtual/notification-daemon' is required because of upstream bug:
+# https://github.com/Nheko-Reborn/nheko/issues/693
+RDEPEND="${COMMON_DEPEND}
+	dev-qt/qtgraphicaleffects:5
+	dev-qt/qtquickcontrols2:5
+	virtual/notification-daemon
+	tiff? ( dev-qt/qtimageformats:5 )
+	voip? (
+		>=media-plugins/gst-plugins-dtls-${MY_GST_V}:1.0
+		media-plugins/gst-plugins-libnice:1.0
+		>=media-plugins/gst-plugins-meta-${MY_GST_V}:1.0[opus]
+		>=media-plugins/gst-plugins-srtp-${MY_GST_V}:1.0
+		>=media-plugins/gst-plugins-webrtc-${MY_GST_V}:1.0
+		video? (
+			>=media-libs/gst-plugins-base-${MY_GST_V}:1.0[opengl]
+			>=media-plugins/gst-plugins-meta-${MY_GST_V}:1.0[v4l?,vpx]
+			>=media-plugins/gst-plugins-qt5-${MY_GST_V}:1.0
+			X? (
+				>=media-plugins/gst-plugins-ximagesrc-${MY_GST_V}:1.0
+			)
+		)
+	)
+	webp? ( dev-qt/qtimageformats:5 )
+"
+BDEPEND="
+	dev-qt/linguist-tools:5
+	doc? ( app-text/doxygen[dot] )
+	man? (
+		|| (
+			app-text/asciidoc
+			dev-ruby/asciidoctor
+		)
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-fix-explicit-optional-construction.patch
+	"${FILESDIR}"/${P}-fix-build-against-fmt10.patch
+)
+
+DOCS=( {CHANGELOG,README}.md )
+
+src_configure() {
+	local -a mycmakeargs=(
+		-DSCREENSHARE_X11=$(if use video && use X; then echo ON; else echo OFF; fi)
+		-DVOIP=$(usex voip)
+		-DBUILD_DOCS=$(usex doc)
+		-DMAN=$(usex man)
+		-DUSE_BUNDLED_CPPHTTPLIB=OFF
+		-DUSE_BUNDLED_BLURHASH=OFF
+
+		# See #890903 and #911111
+		-DCMAKE_POSITION_INDEPENDENT_CODE=OFF
+
+		# Handle transitive dependencies
+		-DOPENSSL_FOUND:BOOL=TRUE
+		-Dlibevent_core_FOUND:BOOL=TRUE
+		-Dlibevent_pthreads_FOUND:BOOL=TRUE
+		-Dlibcurl_FOUND:BOOL=TRUE
+		-Dre2_FOUND:BOOL=TRUE
+	)
+
+	use doc && HTML_DOCS=( "${BUILD_DIR}"/docs/html/. )
+	cmake_src_configure
+}
+
+pkg_postinst() {
+	optfeature "additional image formats support" kde-frameworks/kimageformats:5
+	optfeature "audio & video file playback support" media-plugins/gst-plugins-meta[ffmpeg]
+	optfeature "identicons support" dev-cpp/qt-jdenticon
+
+	xdg_pkg_postinst
+}