summaryrefslogtreecommitdiff
path: root/kde-misc/kio-gdrive-common
diff options
context:
space:
mode:
Diffstat (limited to 'kde-misc/kio-gdrive-common')
-rw-r--r--kde-misc/kio-gdrive-common/Manifest1
-rw-r--r--kde-misc/kio-gdrive-common/kio-gdrive-common-25.12.0.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..70d6b550314
--- /dev/null
+++ b/kde-misc/kio-gdrive-common/Manifest
@@ -0,0 +1 @@
+DIST kio-gdrive-25.12.0.tar.xz 83176 BLAKE2B a850267722fd72fa4903927816f96c36d05a0e9154c8d62dc7c0c4f71850f689753bee2605814b97e6b6e69825a11d49c704bd22143adff6acfbc251fc36ef89 SHA512 5aec6ffbcecb695527d52ed4f9146778d2de22f57923e00b4998aeffeab04dca29a7e0c6cf9feb3c16266e69a6c031607ffa01b0a2327204753e637b4be1abdc
diff --git a/kde-misc/kio-gdrive-common/kio-gdrive-common-25.12.0.ebuild b/kde-misc/kio-gdrive-common/kio-gdrive-common-25.12.0.ebuild
new file mode 100644
index 00000000000..91327ac4686
--- /dev/null
+++ b/kde-misc/kio-gdrive-common/kio-gdrive-common-25.12.0.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
+}