commit:     b8ce29749b016765e45d9c6f8ea52372ec6381ac
Author:     Vivian Heisz (vhz) <demize <AT> unstable <DOT> systems>
AuthorDate: Thu Jun  5 02:02:42 2025 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Jun  5 02:19:47 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b8ce2974

games-util/minigalaxy: fix build after egacy mode removed

After 
https://github.com/gentoo/gentoo/commit/7972a9082e7d43371ff10f54004ef3806fb16231,
this package no longer builds (and the ebuild was
considered corrupt). This uses setup.py directly to build
the package. It appears to install correctly this way,
though I don't personally use the package to test fully.

This also restricts the tests, which appear to have been
failing for some time.

Bug: https://bugs.gentoo.org/921916
Bug: https://bugs.gentoo.org/927563
Bug: https://bugs.gentoo.org/957122
Signed-off-by: Vivian Heisz (vhz) <demize <AT> unstable.systems>

 ...axy-1.3.2.ebuild => minigalaxy-1.3.2-r1.ebuild} | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/games-util/minigalaxy/minigalaxy-1.3.2.ebuild 
b/games-util/minigalaxy/minigalaxy-1.3.2-r1.ebuild
similarity index 70%
rename from games-util/minigalaxy/minigalaxy-1.3.2.ebuild
rename to games-util/minigalaxy/minigalaxy-1.3.2-r1.ebuild
index 9d3d07bcc1..12d91df954 100644
--- a/games-util/minigalaxy/minigalaxy-1.3.2.ebuild
+++ b/games-util/minigalaxy/minigalaxy-1.3.2-r1.ebuild
@@ -4,11 +4,8 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{11..13} )
-# Fails to compile with PEP517
-# DISTUTILS_USE_PEP517=setuptools
-DISTUTILS_SINGLE_IMPL=1
 
-inherit distutils-r1 optfeature xdg
+inherit edo python-single-r1 optfeature xdg
 
 DESCRIPTION="A simple GOG client for Linux"
 HOMEPAGE="https://github.com/sharkwouter/minigalaxy";
@@ -18,7 +15,12 @@ LICENSE="GPL-3+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
+IUSE="test"
+# restricted unconditionally due to failures
+RESTRICT="test"
+
 RDEPEND="
+       ${PYTHON_DEPS}
        $(python_gen_cond_dep '
                >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
                dev-python/pygobject:3[${PYTHON_USEDEP}]
@@ -34,7 +36,17 @@ BDEPEND="
        )
 "
 
-distutils_enable_tests unittest
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_test() {
+       eunittest
+}
+
+src_install() {
+       # workaround for legacy setup.py
+       edo ${EPYTHON} setup.py install --root="${D}" --prefix="${EPREFIX}/usr" 
--optimize=1
+       python_optimize
+}
 
 pkg_postinst() {
        xdg_pkg_postinst

Reply via email to