1 |
commit: 1a467e8b2506662594afc28732a9249e8686c10e |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 2 15:33:32 2016 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 2 15:35:10 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a467e8b |
7 |
|
8 |
games-util/xboxdrv: Version bump to 0.8.8, EAPI bump to 6, bug #567182 |
9 |
|
10 |
Includes patch to fix 60 second delay, upstream GitHub issue #144. |
11 |
|
12 |
Package-Manager: portage-2.3.0 |
13 |
|
14 |
games-util/xboxdrv/Manifest | 1 + |
15 |
games-util/xboxdrv/files/github-144.patch | 15 ++++++ |
16 |
games-util/xboxdrv/files/xboxdrv-0.8.8-scons.patch | 13 +++++ |
17 |
games-util/xboxdrv/xboxdrv-0.8.8.ebuild | 63 ++++++++++++++++++++++ |
18 |
4 files changed, 92 insertions(+) |
19 |
|
20 |
diff --git a/games-util/xboxdrv/Manifest b/games-util/xboxdrv/Manifest |
21 |
index 4f53fe7..a5eaa4a 100644 |
22 |
--- a/games-util/xboxdrv/Manifest |
23 |
+++ b/games-util/xboxdrv/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST xboxdrv-linux-0.8.5.tar.bz2 265805 SHA256 411195c4f5310a1a5f21f015daaf00b277f75da89df710308f8abfcf8f337e78 SHA512 954a3664462dfeff63a455f3dfea4bc14f8c3e07fa9b0c299bb523b4089faad7f8d634511eb66c023bd289adbbf18e96ce26cbcf5b8ffc9bb3088f1afe532601 WHIRLPOOL f47cdbcf40bd237715ff2b55354c6570ebbccd9cd0beb09b91869fa37db247c57019593b317d2acd767044fe92019defa01c9592bb3b63d2283103ff10dae844 |
26 |
+DIST xboxdrv-linux-0.8.8.tar.bz2 267919 SHA256 f4fb8c09c0ce3841798f129ae4c2caf3f6db9786d78ad941994e425e3ffc168a SHA512 2978b33d23636431ee0cc393ea32d3d26ebe9f2b914f0bf8bc0e096f98202726768142e653bc5765ac55084b105ff3a6214bdf6e745fdd8aa167260c54c10494 WHIRLPOOL a27c0c68171cb08c6edc12aeafb84ae3a2edb14b8d4a87ad607f722581a58955d11808acb8c0b7169581850f52dd76be2c100de5e284a1521d10f0ae108a867d |
27 |
|
28 |
diff --git a/games-util/xboxdrv/files/github-144.patch b/games-util/xboxdrv/files/github-144.patch |
29 |
new file mode 100644 |
30 |
index 0000000..5782e1a |
31 |
--- /dev/null |
32 |
+++ b/games-util/xboxdrv/files/github-144.patch |
33 |
@@ -0,0 +1,15 @@ |
34 |
+diff -Naur xboxdrv-linux-0.8.5.orig/src/usb_gsource.cpp xboxdrv-linux-0.8.5/src/usb_gsource.cpp |
35 |
+--- xboxdrv-linux-0.8.5.orig/src/usb_gsource.cpp 2013-04-07 18:27:49.000000000 +0100 |
36 |
++++ xboxdrv-linux-0.8.5/src/usb_gsource.cpp 2016-07-02 12:35:41.692355904 +0100 |
37 |
+@@ -174,7 +174,10 @@ |
38 |
+ gboolean |
39 |
+ USBGSource::on_source() |
40 |
+ { |
41 |
+- libusb_handle_events(NULL); |
42 |
++ struct timeval to; |
43 |
++ to.tv_sec = 0; |
44 |
++ to.tv_usec = 0; |
45 |
++ libusb_handle_events_timeout_completed(NULL, &to, NULL); |
46 |
+ return TRUE; |
47 |
+ } |
48 |
+ |
49 |
|
50 |
diff --git a/games-util/xboxdrv/files/xboxdrv-0.8.8-scons.patch b/games-util/xboxdrv/files/xboxdrv-0.8.8-scons.patch |
51 |
new file mode 100644 |
52 |
index 0000000..7900b25 |
53 |
--- /dev/null |
54 |
+++ b/games-util/xboxdrv/files/xboxdrv-0.8.8-scons.patch |
55 |
@@ -0,0 +1,13 @@ |
56 |
+http://dev.gentoo.org/~vapier/scons-blows.txt |
57 |
+ |
58 |
+diff -Naur xboxdrv-linux-0.8.8.orig/SConstruct xboxdrv-linux-0.8.8/SConstruct |
59 |
+--- xboxdrv-linux-0.8.8.orig/SConstruct 2015-11-09 10:19:35.000000000 +0000 |
60 |
++++ xboxdrv-linux-0.8.8/SConstruct 2016-07-02 16:13:52.560961836 +0100 |
61 |
+@@ -84,6 +84,7 @@ |
62 |
+ opts.Add('CXXFLAGS', 'C++ Compiler flags') |
63 |
+ opts.Add('LINKFLAGS', 'Linker Compiler flags') |
64 |
+ opts.Add('AR', 'Library archiver') |
65 |
++opts.Add('RANLIB', 'Archive indexer') |
66 |
+ opts.Add('CC', 'C Compiler') |
67 |
+ opts.Add('CXX', 'C++ Compiler') |
68 |
+ opts.Add('BUILD', 'Build type: release, custom, development') |
69 |
|
70 |
diff --git a/games-util/xboxdrv/xboxdrv-0.8.8.ebuild b/games-util/xboxdrv/xboxdrv-0.8.8.ebuild |
71 |
new file mode 100644 |
72 |
index 0000000..04d3c7d |
73 |
--- /dev/null |
74 |
+++ b/games-util/xboxdrv/xboxdrv-0.8.8.ebuild |
75 |
@@ -0,0 +1,63 @@ |
76 |
+# Copyright 1999-2016 Gentoo Foundation |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+# $Id$ |
79 |
+ |
80 |
+EAPI=6 |
81 |
+inherit linux-info scons-utils toolchain-funcs systemd udev |
82 |
+ |
83 |
+MY_P=${PN}-linux-${PV} |
84 |
+DESCRIPTION="Userspace Xbox 360 Controller driver" |
85 |
+HOMEPAGE="http://pingus.seul.org/~grumbel/xboxdrv/" |
86 |
+SRC_URI="http://pingus.seul.org/~grumbel/xboxdrv/${MY_P}.tar.bz2" |
87 |
+ |
88 |
+LICENSE="GPL-3" |
89 |
+SLOT="0" |
90 |
+KEYWORDS="~amd64 ~x86" |
91 |
+ |
92 |
+RDEPEND="dev-libs/boost:= |
93 |
+ dev-libs/dbus-glib:= |
94 |
+ virtual/libudev:= |
95 |
+ sys-apps/dbus:= |
96 |
+ dev-libs/glib:2= |
97 |
+ virtual/libusb:1= |
98 |
+ x11-libs/libX11:=" |
99 |
+DEPEND="${RDEPEND} |
100 |
+ virtual/pkgconfig" |
101 |
+ |
102 |
+S=${WORKDIR}/${MY_P} |
103 |
+ |
104 |
+PATCHES=( |
105 |
+ "${FILESDIR}"/${P}-scons.patch |
106 |
+ "${FILESDIR}"/github-144.patch |
107 |
+) |
108 |
+ |
109 |
+CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD" |
110 |
+ |
111 |
+src_compile() { |
112 |
+ escons \ |
113 |
+ BUILD=custom \ |
114 |
+ CXX="$(tc-getCXX)" \ |
115 |
+ AR="$(tc-getAR)" \ |
116 |
+ RANLIB="$(tc-getRANLIB)" \ |
117 |
+ CXXFLAGS="-Wall ${CXXFLAGS}" \ |
118 |
+ LINKFLAGS="${LDFLAGS}" |
119 |
+} |
120 |
+ |
121 |
+src_install() { |
122 |
+ dobin xboxdrv |
123 |
+ doman doc/xboxdrv.1 |
124 |
+ dodoc AUTHORS NEWS PROTOCOL README.md TODO |
125 |
+ |
126 |
+ newinitd "${FILESDIR}"/xboxdrv.initd xboxdrv |
127 |
+ newconfd "${FILESDIR}"/xboxdrv.confd xboxdrv |
128 |
+ |
129 |
+ insinto /etc/dbus-1/system.d/ |
130 |
+ doins "${FILESDIR}/org.seul.Xboxdrv.conf" |
131 |
+ |
132 |
+ udev_newrules "${FILESDIR}"/xboxdrv.udev-rules 99-xbox-controller.rules |
133 |
+ systemd_dounit "${FILESDIR}"/xboxdrv.service |
134 |
+} |
135 |
+ |
136 |
+pkg_postinst() { |
137 |
+ udev_reload |
138 |
+} |