1 |
commit: 5bdc866c6fd38850f8feb9561054e523b607dd6f |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 30 10:18:23 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 30 11:50:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bdc866c |
7 |
|
8 |
games-util/lutris: add 0.5.10_beta2 |
9 |
|
10 |
Bug: https://github.com/lutris/lutris/issues/4175 |
11 |
Bug: https://bugs.gentoo.org/835897 |
12 |
Bug: https://bugs.gentoo.org/822969 |
13 |
Bug: https://bugs.gentoo.org/836332 |
14 |
Bug: https://bugs.gentoo.org/820860 |
15 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
16 |
Closes: https://github.com/gentoo/gentoo/pull/24815 |
17 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
18 |
|
19 |
games-util/lutris/Manifest | 1 + |
20 |
.../lutris-0.5.10_beta2-fix-install-requires.patch | 13 ++++ |
21 |
.../lutris-0.5.10_beta2-fix-launching-steam.patch | 22 ++++++ |
22 |
games-util/lutris/lutris-0.5.10_beta2.ebuild | 88 ++++++++++++++++++++++ |
23 |
4 files changed, 124 insertions(+) |
24 |
|
25 |
diff --git a/games-util/lutris/Manifest b/games-util/lutris/Manifest |
26 |
index 61166b09c69a..c2c55885295b 100644 |
27 |
--- a/games-util/lutris/Manifest |
28 |
+++ b/games-util/lutris/Manifest |
29 |
@@ -1 +1,2 @@ |
30 |
+DIST lutris-0.5.10_beta2.tar.gz 1006201 BLAKE2B 39a87735408639070ef21182adf23ae816a14aeb0d6acf6e36f67bc213ca21559374cc02f0ca696b65eda20b76f33240a7f15d74bca6c3852641d0827737e96c SHA512 0dd0896be70c8902aa09b8bb0e45e516c8631f82a5451e15b3eaf932a5881bccd1189b5564c4cc544fb4eb1ec902cbae887618f5edda0e13d23a19dd0b71dba7 |
31 |
DIST lutris_0.5.9.1.tar.xz 1046920 BLAKE2B 469e7707e74d957be3bb0f5f1caeaeaaf7c01dc3b998c16d8be4b4b780e408763bbe0df5c0b5f6a53ebcb3eb478aaaf25f9cf16437ae682dfcd1d2213222fa18 SHA512 a94e37d1a3f5b80353af38900f3e67763af9c0e3cc3013f7998e23ff70cb6f329730b1802f996866dac541af6e50388a5308c772e3a2ee97f87e5ae60878e7e7 |
32 |
|
33 |
diff --git a/games-util/lutris/files/lutris-0.5.10_beta2-fix-install-requires.patch b/games-util/lutris/files/lutris-0.5.10_beta2-fix-install-requires.patch |
34 |
new file mode 100644 |
35 |
index 000000000000..8a61d987cece |
36 |
--- /dev/null |
37 |
+++ b/games-util/lutris/files/lutris-0.5.10_beta2-fix-install-requires.patch |
38 |
@@ -0,0 +1,13 @@ |
39 |
+diff --git a/setup.py b/setup.py |
40 |
+index 0388119..51bc8e1 100755 |
41 |
+--- a/setup.py |
42 |
++++ b/setup.py |
43 |
+@@ -57,7 +57,7 @@ setup( |
44 |
+ 'evdev', |
45 |
+ 'requests', |
46 |
+ 'python-magic', |
47 |
+- "distro>=1.7.0;platform_system='Linux'", |
48 |
++ 'distro>=1.7.0', |
49 |
+ 'lxml' |
50 |
+ ], |
51 |
+ url='https://lutris.net', |
52 |
|
53 |
diff --git a/games-util/lutris/files/lutris-0.5.10_beta2-fix-launching-steam.patch b/games-util/lutris/files/lutris-0.5.10_beta2-fix-launching-steam.patch |
54 |
new file mode 100644 |
55 |
index 000000000000..2edd6569ce75 |
56 |
--- /dev/null |
57 |
+++ b/games-util/lutris/files/lutris-0.5.10_beta2-fix-launching-steam.patch |
58 |
@@ -0,0 +1,22 @@ |
59 |
+From 072e72a4aefd91101b79dd05d8ce9f100a4b6b0c Mon Sep 17 00:00:00 2001 |
60 |
+From: Mathieu Comandon <strycore@×××××.com> |
61 |
+Date: Fri, 25 Feb 2022 14:02:12 -0800 |
62 |
+Subject: [PATCH] contentstatsid key might not be present |
63 |
+ |
64 |
+--- |
65 |
+ lutris/util/steam/config.py | 2 +- |
66 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
67 |
+ |
68 |
+diff --git a/lutris/util/steam/config.py b/lutris/util/steam/config.py |
69 |
+index 237cb36f24..bae2ec22da 100644 |
70 |
+--- a/lutris/util/steam/config.py |
71 |
++++ b/lutris/util/steam/config.py |
72 |
+@@ -158,7 +158,7 @@ def get_entry_case_insensitive(library_dict, path): |
73 |
+ with open(library_filename, "r", encoding='utf-8') as steam_library_file: |
74 |
+ library = vdf_parse(steam_library_file, {}) |
75 |
+ # The contentstatsid key is unused and causes problems when looking for library paths. |
76 |
+- library["libraryfolders"].pop("contentstatsid") |
77 |
++ library["libraryfolders"].pop("contentstatsid", None) |
78 |
+ try: |
79 |
+ return get_entry_case_insensitive(library, ["libraryfolders"]) |
80 |
+ except KeyError as ex: |
81 |
|
82 |
diff --git a/games-util/lutris/lutris-0.5.10_beta2.ebuild b/games-util/lutris/lutris-0.5.10_beta2.ebuild |
83 |
new file mode 100644 |
84 |
index 000000000000..0f6bb9cf095a |
85 |
--- /dev/null |
86 |
+++ b/games-util/lutris/lutris-0.5.10_beta2.ebuild |
87 |
@@ -0,0 +1,88 @@ |
88 |
+# Copyright 1999-2022 Gentoo Authors |
89 |
+# Distributed under the terms of the GNU General Public License v2 |
90 |
+ |
91 |
+EAPI=8 |
92 |
+ |
93 |
+PYTHON_COMPAT=( python3_{8..10} ) |
94 |
+PYTHON_REQ_USE="sqlite,threads(+)" |
95 |
+DISTUTILS_SINGLE_IMPL="1" |
96 |
+ |
97 |
+inherit distutils-r1 virtualx xdg |
98 |
+ |
99 |
+DESCRIPTION="An open source gaming platform for GNU/Linux" |
100 |
+HOMEPAGE="https://lutris.net/" |
101 |
+ |
102 |
+if [[ ${PV} == *9999* ]] ; then |
103 |
+ EGIT_REPO_URI="https://github.com/lutris/lutris.git" |
104 |
+ inherit git-r3 |
105 |
+else |
106 |
+ if [[ ${PV} == *_beta* ]] ; then |
107 |
+ SRC_URI="https://github.com/lutris/lutris/archive/refs/tags/v${PV/_/-}.tar.gz -> ${P}.tar.gz" |
108 |
+ S="${WORKDIR}"/${P/_/-} |
109 |
+ |
110 |
+ KEYWORDS="~amd64 ~x86" |
111 |
+ else |
112 |
+ SRC_URI="https://lutris.net/releases/${P/-/_}.tar.xz" |
113 |
+ S="${WORKDIR}/${PN}" |
114 |
+ |
115 |
+ KEYWORDS="~amd64 ~x86" |
116 |
+ fi |
117 |
+fi |
118 |
+ |
119 |
+LICENSE="GPL-3" |
120 |
+SLOT="0" |
121 |
+ |
122 |
+RDEPEND=" |
123 |
+ app-arch/cabextract |
124 |
+ app-arch/p7zip |
125 |
+ app-arch/unzip |
126 |
+ $(python_gen_cond_dep ' |
127 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
128 |
+ dev-python/lxml[${PYTHON_USEDEP}] |
129 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
130 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
131 |
+ dev-python/python-evdev[${PYTHON_USEDEP}] |
132 |
+ dev-python/python-magic[${PYTHON_USEDEP}] |
133 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
134 |
+ dev-python/requests[${PYTHON_USEDEP}] |
135 |
+ ') |
136 |
+ gnome-base/gnome-desktop:3[introspection] |
137 |
+ media-sound/fluid-soundfont |
138 |
+ net-libs/libsoup |
139 |
+ net-libs/webkit-gtk:4[introspection] |
140 |
+ x11-apps/mesa-progs |
141 |
+ x11-apps/xgamma |
142 |
+ x11-apps/xrandr |
143 |
+ x11-libs/gtk+:3[introspection] |
144 |
+ x11-libs/gdk-pixbuf[jpeg] |
145 |
+ x11-libs/libnotify[introspection] |
146 |
+" |
147 |
+ |
148 |
+distutils_enable_tests pytest |
149 |
+ |
150 |
+DOCS=( AUTHORS README.rst docs/installers.rst docs/steam.rst ) |
151 |
+ |
152 |
+PATCHES=( |
153 |
+ "${FILESDIR}/${PN}-0.5.9.1-avoid-gtk-4.0-already-loaded-testerror.patch" |
154 |
+ "${FILESDIR}/${P}-fix-install-requires.patch" |
155 |
+ "${FILESDIR}/${P}-fix-launching-steam.patch" |
156 |
+) |
157 |
+ |
158 |
+python_test() { |
159 |
+ virtx epytest |
160 |
+} |
161 |
+ |
162 |
+python_install_all() { |
163 |
+ distutils-r1_python_install_all |
164 |
+ python_fix_shebang "${ED}/usr/share/lutris/bin/lutris-wrapper" #740048 |
165 |
+} |
166 |
+ |
167 |
+pkg_postinst() { |
168 |
+ xdg_pkg_postinst |
169 |
+ |
170 |
+ # Quote README.rst |
171 |
+ elog "Lutris installations are fully automated through scripts, which can" |
172 |
+ elog "be written in either JSON or YAML. The scripting syntax is described" |
173 |
+ elog "in ${EROOT}/usr/share/doc/${PF}/installers.rst.bz2, and is also" |
174 |
+ elog "available online at lutris.net." |
175 |
+} |