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.1.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..123f4ef091c
--- /dev/null
+++ b/kde-misc/kio-gdrive-common/Manifest
@@ -0,0 +1 @@
+DIST kio-gdrive-25.08.1.tar.xz 83028 BLAKE2B 10e2a3c53e8895a4aba3c7a364bf2b83cfb2f9dac5f95e64681d290816b3c33e303c38cc079951df71fb0d3787a7af845672eca55e0b5afb59cfa76dfae76c33 SHA512 28d8cbf0f614296ad87b186dc4b4e0ce11ba3c87146f0874eef92a65cb2af3f9145429bbd1f1f1f6ceb83973275dc428a6c1c9314591a78ae29e095e75e8e4d9
diff --git a/kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.1.ebuild b/kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.1.ebuild
new file mode 100644
index 00000000000..91327ac4686
--- /dev/null
+++ b/kde-misc/kio-gdrive-common/kio-gdrive-common-25.08.1.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
+}