public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-im/tokodon/, net-im/tokodon/files/
@ 2024-07-12 17:40 Andreas Sturmlechner
  0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2024-07-12 17:40 UTC (permalink / raw
  To: gentoo-commits

commit:     10ac26c2343096ba8c54808b4336623e2a166baa
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 12 16:43:00 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Jul 12 17:33:34 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10ac26c2

net-im/tokodon: Re-add IUSE mpvqt

Upstream commit e55359ddc139c2a6296b67990dee47478a4fadc8

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

 .../files/tokodon-24.05.2-enable-exceptions.patch  | 34 +++++++++++++
 net-im/tokodon/metadata.xml                        |  1 +
 net-im/tokodon/tokodon-24.05.2-r2.ebuild           | 59 ++++++++++++++++++++++
 3 files changed, 94 insertions(+)

diff --git a/net-im/tokodon/files/tokodon-24.05.2-enable-exceptions.patch b/net-im/tokodon/files/tokodon-24.05.2-enable-exceptions.patch
new file mode 100644
index 000000000000..bc48595b2838
--- /dev/null
+++ b/net-im/tokodon/files/tokodon-24.05.2-enable-exceptions.patch
@@ -0,0 +1,34 @@
+From e55359ddc139c2a6296b67990dee47478a4fadc8 Mon Sep 17 00:00:00 2001
+From: Joshua Goins <josh@redstrate.com>
+Date: Fri, 12 Jul 2024 12:00:43 -0400
+Subject: [PATCH] Enable C++ exceptions even when building with QtMultimedia
+
+This is also needed in blurhash.cpp, which breaks in certain system
+configurations that don't enable exceptions by default. Now it's turned
+on regardless of the USE_QTMULTIMEDIA CMake option.
+
+I also added a note for future people to discover why this is turned on.
+---
+ src/CMakeLists.txt | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index bca2cc094..73a8345ed 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -361,9 +361,11 @@ else()
+             utils/mpvplayer.h
+     )
+     target_link_libraries(tokodon_static PUBLIC MpvQt::MpvQt)
+-    target_compile_options(tokodon_static PRIVATE -fexceptions)
+ endif()
+ 
++# NOTE: Needed for MPV, but also for blurhash.cpp. We can look into making this more selective lter.
++target_compile_options(tokodon_static PRIVATE -fexceptions)
++
+ if (USE_QTWEBVIEW)
+     qt_target_qml_sources(tokodon_static
+             QML_FILES
+-- 
+GitLab
+

diff --git a/net-im/tokodon/metadata.xml b/net-im/tokodon/metadata.xml
index 3eddf8899b4b..0f8aab73a8f4 100644
--- a/net-im/tokodon/metadata.xml
+++ b/net-im/tokodon/metadata.xml
@@ -10,6 +10,7 @@
 		<remote-id type="kde-invent">network/tokodon</remote-id>
 	</upstream>
 	<use>
+		<flag name="mpv">Use <pkg>media-libs/mpvqt</pkg> instead of <pkg>dev-qt/qtmultimedia</pkg> for video playback (default)</flag>
 		<flag name="webengine">Use <pkg>dev-qt/qtwebengine</pkg> for built-in authentication page (default is external browser)</flag>
 	</use>
 </pkgmetadata>

diff --git a/net-im/tokodon/tokodon-24.05.2-r2.ebuild b/net-im/tokodon/tokodon-24.05.2-r2.ebuild
new file mode 100644
index 000000000000..2bb862164ec8
--- /dev/null
+++ b/net-im/tokodon/tokodon-24.05.2-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_TEST="forceoptional"
+KFMIN=6.3.0
+QTMIN=6.6.2
+inherit ecm gear.kde.org
+
+DESCRIPTION="Mastodon client for Plasma and Plasma Mobile"
+HOMEPAGE="https://apps.kde.org/tokodon/"
+
+LICENSE="CC-BY-SA-4.0 GPL-2+ GPL-3+ || ( LGPL-2.1+ LGPL-3+ ) MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="+mpv webengine"
+
+# TODO: Add kunifiedpush support once packaged (cd01eb31d1ec298d4c1e10d25a0781d799161bfc)
+DEPEND="
+	>=dev-libs/kirigami-addons-1.1.0:6
+	>=dev-libs/qtkeychain-0.14.1-r1:=[qt6]
+	>=dev-qt/qtbase-${QTMIN}:6[gui,network,widgets]
+	>=dev-qt/qtdeclarative-${QTMIN}:6
+	>=dev-qt/qtsvg-${QTMIN}:6
+	>=dev-qt/qtwebsockets-${QTMIN}:6
+	>=kde-frameworks/breeze-icons-${KFMIN}:*
+	>=kde-frameworks/kcolorscheme-${KFMIN}:6
+	>=kde-frameworks/kconfig-${KFMIN}:6
+	>=kde-frameworks/kconfigwidgets-${KFMIN}:6
+	>=kde-frameworks/kcoreaddons-${KFMIN}:6
+	>=kde-frameworks/kdbusaddons-${KFMIN}:6
+	>=kde-frameworks/ki18n-${KFMIN}:6
+	>=kde-frameworks/kio-${KFMIN}:6
+	>=kde-frameworks/kirigami-${KFMIN}:6
+	>=kde-frameworks/knotifications-${KFMIN}:6
+	>=kde-frameworks/kwindowsystem-${KFMIN}:6
+	>=kde-frameworks/purpose-${KFMIN}:6
+	>=kde-frameworks/qqc2-desktop-style-${KFMIN}:6
+	mpv? ( media-libs/mpvqt )
+	!mpv? ( >=dev-qt/qtmultimedia-${QTMIN}:6[qml] )
+	webengine? ( >=dev-qt/qtwebview-${QTMIN}:6 )
+"
+RDEPEND="${DEPEND}
+	>=kde-frameworks/kitemmodels-${KFMIN}:6
+	>=kde-frameworks/sonnet-${KFMIN}:6[qml]
+"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${P}-enable-exceptions.patch" ) # bug 935363
+
+src_configure() {
+	local mycmakeargs=(
+		-DUSE_QTMULTIMEDIA=$(usex !mpv)
+		$(cmake_use_find_package webengine Qt6WebView) # "only makes sense on mobile"
+	)
+
+	ecm_src_configure
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-12 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-12 17:40 [gentoo-commits] repo/gentoo:master commit in: net-im/tokodon/, net-im/tokodon/files/ Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox