1 |
commit: c97ef8a7de6863914dd0b477de51f4a048397ad0 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 17 22:16:21 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 17 22:27:07 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c97ef8a7 |
7 |
|
8 |
games-util/xboxdrv: Repoint package to my own patched fork |
9 |
|
10 |
I've been sitting on a pile of patches for some years and I've finally |
11 |
got around to putting them all together for use here. Meanwhile |
12 |
upstream has been largely dormant. The situation there is unclear. |
13 |
|
14 |
The patches are a mixture of stability fixes, bug fixes, build fixes, |
15 |
and support for more devices, authored by me and others. They don't |
16 |
include my Steam Controller patch as this does not work very well. I |
17 |
am aware that the daemon does occasionally still crash but it's a lot |
18 |
better than it was. |
19 |
|
20 |
Package-Manager: Portage-2.3.56, Repoman-2.3.12 |
21 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
22 |
|
23 |
games-util/xboxdrv/Manifest | 1 + |
24 |
games-util/xboxdrv/metadata.xml | 4 ++ |
25 |
games-util/xboxdrv/xboxdrv-0.8.8_p20190116.ebuild | 74 +++++++++++++++++++++++ |
26 |
3 files changed, 79 insertions(+) |
27 |
|
28 |
diff --git a/games-util/xboxdrv/Manifest b/games-util/xboxdrv/Manifest |
29 |
index 77d64590223..a08c7116294 100644 |
30 |
--- a/games-util/xboxdrv/Manifest |
31 |
+++ b/games-util/xboxdrv/Manifest |
32 |
@@ -1 +1,2 @@ |
33 |
+DIST xboxdrv-0.8.8_p20190116.tar.gz 322469 BLAKE2B 8827cafb98235f7ad9d83204c808eb6bc25fdfd48321050ab79b561fc6a1a3b628e4bd667f7f1be511420514ef7906efc803db4f50130c393d7fa3cb498fed26 SHA512 3f9f8346a5a8486fb9f1af3e27a947e37c73ceab8f433639adf890144844f4fb6d005da3c4c6c1abf0a1550b71aba8b89001f58965d67fdc21e5f41e50a21436 |
34 |
DIST xboxdrv-linux-0.8.8.tar.bz2 267919 BLAKE2B b6f09fc929ba561f0c18a777ca94f6972f366d29709d5fdcb168988311ca53eb813761df0f87d148795aa14d2d89b200e8123502c0b255ebe20e5f9caa18f8f1 SHA512 2978b33d23636431ee0cc393ea32d3d26ebe9f2b914f0bf8bc0e096f98202726768142e653bc5765ac55084b105ff3a6214bdf6e745fdd8aa167260c54c10494 |
35 |
|
36 |
diff --git a/games-util/xboxdrv/metadata.xml b/games-util/xboxdrv/metadata.xml |
37 |
index 9a8e14a39d4..fe838d30a8f 100644 |
38 |
--- a/games-util/xboxdrv/metadata.xml |
39 |
+++ b/games-util/xboxdrv/metadata.xml |
40 |
@@ -9,4 +9,8 @@ |
41 |
<email>games@g.o</email> |
42 |
<name>Gentoo Games Project</name> |
43 |
</maintainer> |
44 |
+ <upstream> |
45 |
+ <remote-id type="github">chewi/xboxdrv</remote-id> |
46 |
+ <remote-id type="gitlab">xboxdrv/xboxdrv</remote-id> |
47 |
+ </upstream> |
48 |
</pkgmetadata> |
49 |
|
50 |
diff --git a/games-util/xboxdrv/xboxdrv-0.8.8_p20190116.ebuild b/games-util/xboxdrv/xboxdrv-0.8.8_p20190116.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..228c7cc3506 |
53 |
--- /dev/null |
54 |
+++ b/games-util/xboxdrv/xboxdrv-0.8.8_p20190116.ebuild |
55 |
@@ -0,0 +1,74 @@ |
56 |
+# Copyright 1999-2019 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=7 |
60 |
+ |
61 |
+PYTHON_COMPAT=( python2_7 python3_6 ) |
62 |
+ |
63 |
+inherit linux-info python-any-r1 scons-utils toolchain-funcs systemd udev |
64 |
+ |
65 |
+COMMIT="0c0143b59b0fd9718af4968992c96b6b6b2a2557" |
66 |
+DESCRIPTION="Userspace Xbox 360 Controller driver" |
67 |
+HOMEPAGE="https://xboxdrv.gitlab.io" |
68 |
+SRC_URI="https://github.com/chewi/xboxdrv/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
69 |
+LICENSE="GPL-3" |
70 |
+SLOT="0" |
71 |
+KEYWORDS="~amd64 ~x86" |
72 |
+ |
73 |
+RDEPEND=" |
74 |
+ dev-libs/boost:= |
75 |
+ dev-libs/dbus-glib |
76 |
+ dev-libs/glib:2 |
77 |
+ sys-apps/dbus |
78 |
+ virtual/libudev:= |
79 |
+ virtual/libusb:1 |
80 |
+ x11-libs/libX11 |
81 |
+" |
82 |
+ |
83 |
+DEPEND=" |
84 |
+ ${RDEPEND} |
85 |
+" |
86 |
+ |
87 |
+BDEPEND=" |
88 |
+ virtual/pkgconfig |
89 |
+" |
90 |
+ |
91 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
92 |
+ |
93 |
+CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD" |
94 |
+ |
95 |
+src_prepare() { |
96 |
+ default |
97 |
+ |
98 |
+ # Make it clearer that this is a patched fork. |
99 |
+ echo -n "${PV%_*}.${PV#*_p}-gentoo" > VERSION || die |
100 |
+} |
101 |
+ |
102 |
+src_compile() { |
103 |
+ escons \ |
104 |
+ BUILD=custom \ |
105 |
+ CXX="$(tc-getCXX)" \ |
106 |
+ AR="$(tc-getAR)" \ |
107 |
+ RANLIB="$(tc-getRANLIB)" \ |
108 |
+ CXXFLAGS="-Wall ${CXXFLAGS}" \ |
109 |
+ LINKFLAGS="${LDFLAGS}" |
110 |
+} |
111 |
+ |
112 |
+src_install() { |
113 |
+ dobin xboxdrv |
114 |
+ doman doc/xboxdrv.1 |
115 |
+ dodoc AUTHORS NEWS PROTOCOL README.md TODO |
116 |
+ |
117 |
+ newinitd "${FILESDIR}"/xboxdrv.initd xboxdrv |
118 |
+ newconfd "${FILESDIR}"/xboxdrv.confd xboxdrv |
119 |
+ |
120 |
+ insinto /etc/dbus-1/system.d |
121 |
+ doins "${FILESDIR}"/org.seul.Xboxdrv.conf |
122 |
+ |
123 |
+ udev_newrules "${FILESDIR}"/xboxdrv.udev-rules 99-xbox-controller.rules |
124 |
+ systemd_dounit "${FILESDIR}"/xboxdrv.service |
125 |
+} |
126 |
+ |
127 |
+pkg_postinst() { |
128 |
+ udev_reload |
129 |
+} |