summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2024-08-20 17:34:50 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2024-08-21 23:16:14 +0200
commit7d9dcc87939e2e96d0c9f53e06ac5691719e3cd8 (patch)
treefa7618417acae47c89fe8133e3ea7815aa8865ae /kde-frameworks/purpose-kaccounts-services
parentkde-misc/kio-gdrive: drop 23.08.5-r1, 24.05.2 (diff)
downloadgentoo-7d9dcc87939e2e96d0c9f53e06ac5691719e3cd8.tar.gz
gentoo-7d9dcc87939e2e96d0c9f53e06ac5691719e3cd8.tar.bz2
gentoo-7d9dcc87939e2e96d0c9f53e06ac5691719e3cd8.zip
kde-frameworks/purpose-kaccounts-services: new package, add 6.5.0
Split service files from kde-frameworks/purpose. KAccounts is used to generate these service files, which pulls in dev-qt/qtwebengine down the depgraph line. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks/purpose-kaccounts-services')
-rw-r--r--kde-frameworks/purpose-kaccounts-services/Manifest1
-rw-r--r--kde-frameworks/purpose-kaccounts-services/metadata.xml12
-rw-r--r--kde-frameworks/purpose-kaccounts-services/purpose-kaccounts-services-6.5.0.ebuild56
3 files changed, 69 insertions, 0 deletions
diff --git a/kde-frameworks/purpose-kaccounts-services/Manifest b/kde-frameworks/purpose-kaccounts-services/Manifest
new file mode 100644
index 000000000000..e9a50ad9eb07
--- /dev/null
+++ b/kde-frameworks/purpose-kaccounts-services/Manifest
@@ -0,0 +1 @@
+DIST purpose-6.5.0.tar.xz 174700 BLAKE2B 780682a8308023e40723616f3f69704fc168d4a3391194948a7345246cf0014572d0100fccb2575c11251b067c26a21f40997418bb98e35287e7c88b3454c9e2 SHA512 8f0947545c125b08ed34a36321d73ff99725e6e537ec7675f8cff0673c11b7a4570bf194da409b43c997927a844f2236ebaf07fd193f887d57e768485f41ca0b
diff --git a/kde-frameworks/purpose-kaccounts-services/metadata.xml b/kde-frameworks/purpose-kaccounts-services/metadata.xml
new file mode 100644
index 000000000000..ec7aae97d041
--- /dev/null
+++ b/kde-frameworks/purpose-kaccounts-services/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://bugs.kde.org/enter_bug.cgi?product=frameworks-purpose</bugs-to>
+ <remote-id type="kde-invent">frameworks/purpose</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/kde-frameworks/purpose-kaccounts-services/purpose-kaccounts-services-6.5.0.ebuild b/kde-frameworks/purpose-kaccounts-services/purpose-kaccounts-services-6.5.0.ebuild
new file mode 100644
index 000000000000..11d7765f9513
--- /dev/null
+++ b/kde-frameworks/purpose-kaccounts-services/purpose-kaccounts-services-6.5.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2024 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/}"
+KF5_BDEPEND=( "kde-apps/kaccounts-integration:5" )
+KF6_BDEPEND=( "kde-apps/kaccounts-integration:6" )
+KFMIN=5.115.0
+inherit ecm-common frameworks.kde.org
+
+DESCRIPTION="KAccounts generated service files for nextcloud and google services"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE=""
+
+RDEPEND="
+ !<kde-frameworks/purpose-5.116.0-r2:5
+ !<kde-frameworks/purpose-6.5.0-r1:6
+"
+
+ecm-common-check_deps() {
+ return $(has_version -b "kde-apps/kaccounts-integration:6")
+}
+
+ecm-common_inject_heredoc() {
+ cat >> CMakeLists.txt <<- _EOF_ || die
+ if(KFSLOT STREQUAL "6")
+ find_package(KAccounts6 REQUIRED)
+ else()
+ find_package(KAccounts REQUIRED)
+ endif()
+
+ 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
+}