commit:     7542a3cf9697be8b69c850961d644e6d52954dae
Author:     Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 12 13:51:11 2020 +0000
Commit:     Erik Mackdanz <stasibear <AT> gentoo <DOT> org>
CommitDate: Sat Dec 12 13:51:11 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7542a3cf

games-roguelike/stone-soup: Correctly use python eclasses for bdeps

Had omitted this version in previous fix.

Closes: https://bugs.gentoo.org/759583
Closes: https://bugs.gentoo.org/693012
Signed-off-by: Erik Mackdanz <stasibear <AT> gentoo.org>
Package-Manager: Portage-3.0.12, Repoman-3.0.2

 .../stone-soup/stone-soup-0.25.1-r1.ebuild           | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/games-roguelike/stone-soup/stone-soup-0.25.1-r1.ebuild 
b/games-roguelike/stone-soup/stone-soup-0.25.1-r1.ebuild
index d4d2ba19807..8a4d1201dc1 100644
--- a/games-roguelike/stone-soup/stone-soup-0.25.1-r1.ebuild
+++ b/games-roguelike/stone-soup/stone-soup-0.25.1-r1.ebuild
@@ -8,7 +8,7 @@ EAPI=7
 
 PYTHON_COMPAT=( python3_{6,7,8,9} )
 VIRTUALX_REQUIRED="manual"
-inherit desktop distutils-r1 eutils xdg-utils toolchain-funcs
+inherit desktop python-any-r1 eutils xdg-utils toolchain-funcs
 
 MY_P="stone_soup-${PV}"
 DESCRIPTION="Role-playing roguelike game of exploration and treasure-hunting 
in dungeons"
@@ -42,8 +42,8 @@ RDEPEND="
                media-libs/freetype:2
                media-libs/libpng:0
                sound? (
-                          media-libs/libsdl2[X,opengl,sound,video]
-                          media-libs/sdl2-mixer
+                       media-libs/libsdl2[X,opengl,sound,video]
+                       media-libs/sdl2-mixer
                )
                !sound? ( media-libs/libsdl2[X,opengl,video] )
                media-libs/sdl2-image[png]
@@ -53,7 +53,8 @@ RDEPEND="
 DEPEND="${RDEPEND}
        app-arch/unzip
        dev-lang/perl
-       dev-python/pyyaml[${PYTHON_USEDEP}]
+       ${PYTHON_DEPS}
+       $(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]')
        sys-devel/flex
        tiles? (
                app-arch/advancecomp
@@ -71,8 +72,14 @@ PATCHES=(
        "${FILESDIR}"/rltiles-ldflags-libs.patch
 )
 
+python_check_deps() {
+       has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
+}
+
 pkg_setup() {
 
+       python-any-r1_pkg_setup
+
        if use !ncurses && use !tiles ; then
                ewarn "Neither ncurses nor tiles frontend"
                ewarn "selected, choosing ncurses only."
@@ -84,6 +91,11 @@ pkg_setup() {
        fi
 }
 
+src_prepare() {
+       default
+       python_fix_shebang "${S}/util/species-gen.py"
+}
+
 src_compile() {
 
        # Insurance that we're not using bundled lib sources

Reply via email to