1 |
commit: d5300bb136c8c953ca7c8b45b4b9cca6b4cbad57 |
2 |
Author: Marty E. Plummer <hanetzer <AT> startmail <DOT> com> |
3 |
AuthorDate: Sun Jan 6 07:56:57 2019 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 3 21:48:49 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5300bb1 |
7 |
|
8 |
games-util/lutris: version 0.5.0.1, add missing deps, xdg |
9 |
|
10 |
Package-Manager: Portage-2.3.54, Repoman-2.3.12 |
11 |
Signed-off-by: Marty E. Plummer <hanetzer <AT> startmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/10749 |
13 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
14 |
|
15 |
games-util/lutris/Manifest | 1 + |
16 |
games-util/lutris/lutris-0.5.0.1.ebuild | 73 +++++++++++++++++++++++++++++++++ |
17 |
games-util/lutris/lutris-9999.ebuild | 69 ++++++++++++++++--------------- |
18 |
3 files changed, 111 insertions(+), 32 deletions(-) |
19 |
|
20 |
diff --git a/games-util/lutris/Manifest b/games-util/lutris/Manifest |
21 |
index feed72d83fb..d7c61df293a 100644 |
22 |
--- a/games-util/lutris/Manifest |
23 |
+++ b/games-util/lutris/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST lutris-0.4.23.tar.gz 1831736 BLAKE2B 9da20d5545e9d2474bed436443fed325beb3ed2e3e945cb27e25fbce88ac7aeb9547a0a1bcd74349e5c7bda0dd6be50949b5abaa1fc091a21217b330c6fe655f SHA512 a0860920e01568888db5ac9a52c0d33a5108af33906ea411d4621dec4b059c399b17ca35c245bf9bfb506c6b242d32d917d3ade6898f619e00f9361117632fb3 |
26 |
+DIST lutris_0.5.0.1.tar.xz 1687904 BLAKE2B 646182416201dd4e2fc025b600e569d87821ff98f2fc37ca6029479b7b097466e47135694303f8fc242c4d2632d0b4ecf471919181cd45b095bbff6ba8d973d4 SHA512 a9bf51f388859873de0af43b800692327b098c83966b9e32bbca3ccc0397e1ce5018e751b8f9fef5e83d9de4d1b014e330ffe7d8ab253af7dd2379151297f1bb |
27 |
|
28 |
diff --git a/games-util/lutris/lutris-0.5.0.1.ebuild b/games-util/lutris/lutris-0.5.0.1.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..866cc4417a1 |
31 |
--- /dev/null |
32 |
+++ b/games-util/lutris/lutris-0.5.0.1.ebuild |
33 |
@@ -0,0 +1,73 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{4,5,6,7} ) |
40 |
+PYTHON_REQ_USE="sqlite,threads(+)" |
41 |
+ |
42 |
+inherit distutils-r1 virtualx xdg |
43 |
+ |
44 |
+DESCRIPTION="An open source gaming platform for GNU/Linux" |
45 |
+HOMEPAGE="https://lutris.net/" |
46 |
+ |
47 |
+if [[ ${PV} == *9999* ]] ; then |
48 |
+ EGIT_REPO_URI="https://github.com/lutris/lutris.git" |
49 |
+ inherit git-r3 |
50 |
+else |
51 |
+ SRC_URI="https://lutris.net/releases/${P/-/_}.tar.xz" |
52 |
+ KEYWORDS="~amd64 ~x86" |
53 |
+fi |
54 |
+ |
55 |
+LICENSE="GPL-3" |
56 |
+SLOT="0" |
57 |
+ |
58 |
+BDEPEND=" |
59 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
60 |
+" |
61 |
+RDEPEND=" |
62 |
+ app-arch/cabextract |
63 |
+ app-arch/p7zip |
64 |
+ app-arch/unrar |
65 |
+ app-arch/unzip |
66 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
67 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
68 |
+ dev-python/python-evdev[${PYTHON_USEDEP}] |
69 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
70 |
+ gnome-base/gnome-desktop[introspection] |
71 |
+ media-sound/fluid-soundfont |
72 |
+ net-libs/libsoup |
73 |
+ net-libs/webkit-gtk:4[introspection] |
74 |
+ x11-apps/xgamma |
75 |
+ x11-apps/xrandr |
76 |
+ x11-libs/gtk+:3[introspection] |
77 |
+" |
78 |
+ |
79 |
+S="${WORKDIR}/${PN}" |
80 |
+ |
81 |
+python_install_all() { |
82 |
+ local DOCS=( AUTHORS README.rst docs/installers.rst ) |
83 |
+ distutils-r1_python_install_all |
84 |
+} |
85 |
+ |
86 |
+python_test() { |
87 |
+ virtx nosetests -v || die |
88 |
+} |
89 |
+ |
90 |
+pkg_preinst() { |
91 |
+ xdg_pkg_preinst |
92 |
+} |
93 |
+ |
94 |
+pkg_postinst() { |
95 |
+ xdg_pkg_postinst |
96 |
+ |
97 |
+ # Quote README.rst |
98 |
+ elog "Lutris installations are fully automated through scripts, which can" |
99 |
+ elog "be written in either JSON or YAML. The scripting syntax is described" |
100 |
+ elog "in ${EROOT}/usr/share/doc/${PF}/installers.rst.bz2, and is also" |
101 |
+ elog "available online at lutris.net." |
102 |
+} |
103 |
+ |
104 |
+pkg_postrm() { |
105 |
+ xdg_pkg_postrm |
106 |
+} |
107 |
|
108 |
diff --git a/games-util/lutris/lutris-9999.ebuild b/games-util/lutris/lutris-9999.ebuild |
109 |
index 960cafec846..866cc4417a1 100644 |
110 |
--- a/games-util/lutris/lutris-9999.ebuild |
111 |
+++ b/games-util/lutris/lutris-9999.ebuild |
112 |
@@ -1,68 +1,73 @@ |
113 |
-# Copyright 1999-2017 Gentoo Foundation |
114 |
+# Copyright 1999-2019 Gentoo Authors |
115 |
# Distributed under the terms of the GNU General Public License v2 |
116 |
|
117 |
-EAPI=6 |
118 |
+EAPI=7 |
119 |
|
120 |
-PYTHON_COMPAT=( python3_{4,5,6} ) |
121 |
-PYTHON_REQ_USE="sqlite,threads" |
122 |
+PYTHON_COMPAT=( python3_{4,5,6,7} ) |
123 |
+PYTHON_REQ_USE="sqlite,threads(+)" |
124 |
|
125 |
-inherit distutils-r1 gnome2-utils python-r1 |
126 |
+inherit distutils-r1 virtualx xdg |
127 |
|
128 |
-DESCRIPTION="Lutris is an open source gaming platform for GNU/Linux." |
129 |
+DESCRIPTION="An open source gaming platform for GNU/Linux" |
130 |
HOMEPAGE="https://lutris.net/" |
131 |
|
132 |
-if [[ "${PV}" == "9999" ]] ; then |
133 |
- EGIT_REPO_URI="https://github.com/lutris/${PN}.git" |
134 |
+if [[ ${PV} == *9999* ]] ; then |
135 |
+ EGIT_REPO_URI="https://github.com/lutris/lutris.git" |
136 |
inherit git-r3 |
137 |
else |
138 |
- SRC_URI="https://github.com/lutris/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
139 |
+ SRC_URI="https://lutris.net/releases/${P/-/_}.tar.xz" |
140 |
KEYWORDS="~amd64 ~x86" |
141 |
fi |
142 |
|
143 |
LICENSE="GPL-3" |
144 |
SLOT="0" |
145 |
|
146 |
+BDEPEND=" |
147 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
148 |
+" |
149 |
RDEPEND=" |
150 |
- dev-python/dbus-python[${PYTHON_USEDEP}] |
151 |
+ app-arch/cabextract |
152 |
+ app-arch/p7zip |
153 |
+ app-arch/unrar |
154 |
+ app-arch/unzip |
155 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
156 |
dev-python/pygobject:3[${PYTHON_USEDEP}] |
157 |
dev-python/python-evdev[${PYTHON_USEDEP}] |
158 |
dev-python/pyyaml[${PYTHON_USEDEP}] |
159 |
+ gnome-base/gnome-desktop[introspection] |
160 |
+ media-sound/fluid-soundfont |
161 |
net-libs/libsoup |
162 |
+ net-libs/webkit-gtk:4[introspection] |
163 |
+ x11-apps/xgamma |
164 |
x11-apps/xrandr |
165 |
- x11-apps/xgamma" |
166 |
+ x11-libs/gtk+:3[introspection] |
167 |
+" |
168 |
|
169 |
-python_install() { |
170 |
- distutils-r1_python_install |
171 |
-} |
172 |
- |
173 |
-src_prepare() { |
174 |
- distutils-r1_src_prepare |
175 |
-} |
176 |
+S="${WORKDIR}/${PN}" |
177 |
|
178 |
-src_compile() { |
179 |
- distutils-r1_src_compile |
180 |
+python_install_all() { |
181 |
+ local DOCS=( AUTHORS README.rst docs/installers.rst ) |
182 |
+ distutils-r1_python_install_all |
183 |
} |
184 |
|
185 |
-src_install() { |
186 |
- # README.rst contains list of optional deps |
187 |
- DOCS=( AUTHORS README.rst INSTALL.rst ) |
188 |
- distutils-r1_src_install |
189 |
+python_test() { |
190 |
+ virtx nosetests -v || die |
191 |
} |
192 |
|
193 |
pkg_preinst() { |
194 |
- gnome2_icon_savelist |
195 |
- gnome2_schemas_savelist |
196 |
+ xdg_pkg_preinst |
197 |
} |
198 |
|
199 |
pkg_postinst() { |
200 |
- gnome2_icon_cache_update |
201 |
- gnome2_schemas_update |
202 |
+ xdg_pkg_postinst |
203 |
|
204 |
- elog "For a list of optional dependencies (runners) see:" |
205 |
- elog "/usr/share/doc/${PF}/README.rst.bz2" |
206 |
+ # Quote README.rst |
207 |
+ elog "Lutris installations are fully automated through scripts, which can" |
208 |
+ elog "be written in either JSON or YAML. The scripting syntax is described" |
209 |
+ elog "in ${EROOT}/usr/share/doc/${PF}/installers.rst.bz2, and is also" |
210 |
+ elog "available online at lutris.net." |
211 |
} |
212 |
|
213 |
pkg_postrm() { |
214 |
- gnome2_icon_cache_update |
215 |
- gnome2_schemas_update |
216 |
+ xdg_pkg_postrm |
217 |
} |