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 354B6158021 for ; Mon, 5 Dec 2022 19:13:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 68F05E086F; Mon, 5 Dec 2022 19:13:27 +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 4E8BFE086F for ; Mon, 5 Dec 2022 19:13:27 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5A97E3410F4 for ; Mon, 5 Dec 2022 19:13:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EAF51775 for ; Mon, 5 Dec 2022 19:13:24 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1670267602.98badc6ae4d121506a32be863250ec96dea8aaf2.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-alternatives/bzip2/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-alternatives/bzip2/bzip2-1.ebuild X-VCS-Directories: app-alternatives/bzip2/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 98badc6ae4d121506a32be863250ec96dea8aaf2 X-VCS-Branch: master Date: Mon, 5 Dec 2022 19:13:24 +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: ea6ca5a8-c5db-4e51-b4e7-ce8b27f49147 X-Archives-Hash: 6ecfc68344b9311e9ff740fb37f797c6 commit: 98badc6ae4d121506a32be863250ec96dea8aaf2 Author: Michał Górny gentoo org> AuthorDate: Fri Dec 2 19:11:10 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Dec 5 19:13:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98badc6a app-alternatives/bzip2: Use app-alternatives.eclass Signed-off-by: Michał Górny gentoo.org> app-alternatives/bzip2/bzip2-1.ebuild | 43 ++++++++++++++++------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/app-alternatives/bzip2/bzip2-1.ebuild b/app-alternatives/bzip2/bzip2-1.ebuild index 6e61b5e2135d..6b0b5ef620d1 100644 --- a/app-alternatives/bzip2/bzip2-1.ebuild +++ b/app-alternatives/bzip2/bzip2-1.ebuild @@ -3,46 +3,43 @@ EAPI=8 -DESCRIPTION="bzip2 symlink" -HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Base/Alternatives" -SRC_URI="" -S=${WORKDIR} +ALTERNATIVES=( + "reference:>=app-arch/bzip2-1.0.8-r4" + "lbzip2:app-arch/lbzip2[-symlink(-)]" + "pbzip2:app-arch/pbzip2[-symlink(-)]" +) + +inherit app-alternatives -LICENSE="CC0-1.0" -SLOT="0" +DESCRIPTION="bzip2 symlink" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -IUSE="lbzip2 pbzip2 +reference split-usr" -REQUIRED_USE="^^ ( lbzip2 pbzip2 reference )" +IUSE="split-usr" RDEPEND=" - lbzip2? ( app-arch/lbzip2[-symlink(-)] ) - pbzip2? ( app-arch/pbzip2[-symlink(-)] ) - reference? ( >=app-arch/bzip2-1.0.8-r4 ) !