commit:     37ea770d0bd02f774725ec255f89093843c66763
Author:     Andreas Zuber <a.zuber <AT> gmx <DOT> ch>
AuthorDate: Fri Jul 31 08:43:13 2020 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Fri Jul 31 11:26:48 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=37ea770d

games-util/legendary: use single python target.

The ebuild should install the application only for one supported python
implementation and not for multiple ones at the same time.

Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Andreas Zuber <a.zuber <AT> gmx.ch>
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
Closes: https://github.com/gentoo/guru/pull/17

 .../{legendary-0.0.18.ebuild => legendary-0.0.18-r1.ebuild}      | 7 +++++--
 .../{legendary-0.0.19.ebuild => legendary-0.0.19-r1.ebuild}      | 9 ++++++---
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/games-util/legendary/legendary-0.0.18.ebuild 
b/games-util/legendary/legendary-0.0.18-r1.ebuild
similarity index 76%
rename from games-util/legendary/legendary-0.0.18.ebuild
rename to games-util/legendary/legendary-0.0.18-r1.ebuild
index 7310e06..2c4bab1 100644
--- a/games-util/legendary/legendary-0.0.18.ebuild
+++ b/games-util/legendary/legendary-0.0.18-r1.ebuild
@@ -4,6 +4,7 @@
 EAPI=7
 
 PYTHON_COMPAT=( python3_8 )
+DISTUTILS_SINGLE_IMPL=1
 
 inherit distutils-r1
 
@@ -16,7 +17,9 @@ SLOT="0"
 KEYWORDS="~amd64"
 
 RDEPEND="
-       <dev-python/requests-3.0[${PYTHON_USEDEP}]
-       dev-python/wheel[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               <dev-python/requests-3.0[${PYTHON_USEDEP}]
+               dev-python/wheel[${PYTHON_USEDEP}]
+       ')
 "
 DEPEND="${RDEPEND}"

diff --git a/games-util/legendary/legendary-0.0.19.ebuild 
b/games-util/legendary/legendary-0.0.19-r1.ebuild
similarity index 71%
rename from games-util/legendary/legendary-0.0.19.ebuild
rename to games-util/legendary/legendary-0.0.19-r1.ebuild
index 86b4856..609a30c 100644
--- a/games-util/legendary/legendary-0.0.19.ebuild
+++ b/games-util/legendary/legendary-0.0.19-r1.ebuild
@@ -3,7 +3,8 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_8 python3_9 )
+PYTHON_COMPAT=( python3_{8,9} )
+DISTUTILS_SINGLE_IMPL=1
 
 inherit distutils-r1
 
@@ -16,7 +17,9 @@ SLOT="0"
 KEYWORDS="~amd64"
 
 RDEPEND="
-       <dev-python/requests-3.0[${PYTHON_USEDEP}]
-       dev-python/wheel[${PYTHON_USEDEP}]
+       $(python_gen_cond_dep '
+               <dev-python/requests-3.0[${PYTHON_USEDEP}]
+               dev-python/wheel[${PYTHON_USEDEP}]
+       ')
 "
 DEPEND="${RDEPEND}"

Reply via email to