summaryrefslogtreecommitdiff
path: root/kde-misc
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2025-07-24 20:47:28 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2025-07-25 14:55:05 +0200
commitbbacaae8e106f76d11bd99149c5c3c1da0fd215a (patch)
tree1ea1baaa529f3c7a2c681e446245871c51a0d3d2 /kde-misc
parent55668cc024a6e0101fc767898a8c6d8c3d02a7dd (diff)
downloadkde-bbacaae8e106f76d11bd99149c5c3c1da0fd215a.tar.gz
kde-bbacaae8e106f76d11bd99149c5c3c1da0fd215a.tar.bz2
kde-bbacaae8e106f76d11bd99149c5c3c1da0fd215a.zip
kde-misc/kio-gdrive-common: Add 25.08 stable branch
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-misc')
-rw-r--r--kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.49.9999.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.49.9999.ebuild b/kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.49.9999.ebuild
new file mode 100644
index 00000000000..d7a85e88f56
--- /dev/null
+++ b/kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.49.9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="true"
+KDE_ORG_CATEGORY="network"
+KDE_ORG_NAME="${PN/-common/}"
+inherit ecm-common gear.kde.org
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND="
+ !<kde-misc/kio-gdrive-23.08.5-r2:5
+ !<kde-misc/kio-gdrive-24.05.2-r1:6
+"
+BDEPEND="kde-apps/kaccounts-integration:6"
+
+ECM_INSTALL_FILES=(
+ desktop/gdrive-network.desktop:\${KDE_INSTALL_DATADIR}/remoteview
+ desktop/org.kde.kio_gdrive.metainfo.xml:\${KDE_INSTALL_METAINFODIR}
+)
+
+ecm-common_inject_heredoc() {
+ cat >> CMakeLists.txt <<- _EOF_ || die
+ find_package(KAccounts6 REQUIRED)
+ kaccounts_add_service(\${CMAKE_CURRENT_SOURCE_DIR}/kaccounts/google-drive.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=1
+ 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
+}