summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kde-misc/kio-gdrive-common/Manifest1
-rw-r--r--kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.2.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/kde-misc/kio-gdrive-common/Manifest b/kde-misc/kio-gdrive-common/Manifest
new file mode 100644
index 00000000000..2d2055eee01
--- /dev/null
+++ b/kde-misc/kio-gdrive-common/Manifest
@@ -0,0 +1 @@
+DIST kio-gdrive-25.08.2.tar.xz 83060 BLAKE2B 2fcbc6e96f57dc4ea0804a83b82605a35a9be2410b36f2849f9ed0c7d5447de339b80eb9bdb0ed9a9dbb33edc92030a51a5e9bf259b1da98452c95206d160e00 SHA512 c42ffab08dfcb37097e4ff36abc602d30a81bfaf7993837ae352ff49059989649c9f78f3429712afcfaaa2b12cf66aeeea58a38d4541937565a60cd7458bdbd2
diff --git a/kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.2.ebuild b/kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.2.ebuild
new file mode 100644
index 00000000000..91327ac4686
--- /dev/null
+++ b/kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.2.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="~amd64 ~arm64"
+
+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
+}