Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/sc-controller/
Date: Wed, 19 Jan 2022 23:53:27
Message-Id: 1642636348.fbf1bda90b63e596432824061042127a95d47f1e.ionen@gentoo
1 commit: fbf1bda90b63e596432824061042127a95d47f1e
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 19 19:09:15 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 19 23:52:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbf1bda9
7
8 games-util/sc-controller: add 0.4.8.6 with PEP517, py3.10, and tests
9
10 Haven't really used (don't have a steam controller for one),
11 but added tests and they run fine.
12
13 Also add check for CONFIG_INPUT_UINPUT needed for user-mode, and
14 add introspection dependencies.
15
16 Closes: https://bugs.gentoo.org/806145
17 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
18
19 games-util/sc-controller/Manifest | 1 +
20 .../sc-controller/sc-controller-0.4.8.6.ebuild | 37 ++++++++++++++++++++++
21 2 files changed, 38 insertions(+)
22
23 diff --git a/games-util/sc-controller/Manifest b/games-util/sc-controller/Manifest
24 index b712ecee7617..9b7064f7ec97 100644
25 --- a/games-util/sc-controller/Manifest
26 +++ b/games-util/sc-controller/Manifest
27 @@ -1 +1,2 @@
28 DIST sc-controller-0.4.8.2.tar.gz 2520528 BLAKE2B 0c98e1fd49e846909ec0a78c5bbf48731de464ab79ebe3e1b0370e2a6f176e925e6f2b288c17358221b2e50be0cd783f31f05324ac585aec310967d148ce5011 SHA512 8d157e871fa519ebd3eee27dd1c0ff1afe6f79201df12578aa31f3cbc62974bd7ba47c8a097870b693a7abaacaadd1e502012c9664c0aecddbd982fa10c7f84d
29 +DIST sc-controller-0.4.8.6.tar.gz 2524756 BLAKE2B b31454fde0705bd49cdf3d56aec43d230617877a1dd1f72bef84d772c28f153b2e6812fd50b096e32a2ea3be549cfd1ee5fb3f9cf138c1dbc73c004ec11984b7 SHA512 d6f8098bff0fce064e194815a6c9bbf6ee974e22af056df9a12ebc24de4f1a22decfcf5191565c81aed39e3aa73b742bdc26040945e2b87543b67202834b46ea
30
31 diff --git a/games-util/sc-controller/sc-controller-0.4.8.6.ebuild b/games-util/sc-controller/sc-controller-0.4.8.6.ebuild
32 new file mode 100644
33 index 000000000000..764a714fde01
34 --- /dev/null
35 +++ b/games-util/sc-controller/sc-controller-0.4.8.6.ebuild
36 @@ -0,0 +1,37 @@
37 +# Copyright 1999-2022 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=8
41 +
42 +DISTUTILS_SINGLE_IMPL=1
43 +DISTUTILS_USE_PEP517=setuptools
44 +PYTHON_COMPAT=( python3_{8..10} )
45 +inherit distutils-r1 linux-info xdg
46 +
47 +DESCRIPTION="User-mode driver and GTK-based GUI for Steam Controllers and others"
48 +HOMEPAGE="https://github.com/Ryochan7/sc-controller/"
49 +SRC_URI="https://github.com/Ryochan7/sc-controller/archive/v${PV}.tar.gz -> ${P}.tar.gz"
50 +
51 +LICENSE="GPL-2 CC0-1.0 MIT"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~x86"
54 +IUSE="+udev"
55 +
56 +RDEPEND="
57 + $(python_gen_cond_dep '
58 + dev-python/pygobject[${PYTHON_USEDEP},cairo]
59 + dev-python/pylibacl[${PYTHON_USEDEP}]
60 + dev-python/python-evdev[${PYTHON_USEDEP}]
61 + dev-python/vdf[${PYTHON_USEDEP}]')
62 + gnome-base/librsvg[introspection]
63 + x11-libs/gtk+:3[introspection]
64 + udev? ( games-util/game-device-udev-rules )"
65 +
66 +distutils_enable_tests pytest
67 +
68 +pkg_setup() {
69 + local CONFIG_CHECK="~INPUT_UINPUT"
70 +
71 + linux-info_pkg_setup
72 + python-single-r1_pkg_setup
73 +}