aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/tokodon')
-rw-r--r--net-im/tokodon/metadata.xml6
-rw-r--r--net-im/tokodon/tokodon-24.04.90.ebuild17
-rw-r--r--net-im/tokodon/tokodon-24.05.49.9999.ebuild17
-rw-r--r--net-im/tokodon/tokodon-9999.ebuild17
4 files changed, 47 insertions, 10 deletions
diff --git a/net-im/tokodon/metadata.xml b/net-im/tokodon/metadata.xml
index 02ce3e9d31..0f8aab73a8 100644
--- a/net-im/tokodon/metadata.xml
+++ b/net-im/tokodon/metadata.xml
@@ -6,7 +6,11 @@
<name>Gentoo KDE Project</name>
</maintainer>
<upstream>
- <remote-id type="kde-invent">network/tokodon</remote-id>
<bugs-to>https://bugs.kde.org/</bugs-to>
+ <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.04.90.ebuild b/net-im/tokodon/tokodon-24.04.90.ebuild
index c734b9c19e..e4702950a6 100644
--- a/net-im/tokodon/tokodon-24.04.90.ebuild
+++ b/net-im/tokodon/tokodon-24.04.90.ebuild
@@ -14,16 +14,16 @@ 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"
+IUSE="+mpv webengine"
# TODO: Add kunifiedpush support once packaged (cd01eb31d1ec298d4c1e10d25a0781d799161bfc)
DEPEND="
- dev-libs/kirigami-addons:6
+ >=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
- >=dev-qt/qtwebview-${QTMIN}:6
>=kde-frameworks/breeze-icons-${KFMIN}:*
>=kde-frameworks/kcolorscheme-${KFMIN}:6
>=kde-frameworks/kconfig-${KFMIN}:6
@@ -37,10 +37,21 @@ DEPEND="
>=kde-frameworks/kwindowsystem-${KFMIN}:6
>=kde-frameworks/purpose-${KFMIN}:6
>=kde-frameworks/qqc2-desktop-style-${KFMIN}:6
- media-libs/mpvqt
+ mpv? ( media-libs/mpvqt )
+ !mpv? ( >=dev-qt/qtsvg-${QTMIN}:6 )
+ webengine? ( >=dev-qt/qtwebview-${QTMIN}:6 )
"
RDEPEND="${DEPEND}
>=kde-frameworks/kitemmodels-${KFMIN}:6
>=kde-frameworks/sonnet-${KFMIN}:6[qml]
"
BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_QTMULTIMEDIA=$(usex !mpv)
+ $(cmake_use_find_package webengine Qt6WebView) # "only makes sense on mobile"
+ )
+
+ ecm_src_configure
+}
diff --git a/net-im/tokodon/tokodon-24.05.49.9999.ebuild b/net-im/tokodon/tokodon-24.05.49.9999.ebuild
index f4fa3a4c53..b49f8839f4 100644
--- a/net-im/tokodon/tokodon-24.05.49.9999.ebuild
+++ b/net-im/tokodon/tokodon-24.05.49.9999.ebuild
@@ -14,16 +14,16 @@ 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=""
+IUSE="+mpv webengine"
# TODO: Add kunifiedpush support once packaged (cd01eb31d1ec298d4c1e10d25a0781d799161bfc)
DEPEND="
- dev-libs/kirigami-addons:6
+ >=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
- >=dev-qt/qtwebview-${QTMIN}:6
>=kde-frameworks/breeze-icons-${KFMIN}:*
>=kde-frameworks/kcolorscheme-${KFMIN}:6
>=kde-frameworks/kconfig-${KFMIN}:6
@@ -37,10 +37,21 @@ DEPEND="
>=kde-frameworks/kwindowsystem-${KFMIN}:6
>=kde-frameworks/purpose-${KFMIN}:6
>=kde-frameworks/qqc2-desktop-style-${KFMIN}:6
- media-libs/mpvqt
+ mpv? ( media-libs/mpvqt )
+ !mpv? ( >=dev-qt/qtsvg-${QTMIN}:6 )
+ webengine? ( >=dev-qt/qtwebview-${QTMIN}:6 )
"
RDEPEND="${DEPEND}
>=kde-frameworks/kitemmodels-${KFMIN}:6
>=kde-frameworks/sonnet-${KFMIN}:6[qml]
"
BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_QTMULTIMEDIA=$(usex !mpv)
+ $(cmake_use_find_package webengine Qt6WebView) # "only makes sense on mobile"
+ )
+
+ ecm_src_configure
+}
diff --git a/net-im/tokodon/tokodon-9999.ebuild b/net-im/tokodon/tokodon-9999.ebuild
index f4fa3a4c53..b49f8839f4 100644
--- a/net-im/tokodon/tokodon-9999.ebuild
+++ b/net-im/tokodon/tokodon-9999.ebuild
@@ -14,16 +14,16 @@ 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=""
+IUSE="+mpv webengine"
# TODO: Add kunifiedpush support once packaged (cd01eb31d1ec298d4c1e10d25a0781d799161bfc)
DEPEND="
- dev-libs/kirigami-addons:6
+ >=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
- >=dev-qt/qtwebview-${QTMIN}:6
>=kde-frameworks/breeze-icons-${KFMIN}:*
>=kde-frameworks/kcolorscheme-${KFMIN}:6
>=kde-frameworks/kconfig-${KFMIN}:6
@@ -37,10 +37,21 @@ DEPEND="
>=kde-frameworks/kwindowsystem-${KFMIN}:6
>=kde-frameworks/purpose-${KFMIN}:6
>=kde-frameworks/qqc2-desktop-style-${KFMIN}:6
- media-libs/mpvqt
+ mpv? ( media-libs/mpvqt )
+ !mpv? ( >=dev-qt/qtsvg-${QTMIN}:6 )
+ webengine? ( >=dev-qt/qtwebview-${QTMIN}:6 )
"
RDEPEND="${DEPEND}
>=kde-frameworks/kitemmodels-${KFMIN}:6
>=kde-frameworks/sonnet-${KFMIN}:6[qml]
"
BDEPEND="virtual/pkgconfig"
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_QTMULTIMEDIA=$(usex !mpv)
+ $(cmake_use_find_package webengine Qt6WebView) # "only makes sense on mobile"
+ )
+
+ ecm_src_configure
+}