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 F0A67158094 for ; Wed, 10 Aug 2022 03:31:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3298AE0ABB; Wed, 10 Aug 2022 03:31:19 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AF50EE0ABB for ; Wed, 10 Aug 2022 03:31:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 AD2E2340E78 for ; Wed, 10 Aug 2022 03:31:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E86358C for ; Wed, 10 Aug 2022 03:31:15 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1660102254.ef3d28b9ec4691891312c63b9e411d024b1c00ac.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/crmsh/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/crmsh/crmsh-4.2.1-r3.ebuild X-VCS-Directories: sys-cluster/crmsh/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ef3d28b9ec4691891312c63b9e411d024b1c00ac X-VCS-Branch: master Date: Wed, 10 Aug 2022 03:31:15 +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: 1e963bea-2cdd-4d35-9038-90002460d1ff X-Archives-Hash: cd8ee695b17b7a25854546e2b6a0630c commit: ef3d28b9ec4691891312c63b9e411d024b1c00ac Author: Sam James gentoo org> AuthorDate: Wed Aug 10 03:29:52 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Aug 10 03:30:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef3d28b9 sys-cluster/crmsh: switch to python-single-r1 It doesn't support multiple Python implementations right now but it wasn't using python-r1 correctly anyway (missing python_setup) and was ignoring the selected target, just going off /usr/bin/python3. Closes: https://bugs.gentoo.org/864430 Closes: https://bugs.gentoo.org/863749 Closes: https://bugs.gentoo.org/728152 Signed-off-by: Sam James gentoo.org> sys-cluster/crmsh/crmsh-4.2.1-r3.ebuild | 46 +++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/sys-cluster/crmsh/crmsh-4.2.1-r3.ebuild b/sys-cluster/crmsh/crmsh-4.2.1-r3.ebuild new file mode 100644 index 000000000000..88ea25ce1490 --- /dev/null +++ b/sys-cluster/crmsh/crmsh-4.2.1-r3.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..9} ) + +if [[ ${PV} == *9999 ]]; then + EGIT_REPO_URI="https://github.com/crmsh/crmsh" + inherit git-r3 + S="${WORKDIR}/${PN}-${MY_TREE}" +else + SRC_URI="https://github.com/crmsh/crmsh/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~hppa ~x86" +fi + +inherit autotools python-single-r1 + +DESCRIPTION="Pacemaker command line interface for management and configuration" +HOMEPAGE="https://crmsh.github.io/" + +LICENSE="GPL-2" +SLOT="0" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +DEPEND="${PYTHON_DEPS} + >=sys-cluster/pacemaker-1.1.9" +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/parallax[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + ') +" + +src_prepare() { + default + + eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install + python_optimize +}