diff options
Diffstat (limited to 'kde-misc/kio-gdrive-common')
-rw-r--r-- | kde-misc/kio-gdrive-common/Manifest | 3 | ||||
-rw-r--r-- | kde-misc/kio-gdrive-common/kio-gdrive-common-24.05.2.ebuild | 56 | ||||
-rw-r--r-- | kde-misc/kio-gdrive-common/metadata.xml | 12 |
3 files changed, 71 insertions, 0 deletions
diff --git a/kde-misc/kio-gdrive-common/Manifest b/kde-misc/kio-gdrive-common/Manifest new file mode 100644 index 000000000000..a7f40b45677b --- /dev/null +++ b/kde-misc/kio-gdrive-common/Manifest @@ -0,0 +1,3 @@ +DIST kio-gdrive-24.05.2.tar.xz 80828 BLAKE2B 2e5bd00895028969663ded3fe54ba077c4ec714e9dabda86d6b10ed7ab6407bac7e23438b137ad8a8dda88de00187904555a825e7bb5414d62232ced5d081ae8 SHA512 c6da9037e58e679d03bcf7a2899448ed05e81ae7337ede43f76ba2589800731a80aa0bef21468790308cd36428d43f1cb0ef17221a875f5b25065f5b9e732a2b +EBUILD kio-gdrive-common-24.05.2.ebuild 1430 BLAKE2B 483d9b4a1b4805ffc602a24443c81e8616f523447318b0aadd9d836b869ab03990d8c51c600399bf807520d55500d4c7bd34dd365bcdac1fb016fb40550ffa24 SHA512 6ad53c3494f043d949dcfb082863ab9eee2978de3d5e1c62b2ae7ce0ef5c19d818bf62c2563c73e8a7819678e350a2e52230a833826e9776e498c8fdde3c11b0 +MISC metadata.xml 412 BLAKE2B 598ab8a203f4aec565ab91e91688fe89590c31c95d8c81a5fedbf0f87ad69b9fb8c68732c83d49b01815e611ac69b01060d2f800aa9f5c4b1086dee6c43d0c17 SHA512 7e1f8840fc29325c96079d530e5c7f2db3d132ef46941924a089112737d5226525d9aa46db27d763f6a70ad37923c0c6a3d053abccfda68af053884a4d5df87d diff --git a/kde-misc/kio-gdrive-common/kio-gdrive-common-24.05.2.ebuild b/kde-misc/kio-gdrive-common/kio-gdrive-common-24.05.2.ebuild new file mode 100644 index 000000000000..732c572a03e6 --- /dev/null +++ b/kde-misc/kio-gdrive-common/kio-gdrive-common-24.05.2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 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/}" +KF5_BDEPEND=( "kde-apps/kaccounts-integration:5" ) +KF6_BDEPEND=( "kde-apps/kaccounts-integration:6" ) +KFMIN=5.115.0 +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 +" + +ECM_INSTALL_FILES=( + desktop/gdrive-network.desktop:\${KDE_INSTALL_DATADIR}/remoteview + desktop/org.kde.kio_gdrive.metainfo.xml:\${KDE_INSTALL_METAINFODIR} +) + +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}/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 +} diff --git a/kde-misc/kio-gdrive-common/metadata.xml b/kde-misc/kio-gdrive-common/metadata.xml new file mode 100644 index 000000000000..676893a6308e --- /dev/null +++ b/kde-misc/kio-gdrive-common/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=kio-gdrive</bugs-to> + <remote-id type="kde-invent">network/kio-gdrive</remote-id> + </upstream> +</pkgmetadata> |