summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-10 03:22:37 +0100
committerSam James <sam@gentoo.org>2021-08-10 03:22:37 +0100
commitc29ad1f88ddf276ab3fb5740ae32a5d0fe576b87 (patch)
tree34e2785893ad5e8abe9092c73350062a4318ef5b /games-util/lutris/lutris-9999.ebuild
parentgames-util/lutris: drop 0.5.8.1 (diff)
downloadgentoo-c29ad1f88ddf276ab3fb5740ae32a5d0fe576b87.tar.gz
gentoo-c29ad1f88ddf276ab3fb5740ae32a5d0fe576b87.tar.bz2
gentoo-c29ad1f88ddf276ab3fb5740ae32a5d0fe576b87.zip
games-util/lutris: add 0.5.9_beta1 (unkeyworded)
Closes: https://bugs.gentoo.org/770880 Closes: https://bugs.gentoo.org/803236 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-util/lutris/lutris-9999.ebuild')
-rw-r--r--games-util/lutris/lutris-9999.ebuild42
1 files changed, 26 insertions, 16 deletions
diff --git a/games-util/lutris/lutris-9999.ebuild b/games-util/lutris/lutris-9999.ebuild
index b29f07d71d87..4ca63a7a2a1f 100644
--- a/games-util/lutris/lutris-9999.ebuild
+++ b/games-util/lutris/lutris-9999.ebuild
@@ -16,22 +16,20 @@ if [[ ${PV} == *9999* ]] ; then
EGIT_REPO_URI="https://github.com/lutris/lutris.git"
inherit git-r3
else
- SRC_URI="https://lutris.net/releases/${P/-/_}.tar.xz"
- KEYWORDS="~amd64 ~x86"
- S="${WORKDIR}/${PN}"
+ if [[ ${PV} == *_beta* ]] ; then
+ SRC_URI="https://github.com/lutris/lutris/archive/refs/tags/v${PV/_/-}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}"/${P/_/-}
+ else
+ SRC_URI="https://lutris.net/releases/${P/-/_}.tar.xz"
+ S="${WORKDIR}/${PN}"
+
+ KEYWORDS="~amd64 ~x86"
+ fi
fi
LICENSE="GPL-3"
SLOT="0"
-RESTRICT="!test? ( test )"
-
-BDEPEND="
- test? (
- $(python_gen_cond_dep '
- dev-python/nose[${PYTHON_USEDEP}]
- ')
- )
-"
+
RDEPEND="
app-arch/cabextract
app-arch/p7zip
@@ -56,16 +54,28 @@ RDEPEND="
x11-libs/libnotify[introspection]
"
-python_install_all() {
- local DOCS=( AUTHORS README.rst docs/installers.rst )
- distutils-r1_python_install_all
- python_fix_shebang "${ED}"/usr/share/lutris/bin/lutris-wrapper #740048
+distutils_enable_tests nose
+
+src_prepare() {
+ default
+
+ # Avoid test failure:
+ # "ERROR: Failure: OSError (data_path can't be found at : /usr/share/lutris)"
+ sed -i -e "s:sys.path\[0\]:\"${S}/share\":" lutris/util/datapath.py || die
+
+ distutils-r1_src_prepare
}
python_test() {
virtx nosetests -v
}
+python_install_all() {
+ local DOCS=( AUTHORS README.rst docs/installers.rst )
+ distutils-r1_python_install_all
+ python_fix_shebang "${ED}"/usr/share/lutris/bin/lutris-wrapper #740048
+}
+
pkg_postinst() {
xdg_pkg_postinst