1 |
commit: 884a68127be03b06905c8963a54091e6310eb630 |
2 |
Author: soredake <fdsfgs <AT> krutt <DOT> org> |
3 |
AuthorDate: Wed Nov 8 14:03:35 2017 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 10 22:17:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=884a6812 |
7 |
|
8 |
games-util/lutris: add live version |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/6150 |
11 |
|
12 |
games-util/lutris/lutris-9999.ebuild | 68 ++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 68 insertions(+) |
14 |
|
15 |
diff --git a/games-util/lutris/lutris-9999.ebuild b/games-util/lutris/lutris-9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..960cafec846 |
18 |
--- /dev/null |
19 |
+++ b/games-util/lutris/lutris-9999.ebuild |
20 |
@@ -0,0 +1,68 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{4,5,6} ) |
27 |
+PYTHON_REQ_USE="sqlite,threads" |
28 |
+ |
29 |
+inherit distutils-r1 gnome2-utils python-r1 |
30 |
+ |
31 |
+DESCRIPTION="Lutris is an open source gaming platform for GNU/Linux." |
32 |
+HOMEPAGE="https://lutris.net/" |
33 |
+ |
34 |
+if [[ "${PV}" == "9999" ]] ; then |
35 |
+ EGIT_REPO_URI="https://github.com/lutris/${PN}.git" |
36 |
+ inherit git-r3 |
37 |
+else |
38 |
+ SRC_URI="https://github.com/lutris/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
39 |
+ KEYWORDS="~amd64 ~x86" |
40 |
+fi |
41 |
+ |
42 |
+LICENSE="GPL-3" |
43 |
+SLOT="0" |
44 |
+ |
45 |
+RDEPEND=" |
46 |
+ dev-python/dbus-python[${PYTHON_USEDEP}] |
47 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
48 |
+ dev-python/python-evdev[${PYTHON_USEDEP}] |
49 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
50 |
+ net-libs/libsoup |
51 |
+ x11-apps/xrandr |
52 |
+ x11-apps/xgamma" |
53 |
+ |
54 |
+python_install() { |
55 |
+ distutils-r1_python_install |
56 |
+} |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ distutils-r1_src_prepare |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ distutils-r1_src_compile |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ # README.rst contains list of optional deps |
68 |
+ DOCS=( AUTHORS README.rst INSTALL.rst ) |
69 |
+ distutils-r1_src_install |
70 |
+} |
71 |
+ |
72 |
+pkg_preinst() { |
73 |
+ gnome2_icon_savelist |
74 |
+ gnome2_schemas_savelist |
75 |
+} |
76 |
+ |
77 |
+pkg_postinst() { |
78 |
+ gnome2_icon_cache_update |
79 |
+ gnome2_schemas_update |
80 |
+ |
81 |
+ elog "For a list of optional dependencies (runners) see:" |
82 |
+ elog "/usr/share/doc/${PF}/README.rst.bz2" |
83 |
+} |
84 |
+ |
85 |
+pkg_postrm() { |
86 |
+ gnome2_icon_cache_update |
87 |
+ gnome2_schemas_update |
88 |
+} |