From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9F3BE158004 for ; Sat, 9 Dec 2023 11:59:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD2DD2BC022; Sat, 9 Dec 2023 11:59:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A19DA2BC01F for ; Sat, 9 Dec 2023 11:59:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9CFDF335DCC for ; Sat, 9 Dec 2023 11:59:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFEA4144F for ; Sat, 9 Dec 2023 11:59:48 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1702120820.bb7b1a3a31d8a4bb5de8ab4644dfb566b954fb58.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/gear.kde.org.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: bb7b1a3a31d8a4bb5de8ab4644dfb566b954fb58 X-VCS-Branch: master Date: Sat, 9 Dec 2023 11:59:48 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 361ce1c7-ec8c-4f87-8df6-221edd54ed53 X-Archives-Hash: 4f3f64817d7cd7ba988bf820ab2e3f1a commit: bb7b1a3a31d8a4bb5de8ab4644dfb566b954fb58 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Dec 9 11:16:39 2023 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Dec 9 11:20:20 2023 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=bb7b1a3a gear.kde.org.eclass: Add new meta variable KDE_BLOCK_SLOT5 Signed-off-by: Andreas Sturmlechner gentoo.org> eclass/gear.kde.org.eclass | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/eclass/gear.kde.org.eclass b/eclass/gear.kde.org.eclass index 0588951090..226db68a87 100644 --- a/eclass/gear.kde.org.eclass +++ b/eclass/gear.kde.org.eclass @@ -25,6 +25,18 @@ esac if [[ -z ${_GEAR_KDE_ORG_ECLASS} ]]; then _GEAR_KDE_ORG_ECLASS=1 +# @ECLASS-VARIABLE: KDE_BLOCK_SLOT5 +# @PRE_INHERIT +# @DESCRIPTION: +# By default set to "true", which means for packages in SLOT 6, add RDEPEND +# block against ${CATEGORY}/${PN}:5. +# Set to "false" in order to enable side-by-side installability. +if [[ ${SLOT} == 6 ]]; then +: ${KDE_BLOCK_SLOT5:=true} +else +: ${KDE_BLOCK_SLOT5:=false} +fi + # @ECLASS_VARIABLE: KDE_PV_UNRELEASED # @INTERNAL # @DESCRIPTION: @@ -63,4 +75,15 @@ elif [[ -z ${KDE_ORG_COMMIT} ]]; then SRC_URI="${_KDE_SRC_URI}${KDE_ORG_TAR_PN}-${PV}.tar.xz" fi +case ${KDE_BLOCK_SLOT5} in + true) + RDEPEND+=" !${CATEGORY}/${PN}:5" + ;; + false) ;; + *) + eerror "Unknown value for \${KDE_BLOCK_SLOT5}" + die "Value ${KDE_BLOCK_SLOT5} is not supported" + ;; +esac + fi