commit:     0c11f0846ab6bd82b4dcf3051b49d84f59864714
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 27 09:35:00 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Jan 27 10:02:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c11f084

dev-python/terminaltables: Switch to PEP 517 build

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 ...9999.ebuild => terminaltables-3.1.10-r1.ebuild} | 24 +++++++++++++++++-----
 .../terminaltables/terminaltables-9999.ebuild      | 12 +++++++++--
 2 files changed, 29 insertions(+), 7 deletions(-)

diff --git a/dev-python/terminaltables/terminaltables-9999.ebuild 
b/dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild
similarity index 51%
copy from dev-python/terminaltables/terminaltables-9999.ebuild
copy to dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild
index ed12c5a82704..76c1156f4c7a 100644
--- a/dev-python/terminaltables/terminaltables-9999.ebuild
+++ b/dev-python/terminaltables/terminaltables-3.1.10-r1.ebuild
@@ -1,20 +1,22 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-DISTUTILS_USE_SETUPTOOLS=pyproject.toml
+DISTUTILS_USE_PEP517=poetry
 PYTHON_COMPAT=( python3_{8..10} )
 
-inherit distutils-r1 git-r3
+inherit distutils-r1
 
 DESCRIPTION="Generate simple tables in terminals from a nested list of strings"
 HOMEPAGE="https://robpol86.github.io/terminaltables/";
-EGIT_REPO_URI="https://github.com/matthewdeanmartin/${PN}.git";
+SRC_URI="
+       
https://github.com/matthewdeanmartin/terminaltables/archive/v${PV}.tar.gz
+               -> ${P}.tar.gz"
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS=""
+KEYWORDS="~amd64 ~x86"
 
 BDEPEND="
        test? (
@@ -24,3 +26,15 @@ BDEPEND="
        )"
 
 distutils_enable_tests pytest
+
+PATCHES=(
+       "${FILESDIR}"/terminaltables-3.1.0-stdout.patch
+)
+
+src_prepare() {
+       sed -e '/requires/s:poetry:&-core:' \
+               -e '/backend/s:poetry:&.core:' \
+               -i pyproject.toml || die
+
+       distutils-r1_src_prepare
+}

diff --git a/dev-python/terminaltables/terminaltables-9999.ebuild 
b/dev-python/terminaltables/terminaltables-9999.ebuild
index ed12c5a82704..c5cb790fdd38 100644
--- a/dev-python/terminaltables/terminaltables-9999.ebuild
+++ b/dev-python/terminaltables/terminaltables-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-DISTUTILS_USE_SETUPTOOLS=pyproject.toml
+DISTUTILS_USE_PEP517=poetry
 PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1 git-r3
@@ -24,3 +24,11 @@ BDEPEND="
        )"
 
 distutils_enable_tests pytest
+
+src_prepare() {
+       sed -e '/requires/s:poetry:&-core:' \
+               -e '/backend/s:poetry:&.core:' \
+               -i pyproject.toml || die
+
+       distutils-r1_src_prepare
+}

Reply via email to