1 |
commit: f5219bca506396248dc876122340a83c7660083f |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 22 16:44:58 2020 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 22 16:44:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5219bca |
7 |
|
8 |
app-misc/spacenavd: Drop old |
9 |
|
10 |
Bug: https://bugs.gentoo.org/724022 |
11 |
Signed-off-by: Sebastian Pipping <sping <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
13 |
|
14 |
app-misc/spacenavd/Manifest | 3 - |
15 |
app-misc/spacenavd/files/99-space-navigator.rules | 5 -- |
16 |
.../spacenavd/files/99-space-navigator.rules-r1 | 6 -- |
17 |
.../files/spacenavd-0.5-custom-flags.patch | 67 ----------------- |
18 |
.../spacenavd/files/spacenavd-0.5-destdir.patch | 16 ----- |
19 |
.../spacenavd/files/spacenavd-0.5-no-x11.patch | 13 ---- |
20 |
app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch | 24 ------- |
21 |
.../spacenavd/files/spacenavd-0.7-no-x11.patch | 24 ------- |
22 |
app-misc/spacenavd/spacenavd-0.5-r5.ebuild | 81 --------------------- |
23 |
app-misc/spacenavd/spacenavd-0.5-r6.ebuild | 80 --------------------- |
24 |
app-misc/spacenavd/spacenavd-0.6.ebuild | 84 ---------------------- |
25 |
app-misc/spacenavd/spacenavd-0.7.ebuild | 84 ---------------------- |
26 |
12 files changed, 487 deletions(-) |
27 |
|
28 |
diff --git a/app-misc/spacenavd/Manifest b/app-misc/spacenavd/Manifest |
29 |
index 7629ef99799..365f025594d 100644 |
30 |
--- a/app-misc/spacenavd/Manifest |
31 |
+++ b/app-misc/spacenavd/Manifest |
32 |
@@ -1,4 +1 @@ |
33 |
-DIST spacenavd-0.5.tar.gz 41746 BLAKE2B bd97cb9ad1ce684cbe0f39e03db0fe0a9cead9aa4a8142546632397fa923fc1067e2d33ea0270625b5bb06bc784c75f0e9ae49cfba7194d23537a7427abe1e68 SHA512 908f598e4ba5febbc1191cc32cd444817acd40c22e79b1f139c50787e1e25d4cd8328dc3fd6d9dde09bb80232b52f0e75ae429fb3345eb51fbe5a47577b038e2 |
34 |
-DIST spacenavd-0.6.tar.gz 54730 BLAKE2B 5d158ebb190359c6e6c2a20093f824f176e028c0d375ab4aadc635f7b26884df2ae58585e82dc3978892d04d139cc6c4704fedc300508f9314478f19d4ee11b6 SHA512 ff039e169805365ce8c1df1258eda6d263a0724c087b22a9e78269629455580817027d936e6bb7014b7654f48aa23232e8059585175003034e4bd3e0d6ed8200 |
35 |
DIST spacenavd-0.7.1.tar.gz 56703 BLAKE2B 99a918090cf8875e5b5cbb48ceffc383b415d9bbe297e49630c8e48ab78bd547244005b5a91e1bb7abc01382ae332758dfc01297bc8f6fb9a05247330cde8127 SHA512 6bfd76f9187ce77c09cb6ebb73bce45391e675cda51437b647510afef574aa6e3f947f467e03a464e245a5e44f699db1d197a58a06a64a2199686b1ab596517f |
36 |
-DIST spacenavd-0.7.tar.gz 55634 BLAKE2B a4257bc48e4b7973413cfc74fb4157cc93d27dd8e4c45142bfa0d8b30b94e517cff1e003c9b7216b498539a529bcfe623a5dfec48644a34c1bd300eb07d297a7 SHA512 241ed0ecf78fe683ae1ccda1e69afcee82f6ad55439516a5e02d3ff7eea1a4c5903e778e41f3e0d8b6f5dcbb8fec572a52e0be108a081bccb5a279af2277b615 |
37 |
|
38 |
diff --git a/app-misc/spacenavd/files/99-space-navigator.rules b/app-misc/spacenavd/files/99-space-navigator.rules |
39 |
deleted file mode 100644 |
40 |
index ef2640e6571..00000000000 |
41 |
--- a/app-misc/spacenavd/files/99-space-navigator.rules |
42 |
+++ /dev/null |
43 |
@@ -1,5 +0,0 @@ |
44 |
-# Copyright 1999-2012 Gentoo Foundation |
45 |
-# Distributed under the terms of the GNU General Public License v2 or later |
46 |
- |
47 |
-# Start daemon on insertion of a SpaceNavigator device |
48 |
-SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="Space Navigator", RUN+="/etc/init.d/spacenavd --quiet start" |
49 |
|
50 |
diff --git a/app-misc/spacenavd/files/99-space-navigator.rules-r1 b/app-misc/spacenavd/files/99-space-navigator.rules-r1 |
51 |
deleted file mode 100644 |
52 |
index fa5dc93fcca..00000000000 |
53 |
--- a/app-misc/spacenavd/files/99-space-navigator.rules-r1 |
54 |
+++ /dev/null |
55 |
@@ -1,6 +0,0 @@ |
56 |
-# Copyright 1999-2014 Gentoo Foundation |
57 |
-# Distributed under the terms of the GNU General Public License v2 or later |
58 |
- |
59 |
-# Start daemon on insertion of a SpaceNavigator device |
60 |
-SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="Space Navigator", RUN+="/etc/init.d/spacenavd --quiet start" |
61 |
-SUBSYSTEM=="usb", ACTION=="add", ATTRS{manufacturer}=="3Dconnexion", ATTRS{product}=="SpaceNavigator", TAG+="systemd", ENV{SYSTEMD_WANTS}+="spacenavd.service" |
62 |
|
63 |
diff --git a/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch b/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch |
64 |
deleted file mode 100644 |
65 |
index 3b834a43952..00000000000 |
66 |
--- a/app-misc/spacenavd/files/spacenavd-0.5-custom-flags.patch |
67 |
+++ /dev/null |
68 |
@@ -1,67 +0,0 @@ |
69 |
-diff -Npur spacenavd-0.5.orig/Makefile.in spacenavd-0.5/Makefile.in |
70 |
---- spacenavd-0.5.orig/Makefile.in 2012-01-31 22:22:20.460368687 +0100 |
71 |
-+++ spacenavd-0.5/Makefile.in 2012-01-31 22:23:18.170367675 +0100 |
72 |
-@@ -6,8 +6,8 @@ ctl = spnavd_ctl |
73 |
- |
74 |
- CC = gcc |
75 |
- INSTALL = install |
76 |
--CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src |
77 |
--LDFLAGS = $(xlib) |
78 |
-+CFLAGS = $(opt) -fno-strict-aliasing -I$(srcdir)/src |
79 |
-+LDFLAGS = $(ldopt) $(xlib) |
80 |
- |
81 |
- $(bin): $(obj) |
82 |
- $(CC) -o $@ $(obj) $(LDFLAGS) |
83 |
-diff -Npur spacenavd-0.5.orig/configure spacenavd-0.5/configure |
84 |
---- spacenavd-0.5.orig/configure 2012-01-31 22:22:20.460368687 +0100 |
85 |
-+++ spacenavd-0.5/configure 2012-01-31 22:22:49.257368187 +0100 |
86 |
-@@ -28,6 +28,7 @@ test_kver() { |
87 |
- |
88 |
- PREFIX=/usr/local |
89 |
- OPT=yes |
90 |
-+LDOPT=yes |
91 |
- DBG=yes |
92 |
- X11=yes |
93 |
- HOTPLUG=yes |
94 |
-@@ -70,6 +71,11 @@ for arg; do |
95 |
- --disable-opt) |
96 |
- OPT=no;; |
97 |
- |
98 |
-+ --enable-ldopt) |
99 |
-+ LDOPT=yes;; |
100 |
-+ --disable-ldopt) |
101 |
-+ LDOPT=no;; |
102 |
-+ |
103 |
- --enable-debug) |
104 |
- DBG=yes;; |
105 |
- --disable-debug) |
106 |
-@@ -95,6 +101,8 @@ for arg; do |
107 |
- echo ' --disable-hotplug: disable hotplug, fallback to polling for the device' |
108 |
- echo ' --enable-opt: enable speed optimizations (default)' |
109 |
- echo ' --disable-opt: disable speed optimizations' |
110 |
-+ echo ' --enable-ldopt: enable link optimizations (default)' |
111 |
-+ echo ' --disable-ldopt: disable link optimizations' |
112 |
- echo ' --enable-debug: include debugging symbols (default)' |
113 |
- echo ' --disable-debug: do not include debugging symbols' |
114 |
- echo 'all invalid options are silently ignored' |
115 |
-@@ -105,6 +113,7 @@ done |
116 |
- |
117 |
- echo " prefix: $PREFIX" |
118 |
- echo " optimize for speed: $OPT" |
119 |
-+echo " optimize link: $LDOPT" |
120 |
- echo " include debugging symbols: $DBG" |
121 |
- echo " x11 communication method: $X11" |
122 |
- echo " use hotplug: $HOTPLUG" |
123 |
-@@ -128,7 +137,11 @@ if [ "$DBG" = 'yes' ]; then |
124 |
- fi |
125 |
- |
126 |
- if [ "$OPT" = 'yes' ]; then |
127 |
-- echo 'opt = -O3' >>Makefile |
128 |
-+ echo "opt = ${CFLAGS:--O3}" >>Makefile |
129 |
-+fi |
130 |
-+ |
131 |
-+if [ "$LDOPT" = 'yes' ]; then |
132 |
-+ echo "ldopt = ${LDFLAGS}" >>Makefile |
133 |
- fi |
134 |
- |
135 |
- if [ "$X11" = 'yes' ]; then |
136 |
|
137 |
diff --git a/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch b/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch |
138 |
deleted file mode 100644 |
139 |
index 5b2372242e1..00000000000 |
140 |
--- a/app-misc/spacenavd/files/spacenavd-0.5-destdir.patch |
141 |
+++ /dev/null |
142 |
@@ -1,16 +0,0 @@ |
143 |
-diff -Npur spacenavd-0.5.orig/Makefile.in spacenavd-0.5/Makefile.in |
144 |
---- spacenavd-0.5.orig/Makefile.in 2011-11-16 21:43:53.210859753 +0100 |
145 |
-+++ spacenavd-0.5/Makefile.in 2011-11-16 21:45:36.386857932 +0100 |
146 |
-@@ -24,9 +24,9 @@ clean: |
147 |
- |
148 |
- .PHONY: install |
149 |
- install: $(bin) |
150 |
-- $(INSTALL) -d $(PREFIX)/bin |
151 |
-- $(INSTALL) -m 755 $(bin) $(PREFIX)/bin/$(bin) |
152 |
-- $(INSTALL) -m 755 $(srcdir)/$(ctl) $(PREFIX)/bin/$(ctl) |
153 |
-+ $(INSTALL) -d $(DESTDIR)$(PREFIX)/bin |
154 |
-+ $(INSTALL) -m 755 $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin) |
155 |
-+ $(INSTALL) -m 755 $(srcdir)/$(ctl) $(DESTDIR)$(PREFIX)/bin/$(ctl) |
156 |
- cd $(srcdir) && ./setup_init --no-install |
157 |
- |
158 |
- # [ -d /etc/hal/fdi/policy ] && \ |
159 |
|
160 |
diff --git a/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch b/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch |
161 |
deleted file mode 100644 |
162 |
index bbdd7d6196e..00000000000 |
163 |
--- a/app-misc/spacenavd/files/spacenavd-0.5-no-x11.patch |
164 |
+++ /dev/null |
165 |
@@ -1,13 +0,0 @@ |
166 |
-diff -Npur spacenavd-0.5.old/src/event.c spacenavd-0.5/src/event.c |
167 |
---- src/event.c 2012-03-21 22:15:37.093401293 +0100 |
168 |
-+++ src/event.c 2012-03-21 22:14:10.734401301 +0100 |
169 |
-@@ -20,7 +20,9 @@ along with this program. If not, see <h |
170 |
- #include <stdlib.h> |
171 |
- #include "event.h" |
172 |
- #include "client.h" |
173 |
-+#ifdef USE_X11 |
174 |
- #include "proto_x11.h" |
175 |
-+#endif |
176 |
- #include "proto_unix.h" |
177 |
- #include "spnavd.h" |
178 |
- |
179 |
|
180 |
diff --git a/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch b/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch |
181 |
deleted file mode 100644 |
182 |
index 485aa6c5933..00000000000 |
183 |
--- a/app-misc/spacenavd/files/spacenavd-0.7-gcc10.patch |
184 |
+++ /dev/null |
185 |
@@ -1,24 +0,0 @@ |
186 |
-From 081182f1675bb69eec58d92698f1ba2f23466d3f Mon Sep 17 00:00:00 2001 |
187 |
-From: John Tsiombikas <nuclear@××××××××××.org> |
188 |
-Date: Sat, 1 Feb 2020 01:19:14 +0200 |
189 |
-Subject: [PATCH] GCC 10 changes the default from -fcommon to -fno-common, so |
190 |
- we need to set it explicitly now. Closes github bug #17. |
191 |
- |
192 |
---- |
193 |
- Makefile.in | 3 ++- |
194 |
- 1 file changed, 2 insertions(+), 1 deletion(-) |
195 |
- |
196 |
-diff --git a/Makefile.in b/Makefile.in |
197 |
-index 9eba102..abf62c9 100644 |
198 |
---- a/Makefile.in |
199 |
-+++ b/Makefile.in |
200 |
-@@ -7,7 +7,8 @@ ctl = spnavd_ctl |
201 |
- |
202 |
- CC = gcc |
203 |
- INSTALL = install |
204 |
--CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src -I/usr/local/include $(add_cflags) |
205 |
-+CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -fcommon \ |
206 |
-+ -I$(srcdir)/src -I/usr/local/include $(add_cflags) |
207 |
- LDFLAGS = -L/usr/local/lib $(xlib) $(add_ldflags) |
208 |
- |
209 |
- $(bin): $(obj) |
210 |
|
211 |
diff --git a/app-misc/spacenavd/files/spacenavd-0.7-no-x11.patch b/app-misc/spacenavd/files/spacenavd-0.7-no-x11.patch |
212 |
deleted file mode 100644 |
213 |
index 8dbdb7df315..00000000000 |
214 |
--- a/app-misc/spacenavd/files/spacenavd-0.7-no-x11.patch |
215 |
+++ /dev/null |
216 |
@@ -1,24 +0,0 @@ |
217 |
-From 3168b1dedf88c9026683ed43ea337814003d6802 Mon Sep 17 00:00:00 2001 |
218 |
-From: John Tsiombikas <nuclear@××××××××××.org> |
219 |
-Date: Sat, 1 Feb 2020 22:08:43 +0200 |
220 |
-Subject: [PATCH] add a USE_X11 ifdef around the call to drop_xinput in |
221 |
- src/dev.c to fix non-X11 build. This should fix github issue #19. |
222 |
- |
223 |
---- |
224 |
- src/dev.c | 2 ++ |
225 |
- 1 file changed, 2 insertions(+) |
226 |
- |
227 |
-diff --git a/src/dev.c b/src/dev.c |
228 |
-index 8b72932..2074895 100644 |
229 |
---- a/src/dev.c |
230 |
-+++ b/src/dev.c |
231 |
-@@ -88,7 +88,9 @@ int init_devices(void) |
232 |
- return -1; |
233 |
- } |
234 |
- |
235 |
-+#ifdef USE_X11 |
236 |
- drop_xinput(); |
237 |
-+#endif |
238 |
- return 0; |
239 |
- } |
240 |
- |
241 |
|
242 |
diff --git a/app-misc/spacenavd/spacenavd-0.5-r5.ebuild b/app-misc/spacenavd/spacenavd-0.5-r5.ebuild |
243 |
deleted file mode 100644 |
244 |
index e586369f045..00000000000 |
245 |
--- a/app-misc/spacenavd/spacenavd-0.5-r5.ebuild |
246 |
+++ /dev/null |
247 |
@@ -1,81 +0,0 @@ |
248 |
-# Copyright 1999-2014 Gentoo Foundation |
249 |
-# Distributed under the terms of the GNU General Public License v2 |
250 |
- |
251 |
-EAPI="4" |
252 |
- |
253 |
-inherit eutils linux-info systemd toolchain-funcs udev |
254 |
- |
255 |
-MY_PN='spacenav' |
256 |
-DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon" |
257 |
-HOMEPAGE="http://spacenav.sourceforge.net/" |
258 |
-SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz" |
259 |
-LICENSE="GPL-3" |
260 |
-SLOT="0" |
261 |
-KEYWORDS="amd64 ppc64 x86" |
262 |
-IUSE="X" |
263 |
- |
264 |
-RDEPEND="X? ( x11-apps/xdpyinfo )" |
265 |
-DEPEND="${RDEPEND}" |
266 |
- |
267 |
-pkg_setup() { |
268 |
- CONFIG_CHECK="~INPUT_EVDEV" |
269 |
- ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly" |
270 |
- check_extra_config |
271 |
-} |
272 |
- |
273 |
-src_prepare() { |
274 |
- epatch "${FILESDIR}"/${P}-destdir.patch |
275 |
- epatch "${FILESDIR}"/${P}-custom-flags.patch |
276 |
- epatch "${FILESDIR}"/${P}-no-x11.patch |
277 |
-} |
278 |
- |
279 |
-src_configure() { |
280 |
- econf \ |
281 |
- --enable-opt --enable-ldopt \ |
282 |
- $(use_enable X x11) |
283 |
-} |
284 |
- |
285 |
-src_compile() { |
286 |
- emake CC="$(tc-getCC)" |
287 |
-} |
288 |
- |
289 |
-src_install() { |
290 |
- # Config file |
291 |
- insinto /etc |
292 |
- newins "${S}/doc/example-spnavrc" spnavrc.sample |
293 |
- |
294 |
- # Init script |
295 |
- newinitd "${FILESDIR}/spnavd" spacenavd |
296 |
- systemd_dounit "${FILESDIR}/spacenavd.service" |
297 |
- |
298 |
- # Install udev rule but leave activiation to the user |
299 |
- # since Xorg may be configured to grab the device already |
300 |
- insinto "$(get_udevdir)" |
301 |
- newins "${FILESDIR}"/99-space-navigator.rules-r1 99-space-navigator.rules.ignored |
302 |
- |
303 |
- # Daemon |
304 |
- dobin "${S}/spacenavd" |
305 |
- use X && dobin "${S}/spnavd_ctl" |
306 |
-} |
307 |
- |
308 |
-pkg_postinst() { |
309 |
- elog "To start the Spacenav daemon system-wide by default" |
310 |
- elog "you should add it to the default runlevel :" |
311 |
- elog "\`rc-update add spacenavd default\` (for openRC)" |
312 |
- elog "\`systemctl enable spacenavd\` (for systemd)" |
313 |
- elog |
314 |
- if use X; then |
315 |
- elog "To start generating Spacenav X events by default" |
316 |
- elog "you should add this command in your user startup" |
317 |
- elog "scripts such as .gnomerc or .xinitrc :" |
318 |
- elog "\`spnavd_ctl x11 start\`" |
319 |
- elog |
320 |
- fi |
321 |
- elog |
322 |
- elog "If you want to auto-start the daemon when you plug in" |
323 |
- elog "a SpaceNavigator device, activate the related udev rule :" |
324 |
- elog "\`sudo ln -s $(get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`" |
325 |
- ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run" |
326 |
- ewarn "the new version of the daemon or \`systemctl restart spacenavd\`" |
327 |
- ewarn "if using systemd." |
328 |
-} |
329 |
|
330 |
diff --git a/app-misc/spacenavd/spacenavd-0.5-r6.ebuild b/app-misc/spacenavd/spacenavd-0.5-r6.ebuild |
331 |
deleted file mode 100644 |
332 |
index 21dab6b21ab..00000000000 |
333 |
--- a/app-misc/spacenavd/spacenavd-0.5-r6.ebuild |
334 |
+++ /dev/null |
335 |
@@ -1,80 +0,0 @@ |
336 |
-# Copyright 1999-2017 Gentoo Foundation |
337 |
-# Distributed under the terms of the GNU General Public License v2 |
338 |
- |
339 |
-EAPI="5" |
340 |
- |
341 |
-inherit eutils linux-info systemd toolchain-funcs udev |
342 |
- |
343 |
-MY_PN='spacenav' |
344 |
-DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon" |
345 |
-HOMEPAGE="http://spacenav.sourceforge.net/" |
346 |
-SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz" |
347 |
-LICENSE="GPL-3" |
348 |
-SLOT="0" |
349 |
-KEYWORDS="~amd64 ~ppc64 ~x86" |
350 |
-IUSE="X" |
351 |
- |
352 |
-RDEPEND="X? ( x11-apps/xdpyinfo )" |
353 |
-DEPEND="${RDEPEND}" |
354 |
- |
355 |
-pkg_setup() { |
356 |
- CONFIG_CHECK="~INPUT_EVDEV" |
357 |
- ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly" |
358 |
- check_extra_config |
359 |
-} |
360 |
- |
361 |
-src_prepare() { |
362 |
- epatch "${FILESDIR}"/${P}-destdir.patch |
363 |
- epatch "${FILESDIR}"/${P}-custom-flags.patch |
364 |
- epatch "${FILESDIR}"/${P}-no-x11.patch |
365 |
-} |
366 |
- |
367 |
-src_configure() { |
368 |
- econf \ |
369 |
- --enable-opt --enable-ldopt \ |
370 |
- $(use_enable X x11) |
371 |
-} |
372 |
- |
373 |
-src_compile() { |
374 |
- emake CC="$(tc-getCC)" |
375 |
-} |
376 |
- |
377 |
-src_install() { |
378 |
- # Config file |
379 |
- insinto /etc |
380 |
- newins "${S}/doc/example-spnavrc" spnavrc.sample |
381 |
- |
382 |
- # Init script |
383 |
- newinitd "${FILESDIR}/spnavd" spacenavd |
384 |
- systemd_dounit "${FILESDIR}/spacenavd.service" |
385 |
- |
386 |
- # Install udev rule but leave activiation to the user |
387 |
- # since Xorg may be configured to grab the device already |
388 |
- udev_newrules "${FILESDIR}"/99-space-navigator.rules-r1 99-space-navigator.rules.ignored |
389 |
- |
390 |
- # Daemon |
391 |
- dobin "${S}/spacenavd" |
392 |
- use X && dobin "${S}/spnavd_ctl" |
393 |
-} |
394 |
- |
395 |
-pkg_postinst() { |
396 |
- elog "To start the Spacenav daemon system-wide by default" |
397 |
- elog "you should add it to the default runlevel :" |
398 |
- elog "\`rc-update add spacenavd default\` (for openRC)" |
399 |
- elog "\`systemctl enable spacenavd\` (for systemd)" |
400 |
- elog |
401 |
- if use X; then |
402 |
- elog "To start generating Spacenav X events by default" |
403 |
- elog "you should add this command in your user startup" |
404 |
- elog "scripts such as .gnomerc or .xinitrc :" |
405 |
- elog "\`spnavd_ctl x11 start\`" |
406 |
- elog |
407 |
- fi |
408 |
- elog |
409 |
- elog "If you want to auto-start the daemon when you plug in" |
410 |
- elog "a SpaceNavigator device, activate the related udev rule :" |
411 |
- elog "\`sudo ln -s $(get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`" |
412 |
- ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run" |
413 |
- ewarn "the new version of the daemon or \`systemctl restart spacenavd\`" |
414 |
- ewarn "if using systemd." |
415 |
-} |
416 |
|
417 |
diff --git a/app-misc/spacenavd/spacenavd-0.6.ebuild b/app-misc/spacenavd/spacenavd-0.6.ebuild |
418 |
deleted file mode 100644 |
419 |
index bc0c390694e..00000000000 |
420 |
--- a/app-misc/spacenavd/spacenavd-0.6.ebuild |
421 |
+++ /dev/null |
422 |
@@ -1,84 +0,0 @@ |
423 |
-# Copyright 1999-2020 Gentoo Authors |
424 |
-# Distributed under the terms of the GNU General Public License v2 |
425 |
- |
426 |
-EAPI="5" |
427 |
- |
428 |
-inherit flag-o-matic epatch linux-info systemd toolchain-funcs udev |
429 |
- |
430 |
-MY_PN='spacenav' |
431 |
-DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon" |
432 |
-HOMEPAGE="http://spacenav.sourceforge.net/" |
433 |
-SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz" |
434 |
-LICENSE="GPL-3" |
435 |
-SLOT="0" |
436 |
-KEYWORDS="amd64 ppc64 x86" |
437 |
-IUSE="X" |
438 |
- |
439 |
-RDEPEND="X? ( x11-apps/xdpyinfo )" |
440 |
-DEPEND="${RDEPEND}" |
441 |
- |
442 |
-pkg_setup() { |
443 |
- CONFIG_CHECK="~INPUT_EVDEV" |
444 |
- ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly" |
445 |
- check_extra_config |
446 |
-} |
447 |
- |
448 |
-src_prepare() { |
449 |
- epatch "${FILESDIR}"/${PN}-0.7-gcc10.patch |
450 |
- default |
451 |
-} |
452 |
- |
453 |
-src_configure() { |
454 |
- econf \ |
455 |
- --disable-debug \ |
456 |
- --enable-hotplug \ |
457 |
- --disable-opt \ |
458 |
- $(use_enable X x11) |
459 |
-} |
460 |
- |
461 |
-src_compile() { |
462 |
- append-cflags -fcommon # bug 708648 |
463 |
- emake CC="$(tc-getCC)" \ |
464 |
- add_cflags="${CFLAGS}" \ |
465 |
- add_ldflags="${LDFLAGS}" |
466 |
-} |
467 |
- |
468 |
-src_install() { |
469 |
- # Config file |
470 |
- insinto /etc |
471 |
- newins "${S}/doc/example-spnavrc" spnavrc.sample |
472 |
- |
473 |
- # Init script |
474 |
- newinitd "${FILESDIR}/spnavd" spacenavd |
475 |
- systemd_dounit "${FILESDIR}/spacenavd.service" |
476 |
- |
477 |
- # Install udev rule but leave activiation to the user |
478 |
- # since Xorg may be configured to grab the device already |
479 |
- udev_newrules "${FILESDIR}"/99-space-navigator.rules-r2 99-space-navigator.rules.ignored |
480 |
- |
481 |
- # Daemon |
482 |
- dobin "${S}/spacenavd" |
483 |
- use X && dobin "${S}/spnavd_ctl" |
484 |
-} |
485 |
- |
486 |
-pkg_postinst() { |
487 |
- elog "To start the Spacenav daemon system-wide by default" |
488 |
- elog "you should add it to the default runlevel :" |
489 |
- elog "\`rc-update add spacenavd default\` (for openRC)" |
490 |
- elog "\`systemctl enable spacenavd\` (for systemd)" |
491 |
- elog |
492 |
- if use X; then |
493 |
- elog "To start generating Spacenav X events by default" |
494 |
- elog "you should add this command in your user startup" |
495 |
- elog "scripts such as .gnomerc or .xinitrc :" |
496 |
- elog "\`spnavd_ctl x11 start\`" |
497 |
- elog |
498 |
- fi |
499 |
- elog |
500 |
- elog "If you want to auto-start the daemon when you plug in" |
501 |
- elog "a SpaceNavigator device, activate the related udev rule :" |
502 |
- elog "\`sudo ln -s $(get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`" |
503 |
- ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run" |
504 |
- ewarn "the new version of the daemon or \`systemctl restart spacenavd\`" |
505 |
- ewarn "if using systemd." |
506 |
-} |
507 |
|
508 |
diff --git a/app-misc/spacenavd/spacenavd-0.7.ebuild b/app-misc/spacenavd/spacenavd-0.7.ebuild |
509 |
deleted file mode 100644 |
510 |
index e9fef0e6086..00000000000 |
511 |
--- a/app-misc/spacenavd/spacenavd-0.7.ebuild |
512 |
+++ /dev/null |
513 |
@@ -1,84 +0,0 @@ |
514 |
-# Copyright 1999-2020 Gentoo Authors |
515 |
-# Distributed under the terms of the GNU General Public License v2 |
516 |
- |
517 |
-EAPI=7 |
518 |
- |
519 |
-inherit flag-o-matic linux-info systemd toolchain-funcs udev |
520 |
- |
521 |
-MY_PN='spacenav' |
522 |
-DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon" |
523 |
-HOMEPAGE="http://spacenav.sourceforge.net/" |
524 |
-SRC_URI="https://github.com/FreeSpacenav/spacenavd/releases/download/v${PV}/${P}.tar.gz" |
525 |
-LICENSE="GPL-3" |
526 |
-SLOT="0" |
527 |
-KEYWORDS="~amd64 ~ppc64 ~x86" |
528 |
-IUSE="X" |
529 |
- |
530 |
-RDEPEND="X? ( x11-apps/xdpyinfo x11-libs/libXi )" |
531 |
-DEPEND="${RDEPEND}" |
532 |
- |
533 |
-PATCHES=( |
534 |
- "${FILESDIR}"/${P}-gcc10.patch |
535 |
- "${FILESDIR}"/${P}-no-x11.patch |
536 |
-) |
537 |
- |
538 |
-pkg_setup() { |
539 |
- CONFIG_CHECK="~INPUT_EVDEV" |
540 |
- ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly" |
541 |
- check_extra_config |
542 |
-} |
543 |
- |
544 |
-src_configure() { |
545 |
- econf \ |
546 |
- --disable-debug \ |
547 |
- --enable-hotplug \ |
548 |
- --disable-opt \ |
549 |
- $(use_enable X x11) |
550 |
-} |
551 |
- |
552 |
-src_compile() { |
553 |
- append-cflags -fcommon # bug 708648 |
554 |
- emake CC="$(tc-getCC)" \ |
555 |
- add_cflags="${CFLAGS}" \ |
556 |
- add_ldflags="${LDFLAGS}" |
557 |
-} |
558 |
- |
559 |
-src_install() { |
560 |
- # Config file |
561 |
- insinto /etc |
562 |
- newins "${S}/doc/example-spnavrc" spnavrc.sample |
563 |
- |
564 |
- # Init script |
565 |
- newinitd "${FILESDIR}/spnavd" spacenavd |
566 |
- systemd_dounit "${FILESDIR}/spacenavd.service" |
567 |
- |
568 |
- # Install udev rule but leave activiation to the user |
569 |
- # since Xorg may be configured to grab the device already |
570 |
- udev_newrules "${FILESDIR}"/99-space-navigator.rules-r2 99-space-navigator.rules.ignored |
571 |
- |
572 |
- # Daemon |
573 |
- dobin "${S}/spacenavd" |
574 |
- use X && dobin "${S}/spnavd_ctl" |
575 |
-} |
576 |
- |
577 |
-pkg_postinst() { |
578 |
- elog "To start the Spacenav daemon system-wide by default" |
579 |
- elog "you should add it to the default runlevel :" |
580 |
- elog "\`rc-update add spacenavd default\` (for openRC)" |
581 |
- elog "\`systemctl enable spacenavd\` (for systemd)" |
582 |
- elog |
583 |
- if use X; then |
584 |
- elog "To start generating Spacenav X events by default" |
585 |
- elog "you should add this command in your user startup" |
586 |
- elog "scripts such as .gnomerc or .xinitrc :" |
587 |
- elog "\`spnavd_ctl x11 start\`" |
588 |
- elog |
589 |
- fi |
590 |
- elog |
591 |
- elog "If you want to auto-start the daemon when you plug in" |
592 |
- elog "a SpaceNavigator device, activate the related udev rule :" |
593 |
- elog "\`sudo ln -s $(get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`" |
594 |
- ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run" |
595 |
- ewarn "the new version of the daemon or \`systemctl restart spacenavd\`" |
596 |
- ewarn "if using systemd." |
597 |
-} |