forked from gentoo/kde
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kde-frameworks/purpose-kaccounts-services: 6.6.0 version bump
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DIST purpose-6.6.0.tar.xz 176800 BLAKE2B ca9bf9a881935f2e20bc734d248a15a5fdfbd66cb953ec8284190c962369704093351199560e229caa6e7f5e0110bf1e2ed4447c7bb137562613d0a2d82ded2e SHA512 bc12591f5dccb322cd447a275fa6e35d68e2d7762b09464f10c6f63a8f66e47a45be3693eb289475c581e12d9c316ae8d288b7b29f671068c7b05f757d248811 |
59 changes: 59 additions & 0 deletions
59
kde-frameworks/purpose-kaccounts-services/purpose-kaccounts-services-6.6.0.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Copyright 1999-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
# this is purely for service file creation | ||
ECM_I18N="false" | ||
ECM_HANDBOOK="false" | ||
KDE_ORG_NAME="${PN/-kaccounts-services/}" | ||
KF5_BDEPEND=( "|| ( | ||
kde-apps/kaccounts-integration:6[qt5] | ||
kde-apps/kaccounts-integration:5 | ||
)" ) | ||
KF6_BDEPEND=( "kde-apps/kaccounts-integration:6" ) | ||
KFMIN=5.115.0 | ||
inherit ecm-common frameworks.kde.org | ||
|
||
DESCRIPTION="KAccounts generated service files for nextcloud and google services" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm64" | ||
IUSE="" | ||
|
||
RDEPEND=" | ||
!<kde-frameworks/purpose-5.116.0-r2:5 | ||
!<kde-frameworks/purpose-6.5.0-r1:6 | ||
" | ||
|
||
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}/src/plugins/nextcloud/nextcloud-upload.service.in) | ||
kaccounts_add_service(\${CMAKE_CURRENT_SOURCE_DIR}/src/plugins/youtube/google-youtube.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=2 | ||
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 | ||
} |