diff options
| author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-08-19 01:32:31 +0200 |
|---|---|---|
| committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-08-21 22:53:49 +0200 |
| commit | 7f70f5fce728fdf8ce1aaad95701d9c976ed7249 (patch) | |
| tree | a4d365a6a0a4558f59e97409b5f2350685d6a7ad | |
| parent | 9acb40bab1717416daf79223f6ac464f7c858f2a (diff) | |
| download | kde-7f70f5fce728fdf8ce1aaad95701d9c976ed7249.tar.gz kde-7f70f5fce728fdf8ce1aaad95701d9c976ed7249.tar.bz2 kde-7f70f5fce728fdf8ce1aaad95701d9c976ed7249.zip | |
kde-misc/kio-gdrive-common: new package, add 9999
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
6 files changed, 238 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..1a362884bbf --- /dev/null +++ b/kde-misc/kio-gdrive-common/Manifest @@ -0,0 +1,2 @@ +DIST kio-gdrive-24.07.90.tar.xz 80808 BLAKE2B e40e543769f4c73fb5f4be70dee6da3d5eda24d7e4c030295d3e56cdb5eb561422b49e46c36e7c9d7b6eb26a42735a6ba92702c1381b861e052b81aa71d5d856 SHA512 c0258241efa14c81fa9de08563404f8fe2f3d1c7593665596bce1f0ff075d3c70237e162472f860ed70ceec53b63ce14ba3572223bf459c492982ecff62d321b +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.07.90.ebuild b/kde-misc/kio-gdrive-common/kio-gdrive-common-24.07.90.ebuild new file mode 100644 index 00000000000..732c572a03e --- /dev/null +++ b/kde-misc/kio-gdrive-common/kio-gdrive-common-24.07.90.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/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 00000000000..732c572a03e --- /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=" + !<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/kio-gdrive-common-24.08.49.9999.ebuild b/kde-misc/kio-gdrive-common/kio-gdrive-common-24.08.49.9999.ebuild new file mode 100644 index 00000000000..f43aac9cdf6 --- /dev/null +++ b/kde-misc/kio-gdrive-common/kio-gdrive-common-24.08.49.9999.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="" + +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/kio-gdrive-common-9999.ebuild b/kde-misc/kio-gdrive-common/kio-gdrive-common-9999.ebuild new file mode 100644 index 00000000000..f43aac9cdf6 --- /dev/null +++ b/kde-misc/kio-gdrive-common/kio-gdrive-common-9999.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="" + +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 00000000000..676893a6308 --- /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> |
