diff --git a/kde-misc/kio-gdrive-common/Manifest b/kde-misc/kio-gdrive-common/Manifest index 6444e8b80d2cf..9750d99ea254d 100644 --- a/kde-misc/kio-gdrive-common/Manifest +++ b/kde-misc/kio-gdrive-common/Manifest @@ -1 +1,2 @@ DIST kio-gdrive-24.05.2.tar.xz 80828 BLAKE2B 2e5bd00895028969663ded3fe54ba077c4ec714e9dabda86d6b10ed7ab6407bac7e23438b137ad8a8dda88de00187904555a825e7bb5414d62232ced5d081ae8 SHA512 c6da9037e58e679d03bcf7a2899448ed05e81ae7337ede43f76ba2589800731a80aa0bef21468790308cd36428d43f1cb0ef17221a875f5b25065f5b9e732a2b +DIST kio-gdrive-24.08.0.tar.xz 80816 BLAKE2B 0feb10270cee5c64a221c8cb664c0a385dbb18c7be649cc1f530fbb45b75f89581300cdac2d4cc1711fda64f74bede9562046f65508f5c910afb1d4332422663 SHA512 cd1176c22742e642d795be6c72734b23aefcb5fe82bb41a9da8e43de08421055ba29241e63eafe6b927024db1c7b9b1ae1ab441ac385106b069ce2b99e28c588 diff --git a/kde-misc/kio-gdrive-common/kio-gdrive-common-24.08.0.ebuild b/kde-misc/kio-gdrive-common/kio-gdrive-common-24.08.0.ebuild new file mode 100644 index 0000000000000..732c572a03e6a --- /dev/null +++ b/kde-misc/kio-gdrive-common/kio-gdrive-common-24.08.0.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=" + !> 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 +}