From 022dc8387c24a6d09b602248adfd6a00c320265c Mon Sep 17 00:00:00 2001 From: layman Date: Sun, 5 Nov 2023 03:01:35 +0000 Subject: Use distutils for crmsh Fixes python version install --- sys-cluster/crmsh/Manifest | 2 +- sys-cluster/crmsh/crmsh-4.4.0-r1.ebuild | 45 +++++++++++++++++++++++++++++++++ sys-cluster/crmsh/crmsh-4.4.0.ebuild | 45 --------------------------------- 3 files changed, 46 insertions(+), 46 deletions(-) create mode 100644 sys-cluster/crmsh/crmsh-4.4.0-r1.ebuild delete mode 100644 sys-cluster/crmsh/crmsh-4.4.0.ebuild diff --git a/sys-cluster/crmsh/Manifest b/sys-cluster/crmsh/Manifest index fc085e6..261da1f 100644 --- a/sys-cluster/crmsh/Manifest +++ b/sys-cluster/crmsh/Manifest @@ -1,3 +1,3 @@ DIST crmsh-4.4.0.tar.gz 1170623 BLAKE2B 574543ac86bbac6b0cd7df021cf6dbb277c1b7ac3d1766926a7005f1e8779138b29cf2b19762c5d6ba3473c19fd784dcf71cc69fcd43c12ac1b4ecafe00d8ac0 SHA512 297d8063c376f0b9497399e65a72cabd8b71c1ea555ce66815c86b94a9f64ff9eddd3bcda37769e756dff6cfbec6f53cfe6deeb2df5e31183ee069174653e293 -EBUILD crmsh-4.4.0.ebuild 962 BLAKE2B f799675d5492601f185cd703832dfceb51a0387d6d80175d59f8299214c4330fd29932fec9d4251ad37e9f74eab914755506b9605ff7ccd6db3e5d42f9fdf2e4 SHA512 13917d079af671b51e3904bce9e7ec0eab8dea38c3cf142333b12ad54d1523201b2e6a0f910067e214671cd14c5f5bd33b677a05ac5a1aa7bf577249cd9f5b89 +EBUILD crmsh-4.4.0-r1.ebuild 916 BLAKE2B bd08a18c76370cc067163c6881f429e07e1c5ccebcefe0f1f11aa42e6dfe009597a692aa71685728d7c2296b1f5d970814259415274ec3e570ed595ab76a20e8 SHA512 61bfc90e14e00139935cd1c730b7ee8a4a0a4507aece3f0a2c86b8f1c2c7c722ef1a165daebeac41000d2f09916eab34035097a817d6d1c09dc7fec31dca2caf MISC metadata.xml 344 BLAKE2B 3dd1aba1bed81c9993d1d9527e5695c4538c32014dc4da3303c602031182421f50629296c69f2f821455d29a0beb01a94b86541421d31462d37b05bbd57b41f0 SHA512 8fddf2b64d5dbdc79ccc206e36e33c2aee2c17ffc1c6012c80431d3d487734538c6efc3e3b6803407535783b1afa91901b929220874f8d20ce2616ad6cdb967d diff --git a/sys-cluster/crmsh/crmsh-4.4.0-r1.ebuild b/sys-cluster/crmsh/crmsh-4.4.0-r1.ebuild new file mode 100644 index 0000000..911c802 --- /dev/null +++ b/sys-cluster/crmsh/crmsh-4.4.0-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{9,10} ) + +SRC_URI="https://github.com/crmsh/crmsh/archive/${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~hppa ~x86" + +inherit autotools distutils-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} + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/parallax[${PYTHON_USEDEP}] +" + +src_prepare() { + default + + eautoreconf + distutils-r1_src_prepare +} + +src_configure() { + econf + distutils-r1_src_configure +} + +src_install() { + distutils-r1_src_install + emake DESTDIR="${D}" install-{data,info,man} +} diff --git a/sys-cluster/crmsh/crmsh-4.4.0.ebuild b/sys-cluster/crmsh/crmsh-4.4.0.ebuild deleted file mode 100644 index e8cdad5..0000000 --- a/sys-cluster/crmsh/crmsh-4.4.0.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{9,10} ) - -if [[ ${PV} == *9999 ]]; then - EGIT_REPO_URI="https://github.com/crmsh/crmsh" - inherit git-3 - 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-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} - dev-python/lxml[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - dev-python/python-dateutil[${PYTHON_USEDEP}] - dev-python/parallax[${PYTHON_USEDEP}] -" - -src_prepare() { - default - - eautoreconf -} - -src_install() { - emake DESTDIR="${D}" install - python_foreach_impl python_optimize -} -- cgit v1.2.3