commit:     b0046d27df245d3af52a4cc004c8afad614f86e6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 10 21:21:26 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 21:21:26 2025 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=b0046d27

kde-frameworks/purpose-kaccounts-services: 6.11.0 version bump

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

 .../purpose-kaccounts-services-6.11.0.ebuild       | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git 
a/kde-frameworks/purpose-kaccounts-services/purpose-kaccounts-services-6.11.0.ebuild
 
b/kde-frameworks/purpose-kaccounts-services/purpose-kaccounts-services-6.11.0.ebuild
new file mode 100644
index 0000000000..82f6491dcc
--- /dev/null
+++ 
b/kde-frameworks/purpose-kaccounts-services/purpose-kaccounts-services-6.11.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# this is purely for service file creation
+ECM_I18N="false"
+ECM_HANDBOOK="false"
+KDE_ORG_NAME="${PN/-kaccounts-services/}"
+inherit ecm-common frameworks.kde.org
+
+DESCRIPTION="KAccounts generated service files for nextcloud and google 
services"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE=""
+
+RDEPEND="
+       !<kde-frameworks/purpose-5.116.0-r2:5
+       !<kde-frameworks/purpose-6.5.0-r1:6
+"
+BDEPEND="kde-apps/kaccounts-integration:6"
+
+ecm-common_inject_heredoc() {
+       cat >> CMakeLists.txt <<- _EOF_ || die
+               find_package(KAccounts6 REQUIRED)
+               
kaccounts_add_service(\${CMAKE_CURRENT_SOURCE_DIR}/src/plugins/nextcloud/nextcloud-upload.service.in)
+               
kaccounts_add_service(\${CMAKE_CURRENT_SOURCE_DIR}/src/plugins/youtube/google-youtube.service.in)
+       _EOF_
+}
+
+src_prepare() {
+       ecm-common_src_prepare
+
+       # Safety measure in case new services are added in the future
+       local known_num_of_services=2
+       local found_num_of_services=$(find . -iname "*service.in" | wc -l)
+       if [[ ${found_num_of_services} != ${known_num_of_services} ]]; then
+               eerror "Number of service files mismatch!"
+               eerror "Expected: ${known_num_of_services}"
+               eerror "Found: ${found_num_of_services}"
+               die
+       fi
+}

Reply via email to