From 522abcff27f43dbd66f4dd72eec414b256a21bb7 Mon Sep 17 00:00:00 2001
From: Alexander Golubev <fatzer2@gmail.com>
Date: Tue, 1 Jul 2025 22:30:52 +0300
Subject: trinity-base/kopete: fix dependencies

In particular add dev-tqt/tqca as a dependency for xmpp

Closes: https://mirror.git.trinitydesktop.org/gitea/TDE/tde-packaging-gentoo/issues/390
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
---
 trinity-base/kopete/kopete-14.1.1.ebuild | 16 +++++++++-------
 trinity-base/kopete/kopete-14.1.2.ebuild | 14 ++++++++------
 trinity-base/kopete/kopete-9999.ebuild   | 16 +++++++++-------
 3 files changed, 26 insertions(+), 20 deletions(-)

diff --git a/trinity-base/kopete/kopete-14.1.1.ebuild b/trinity-base/kopete/kopete-14.1.1.ebuild
index 8001a364..24ffd40e 100644
--- a/trinity-base/kopete/kopete-14.1.1.ebuild
+++ b/trinity-base/kopete/kopete-14.1.1.ebuild
@@ -1,5 +1,5 @@
-# Copyright 1999-2023 Gentoo Authors
-# Copyright 2020-2023 The Trinity Desktop Project
+# Copyright 1999-2024 Gentoo Authors
+# Copyright 2020-2025 The Trinity Desktop Project
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
@@ -13,12 +13,12 @@ DESCRIPTION="Trinity multi-protocol IM client"
 if [[ ${PV} != *9999* ]] ; then
 	KEYWORDS="~amd64 ~arm64 ~x86"
 fi
-IUSE="gsmlib jingle kernel_linux netmeeting speex"
+IUSE="gsmlib jingle kernel_linux netmeeting speex ssl"
 PLUGINS="addbookmarks alias autoreplace connectionstatus contactnotes crypt
 	highlight history latex motionautoaway netmeeting nowlistening smpppdcs
 	statistics texteffect translator webpresence"
 PROTOCOLS="gadu groupwise irc msn oscar sametime sms winpopup xmpp yahoo"
-# unsupported USE="v4l2 opengl xscreensaver ssl emoticons-manager "
+# unsupported USE="v4l2 opengl xscreensaver emoticons-manager "
 # USE=xmms works only with xmms1
 IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
 REQUIRED_USE="
@@ -33,7 +33,6 @@ REQUIRED_USE="
 #	kernel_linux? ( virtual/opengl )
 #	opengl? ( dev-qt/qt-meta[opengl] )
 #	xscreensaver? ( x11-libs/libXScrnSaver )
-#	xmpp|groupwice? =app-crypt/qca-1.0*
 COMMON_DEPEND="
 	jingle? ( dev-libs/glib )
 	netmeeting? ( dev-libs/glib )
@@ -45,9 +44,11 @@ COMMON_DEPEND="
 		dev-libs/expat
 		speex? ( media-libs/speex )
 	)
-	gsmlib? ( app-mobilephone/gsmlib )
 	gadu? ( net-libs/libgadu )
+	gsmlib? ( app-mobilephone/gsmlib )
 	sametime? ( net-libs/meanwhile )
+	groupwise? ( ~dev-tqt/tqca-${PV} )
+	xmpp? ( ~dev-tqt/tqca-${PV} )
 	media-libs/libv4l
 "
 
@@ -63,7 +64,6 @@ DEPEND="${COMMON_DEPEND}
 
 # MISSING RDEPEND
 #     netmeeting? ( net-voip/ekiga )
-#     ssl? ( =app-crypt/qca-tls-1.0* )
 RDEPEND="${COMMON_DEPEND}
 	crypt? ( app-crypt/gnupg )
 	latex? (
@@ -71,6 +71,7 @@ RDEPEND="${COMMON_DEPEND}
 		virtual/latex-base
 	)
 	sms? ( !gsmlib? ( app-mobilephone/smssend ) )
+	ssl? ( ~dev-tqt/tqca-${PV}[ssl] )
 "
 
 src_configure() {
@@ -79,6 +80,7 @@ src_configure() {
 		-DWITH_GSM="$(usex gsmlib)"
 		-DWITH_WEBCAM="$(usex netmeeting)"
 		-DWITH_SPEEX="$(usex speex)"
+		-DWITH_LIBXSLT="$(usex webpresence)"
 
 		-DBUILD_KOPETE_PLUGIN_LATEX="$(usex latex)"
 		-DBUILD_KOPETE_PLUGIN_AUTOREPLACE="$(usex autoreplace)"
diff --git a/trinity-base/kopete/kopete-14.1.2.ebuild b/trinity-base/kopete/kopete-14.1.2.ebuild
index d9f178be..24ffd40e 100644
--- a/trinity-base/kopete/kopete-14.1.2.ebuild
+++ b/trinity-base/kopete/kopete-14.1.2.ebuild
@@ -1,5 +1,5 @@
 # Copyright 1999-2024 Gentoo Authors
-# Copyright 2020-2024 The Trinity Desktop Project
+# Copyright 2020-2025 The Trinity Desktop Project
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
@@ -13,12 +13,12 @@ DESCRIPTION="Trinity multi-protocol IM client"
 if [[ ${PV} != *9999* ]] ; then
 	KEYWORDS="~amd64 ~arm64 ~x86"
 fi
-IUSE="gsmlib jingle kernel_linux netmeeting speex"
+IUSE="gsmlib jingle kernel_linux netmeeting speex ssl"
 PLUGINS="addbookmarks alias autoreplace connectionstatus contactnotes crypt
 	highlight history latex motionautoaway netmeeting nowlistening smpppdcs
 	statistics texteffect translator webpresence"
 PROTOCOLS="gadu groupwise irc msn oscar sametime sms winpopup xmpp yahoo"
-# unsupported USE="v4l2 opengl xscreensaver ssl emoticons-manager "
+# unsupported USE="v4l2 opengl xscreensaver emoticons-manager "
 # USE=xmms works only with xmms1
 IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
 REQUIRED_USE="
@@ -33,7 +33,6 @@ REQUIRED_USE="
 #	kernel_linux? ( virtual/opengl )
 #	opengl? ( dev-qt/qt-meta[opengl] )
 #	xscreensaver? ( x11-libs/libXScrnSaver )
-#	xmpp|groupwice? =app-crypt/qca-1.0*
 COMMON_DEPEND="
 	jingle? ( dev-libs/glib )
 	netmeeting? ( dev-libs/glib )
@@ -45,9 +44,11 @@ COMMON_DEPEND="
 		dev-libs/expat
 		speex? ( media-libs/speex )
 	)
-	gsmlib? ( app-mobilephone/gsmlib )
 	gadu? ( net-libs/libgadu )
+	gsmlib? ( app-mobilephone/gsmlib )
 	sametime? ( net-libs/meanwhile )
+	groupwise? ( ~dev-tqt/tqca-${PV} )
+	xmpp? ( ~dev-tqt/tqca-${PV} )
 	media-libs/libv4l
 "
 
@@ -63,7 +64,6 @@ DEPEND="${COMMON_DEPEND}
 
 # MISSING RDEPEND
 #     netmeeting? ( net-voip/ekiga )
-#     ssl? ( =app-crypt/qca-tls-1.0* )
 RDEPEND="${COMMON_DEPEND}
 	crypt? ( app-crypt/gnupg )
 	latex? (
@@ -71,6 +71,7 @@ RDEPEND="${COMMON_DEPEND}
 		virtual/latex-base
 	)
 	sms? ( !gsmlib? ( app-mobilephone/smssend ) )
+	ssl? ( ~dev-tqt/tqca-${PV}[ssl] )
 "
 
 src_configure() {
@@ -79,6 +80,7 @@ src_configure() {
 		-DWITH_GSM="$(usex gsmlib)"
 		-DWITH_WEBCAM="$(usex netmeeting)"
 		-DWITH_SPEEX="$(usex speex)"
+		-DWITH_LIBXSLT="$(usex webpresence)"
 
 		-DBUILD_KOPETE_PLUGIN_LATEX="$(usex latex)"
 		-DBUILD_KOPETE_PLUGIN_AUTOREPLACE="$(usex autoreplace)"
diff --git a/trinity-base/kopete/kopete-9999.ebuild b/trinity-base/kopete/kopete-9999.ebuild
index 22a6f683..24ffd40e 100644
--- a/trinity-base/kopete/kopete-9999.ebuild
+++ b/trinity-base/kopete/kopete-9999.ebuild
@@ -1,5 +1,5 @@
-# Copyright 1999-2022 Gentoo Authors
-# Copyright 2020-2022 The Trinity Desktop Project
+# Copyright 1999-2024 Gentoo Authors
+# Copyright 2020-2025 The Trinity Desktop Project
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="8"
@@ -13,12 +13,12 @@ DESCRIPTION="Trinity multi-protocol IM client"
 if [[ ${PV} != *9999* ]] ; then
 	KEYWORDS="~amd64 ~arm64 ~x86"
 fi
-IUSE="gsmlib jingle kernel_linux netmeeting speex"
+IUSE="gsmlib jingle kernel_linux netmeeting speex ssl"
 PLUGINS="addbookmarks alias autoreplace connectionstatus contactnotes crypt
 	highlight history latex motionautoaway netmeeting nowlistening smpppdcs
 	statistics texteffect translator webpresence"
 PROTOCOLS="gadu groupwise irc msn oscar sametime sms winpopup xmpp yahoo"
-# unsupported USE="v4l2 opengl xscreensaver ssl emoticons-manager "
+# unsupported USE="v4l2 opengl xscreensaver emoticons-manager "
 # USE=xmms works only with xmms1
 IUSE="${IUSE} ${PLUGINS} ${PROTOCOLS}"
 REQUIRED_USE="
@@ -33,7 +33,6 @@ REQUIRED_USE="
 #	kernel_linux? ( virtual/opengl )
 #	opengl? ( dev-qt/qt-meta[opengl] )
 #	xscreensaver? ( x11-libs/libXScrnSaver )
-#	xmpp|groupwice? =app-crypt/qca-1.0*
 COMMON_DEPEND="
 	jingle? ( dev-libs/glib )
 	netmeeting? ( dev-libs/glib )
@@ -45,9 +44,11 @@ COMMON_DEPEND="
 		dev-libs/expat
 		speex? ( media-libs/speex )
 	)
-	gsmlib? ( app-mobilephone/gsmlib )
 	gadu? ( net-libs/libgadu )
+	gsmlib? ( app-mobilephone/gsmlib )
 	sametime? ( net-libs/meanwhile )
+	groupwise? ( ~dev-tqt/tqca-${PV} )
+	xmpp? ( ~dev-tqt/tqca-${PV} )
 	media-libs/libv4l
 "
 
@@ -63,7 +64,6 @@ DEPEND="${COMMON_DEPEND}
 
 # MISSING RDEPEND
 #     netmeeting? ( net-voip/ekiga )
-#     ssl? ( =app-crypt/qca-tls-1.0* )
 RDEPEND="${COMMON_DEPEND}
 	crypt? ( app-crypt/gnupg )
 	latex? (
@@ -71,6 +71,7 @@ RDEPEND="${COMMON_DEPEND}
 		virtual/latex-base
 	)
 	sms? ( !gsmlib? ( app-mobilephone/smssend ) )
+	ssl? ( ~dev-tqt/tqca-${PV}[ssl] )
 "
 
 src_configure() {
@@ -79,6 +80,7 @@ src_configure() {
 		-DWITH_GSM="$(usex gsmlib)"
 		-DWITH_WEBCAM="$(usex netmeeting)"
 		-DWITH_SPEEX="$(usex speex)"
+		-DWITH_LIBXSLT="$(usex webpresence)"
 
 		-DBUILD_KOPETE_PLUGIN_LATEX="$(usex latex)"
 		-DBUILD_KOPETE_PLUGIN_AUTOREPLACE="$(usex autoreplace)"
-- 
cgit v1.2.3

