Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/xboxdrv/
Date: Sun, 30 Oct 2022 02:14:09
Message-Id: 1667095950.870a4b01fffabeb3985f9b9af3b55facd1d4f780.ajak@gentoo
1 commit: 870a4b01fffabeb3985f9b9af3b55facd1d4f780
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 30 02:07:36 2022 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 02:12:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=870a4b01
7
8 games-util/xboxdrv: fix binpkg installation, udev_reload, add python3_11
9
10 Closes: https://bugs.gentoo.org/776601
11 Closes: https://bugs.gentoo.org/859325
12 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
13
14 .../xboxdrv/xboxdrv-0.8.8_p20190118-r2.ebuild | 83 ++++++++++++++++++++++
15 1 file changed, 83 insertions(+)
16
17 diff --git a/games-util/xboxdrv/xboxdrv-0.8.8_p20190118-r2.ebuild b/games-util/xboxdrv/xboxdrv-0.8.8_p20190118-r2.ebuild
18 new file mode 100644
19 index 000000000000..7b11030a2c5e
20 --- /dev/null
21 +++ b/games-util/xboxdrv/xboxdrv-0.8.8_p20190118-r2.ebuild
22 @@ -0,0 +1,83 @@
23 +# Copyright 1999-2022 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +PYTHON_COMPAT=( python3_{8..11} )
29 +
30 +inherit linux-info python-any-r1 scons-utils toolchain-funcs systemd udev
31 +
32 +MY_P="${PN}-v$(ver_cut 1-3)"
33 +DESCRIPTION="Userspace Xbox 360 Controller driver"
34 +HOMEPAGE="https://xboxdrv.gitlab.io"
35 +SRC_URI="https://gitlab.com/xboxdrv/${PN}/-/archive/v$(ver_cut 1-3)/${MY_P}.tar.bz2"
36 +S="${WORKDIR}/${MY_P}"
37 +
38 +LICENSE="GPL-3"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~x86"
41 +
42 +RDEPEND="
43 + dev-libs/boost:=
44 + dev-libs/dbus-glib
45 + dev-libs/glib:2
46 + sys-apps/dbus
47 + virtual/libudev:=
48 + virtual/libusb:1
49 + x11-libs/libX11
50 +"
51 +
52 +DEPEND="
53 + ${RDEPEND}
54 +"
55 +
56 +BDEPEND="
57 + dev-util/glib-utils
58 + virtual/pkgconfig
59 +"
60 +
61 +PATCHES=(
62 + "${FILESDIR}/"xboxdrv-0.8.8-some-boost-fix.patch
63 + "${FILESDIR}/"xboxdrv-0.8.8-Update-SConstruct-to-python3.patch
64 + "${FILESDIR}/"xboxdrv-0.8.8-Updating-python-code-to-python3.patch
65 +)
66 +
67 +CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD"
68 +
69 +pkg_setup() {
70 + linux-info_pkg_setup
71 + python-any-r1_pkg_setup
72 +}
73 +
74 +src_compile() {
75 + escons \
76 + BUILD=custom \
77 + CXX="$(tc-getCXX)" \
78 + AR="$(tc-getAR)" \
79 + RANLIB="$(tc-getRANLIB)" \
80 + CXXFLAGS="-Wall ${CXXFLAGS}" \
81 + LINKFLAGS="${LDFLAGS}"
82 +}
83 +
84 +src_install() {
85 + dobin xboxdrv
86 + doman doc/xboxdrv.1
87 + dodoc AUTHORS NEWS PROTOCOL README.md TODO
88 +
89 + newinitd "${FILESDIR}"/xboxdrv.initd xboxdrv
90 + newconfd "${FILESDIR}"/xboxdrv.confd xboxdrv
91 +
92 + insinto /etc/dbus-1/system.d
93 + doins "${FILESDIR}"/org.seul.Xboxdrv.conf
94 +
95 + udev_newrules "${FILESDIR}"/xboxdrv.udev-rules 99-xbox-controller.rules
96 + systemd_dounit "${FILESDIR}"/xboxdrv.service
97 +}
98 +
99 +pkg_postinst() {
100 + udev_reload
101 +}
102 +
103 +pkg_postrm() {
104 + udev_reload
105 +}