commit:     e8436367972b9a726e2d1276ac9f21c2552805f6
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Thu Jun  5 03:49:11 2025 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Thu Jun  5 03:49:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e8436367

games-util/minigalaxy: fix dependencies and test suite

I worked on this for way too long, so while I'm not interested in taking
over maintainership, I might as well leave a masked package in a better
state.

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 ...-1.3.2-r1.ebuild => minigalaxy-1.3.2-r2.ebuild} | 31 +++++++++++++++-------
 1 file changed, 22 insertions(+), 9 deletions(-)

diff --git a/games-util/minigalaxy/minigalaxy-1.3.2-r1.ebuild 
b/games-util/minigalaxy/minigalaxy-1.3.2-r2.ebuild
similarity index 52%
rename from games-util/minigalaxy/minigalaxy-1.3.2-r1.ebuild
rename to games-util/minigalaxy/minigalaxy-1.3.2-r2.ebuild
index 12d91df954..7f942c240c 100644
--- a/games-util/minigalaxy/minigalaxy-1.3.2-r1.ebuild
+++ b/games-util/minigalaxy/minigalaxy-1.3.2-r2.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{11..13} )
 
-inherit edo python-single-r1 optfeature xdg
+inherit edo optfeature python-single-r1 xdg
 
 DESCRIPTION="A simple GOG client for Linux"
 HOMEPAGE="https://github.com/sharkwouter/minigalaxy";
@@ -16,41 +16,54 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 
 IUSE="test"
-# restricted unconditionally due to failures
-RESTRICT="test"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
 
+# x11-libs/gdk-pixbuf[jpeg] dependency for thumbnails in library entries
+# x11-libs/libnotify dependency in minigalaxy/ui/gtk.py
 RDEPEND="
        ${PYTHON_DEPS}
        $(python_gen_cond_dep '
                >=dev-python/requests-2.0.0[${PYTHON_USEDEP}]
                dev-python/pygobject:3[${PYTHON_USEDEP}]
        ')
-       >=net-libs/webkit-gtk-2.6:4.1
-       >=x11-libs/gtk+-3
+       app-arch/unzip
+       >=net-libs/webkit-gtk-2.6:4.1[introspection]
+       >=x11-libs/gtk+-3[introspection]
+       x11-libs/gdk-pixbuf[introspection,jpeg]
+       x11-libs/libnotify[introspection]
+       x11-misc/xdg-utils
 "
+# sys-devel/gettext dependency in scripts/compile-translation.py
 BDEPEND="
+       ${PYTHON_DEPS}
        test? (
                $(python_gen_cond_dep '
                        dev-python/simplejson[${PYTHON_USEDEP}]
                ')
        )
+       sys-devel/gettext
 "
 
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+src_compile() {
+       edo "${EPYTHON}" setup.py build
+}
 
 src_test() {
-       eunittest
+       eunittest tests
 }
 
 src_install() {
-       # workaround for legacy setup.py
-       edo ${EPYTHON} setup.py install --root="${D}" --prefix="${EPREFIX}/usr" 
--optimize=1
+       edo "${EPYTHON}" setup.py install --root="${D}" 
--prefix="${EPREFIX}/usr"
        python_optimize
+       dodoc README.md CHANGELOG.md
 }
 
 pkg_postinst() {
        xdg_pkg_postinst
 
+       optfeature "choosing the language of Windows games before installation" 
app-arch/innoextract
        optfeature "running games with system dosbox" games-emulation/dosbox
        optfeature "running games with system scummvm" games-engines/scummvm
+       optfeature "running games with system wine" virtual/wine
 }

Reply via email to