mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
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@unstable.systems>
This commit is contained in:
1 file changed
+17
-5
+17
-5
@@ -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
|
||||
Reference in new issue
Block a user