summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthoine Bourgeois <anthoine.bourgeois@gmail.com>2017-01-14 20:17:17 +0100
committerAnthoine Bourgeois <anthoine.bourgeois@gmail.com>2017-01-14 20:17:44 +0100
commit9b94a6d98ec071aaf5e5f9427a61956b4db636d6 (patch)
treec713800294fd678fd6947ce47672301a428a8d10
parent+radare2-0.9.9.ebuild (diff)
downloadaluco-9b94a6d98ec071aaf5e5f9427a61956b4db636d6.tar.gz
aluco-9b94a6d98ec071aaf5e5f9427a61956b4db636d6.tar.bz2
aluco-9b94a6d98ec071aaf5e5f9427a61956b4db636d6.zip
+spacenavd-0.6.ebuild
Bump version (#605508)
-rw-r--r--app-misc/spacenavd/Manifest4
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.6-custom-flags.patch12
-rw-r--r--app-misc/spacenavd/files/spacenavd-0.6-debug.patch12
-rw-r--r--app-misc/spacenavd/spacenavd-0.6.ebuild80
4 files changed, 108 insertions, 0 deletions
diff --git a/app-misc/spacenavd/Manifest b/app-misc/spacenavd/Manifest
index dcac045..0a491da 100644
--- a/app-misc/spacenavd/Manifest
+++ b/app-misc/spacenavd/Manifest
@@ -2,8 +2,12 @@ AUX 99-space-navigator.rules-r1 604 SHA256 7b01eb002298b725c11a9fc0de421947ea2a1
AUX spacenavd-0.5-custom-flags.patch 2008 SHA256 78c8aebbd33f0c135501e6dea132c4f6edd9068bfddf741bfc8fe11d5269f546 SHA512 547d9f3098846901418acb71be996cec39bf18616e4a7eee5fc09bc201bfb2a534ff70f38d515b0f6c685330d002ea277c03b448ba70de4a3df65e6286780174 WHIRLPOOL da8e4d838d91e8334b7adb16751e928193ac27dde496d2304a9fa4f9412f70791ff2df785ee0662dde805ff813f7e17f83291671629f54e704544725e6dd9466
AUX spacenavd-0.5-destdir.patch 649 SHA256 df58f5006d3b1be15a40182ca91ea964d62572a6e0a47b05c037958674db5366 SHA512 4330ae7b49e661a60f01931716f9924c01cade4e169b3de48ec08039099ce10c6dfe5c8df9a3b01c1890ccb83b3c92d45ea06f5fd9465c3f1514902cc375e1f0 WHIRLPOOL d90f63eb471509eae6cc3bd4e28e08f56882ae8e8a04b5867b75afba271c938da424d7625ead6166bfdfd31039cc482ccef53748bb055260bf2de9088dec59e9
AUX spacenavd-0.5-no-x11.patch 388 SHA256 1c4a16f41176da31e61cb4a0984d4d3b158d334e598325c2eda9e8f6ab6ef933 SHA512 d6cb2d6337b3e19ef56f5e0ccbfdc731b038009df852b3d1f7272001aa18e70a1701c3af2d1b4976cac7392a6176c0f4cee787d2c9b4b96ba029d1cc0db3d7ae WHIRLPOOL 7ea4516dc404900377d44dc056b2056b32c066759ebdf3363fc43379069d90b4eaecc32f3156173a9a030b1bc392c7665d33b11749fc05bec50a781b5c1f94ef
+AUX spacenavd-0.6-custom-flags.patch 539 SHA256 1b85dcb6b1cb8b756590af476d7cab1cb74dd4d09b4c15079424112aa64dec10 SHA512 32cc9d9d36cbd47573feb445153efa538239780a4ae910d75d6cac77b86332bc8e2d8773c28fd74fec89f9cb2173eb3a5926909c58ea9bad757d2e7926dd45b5 WHIRLPOOL 297d63246accf173a351692c06e699ddfa59c39fb5a735bb8634f00faf955d8ad6606713fecd458af98d770f338127bc5a1879f9a31d9874bc711cf4efd5c33c
+AUX spacenavd-0.6-debug.patch 341 SHA256 179f4ccd9d997a00cb3df4d2f68782ad8873c3c98ed886b811f0497a6fbc1ef8 SHA512 11ce1f74733bdd6a70f600e8c8ba8be5a795ccccdc3b1d389008cdb0dc6d8505ee0719531ac47f2fea2cada5048aede6039e5cc5d10d470052b2655398b13d64 WHIRLPOOL e532832790c1aa3b59ea7f7bacc52b004a9cef0658691cb4353555240b87152b64dfb960fae4788caee3d97b41576742dd55bda5bda32ae01f9c1acffd1bc5b0
AUX spacenavd.service 143 SHA256 d6e8831b5fc37da1fa14ea4ae7568cec1c0964bb080c3217cbd78df1a279f349 SHA512 1f2fd8bf2bdffe3e52f5e2e53e0643e0d5ad5134bfd636ebc2c98f397da5c87bca3582fd76f9e987fb6ed3d17130196f4eee193998f97e388dc04877277c04d5 WHIRLPOOL 62804c40afc19a2fba63ee5f98441b90b765c09b710a58802749e015870e491f714c9cd0b4d51afd47b79a32c7798a0c43e03cdffb6edbbb39417194886375c1
AUX spnavd 579 SHA256 2ad811c9c2de7ffa054e22a3d1a8c597b0a1cdc9fda719a7cc94a4fd8ca7ad42 SHA512 9088928719172ac114d86cfdde0bd3c435fec51538334b8f8beaa7945848fcb89373577b1daaa446f43c01f3f9e3d6e03cdea53d153530a8f8508552e14b8fa9 WHIRLPOOL 45e40c8a59013a6f24e466ebaac60126113e85dee89c719a4df496c9da0f45ecc2d4aa17ce828618fb043e8d5b1bb1007043cade553e98ce08741c8beafc53dd
DIST spacenavd-0.5.tar.gz 41746 SHA256 0eecc5b5ad47ee6376d1521f2bc7c8f8fc02904cf3fede3f77e59f4795b592e3 SHA512 908f598e4ba5febbc1191cc32cd444817acd40c22e79b1f139c50787e1e25d4cd8328dc3fd6d9dde09bb80232b52f0e75ae429fb3345eb51fbe5a47577b038e2 WHIRLPOOL e2cf70c7e9cc4b8e32b15ab79dae565c8c2a4bc32a6485a0a1857ea4d4667859ac0bb82e32cd54b722d51c34b9ea094fe8bcb1459a9f60077bde8a01207ab910
+DIST spacenavd-0.6.tar.gz 54730 SHA256 c2d203bf96c5a959590146a43fe5d6e5e8c5c38a8b2f55aa199d967d0d88d0ab SHA512 ff039e169805365ce8c1df1258eda6d263a0724c087b22a9e78269629455580817027d936e6bb7014b7654f48aa23232e8059585175003034e4bd3e0d6ed8200 WHIRLPOOL 2f7ff91302c9970d54c7983e7e3ee75d2254d2a8640d701e1449f9a31dfab0937c811491acfdf15356ebfe4914462468031090954c28ffab59a30068a60f19cf
EBUILD spacenavd-0.5-r6.ebuild 2457 SHA256 fb7fcee31236de09edd0c35f45113b6f47709e26715a2d7389487404bbe7d1ca SHA512 e160af9cc7150dffc83fa049cfd25003d054110d14e243311d18c1ed521b02f975eebb427a5afa82c6071b365a3da3e63a67ec2ca2d0a84f13662ae58ed7f1e2 WHIRLPOOL a8b02126007bd5227e3d6e273d9529279912ab611ed543bc95321a8b11122b9ab49088888d06d7c717e12571bcf1b147ebe6a81ed70b13a3981862257f276f87
+EBUILD spacenavd-0.6.ebuild 2401 SHA256 27c6012d4c4ca88236d8cadfa1ec3dbc850b09dd30514db4d8398f5580c21650 SHA512 4b7c1d955309d63d113b7dea2e245e20359e17de7025f90451be44c9d88b43f7105ae9d7298a27d3e1646e64c1d9080e1df8b5e00013ce7a99328f18ae688463 WHIRLPOOL d76a4db5eb3a8d033911dae0b41c72db02b1c9fef95754c940d839515e591c7bf1fdeebed98e3a0ea4cd5af25c68649538f5b44508d3513fecb1cd3d779d0555
MISC metadata.xml 853 SHA256 ce9a9943bd9e35ed71fbb9d2d40b42c1e7331b2bde217e4fc7b25e7972541e31 SHA512 7bb805662eebb527d733641385f33ebd2f5a7680e3911b77bc3f324ab760930d34b2f97f245901d99f63bd180d987e4d28d6116c15f18bc0899500ee07361d39 WHIRLPOOL 0fa61f2aa608d8b5aaabc5ed27558084907330e86d85258b1e359ab0a7b58231e5ae861dc3af17f30a073f42b0b2060530a7056747d6e9e162373feae28ce9ef
diff --git a/app-misc/spacenavd/files/spacenavd-0.6-custom-flags.patch b/app-misc/spacenavd/files/spacenavd-0.6-custom-flags.patch
new file mode 100644
index 0000000..1b61f1a
--- /dev/null
+++ b/app-misc/spacenavd/files/spacenavd-0.6-custom-flags.patch
@@ -0,0 +1,12 @@
+diff -Npur spacenavd-0.6.orig/Makefile.in spacenavd-0.6/Makefile.in
+--- spacenavd-0.6.orig/Makefile.in 2017-01-14 17:01:33.194550674 +0100
++++ spacenavd-0.6/Makefile.in 2017-01-14 17:01:55.046552564 +0100
+@@ -7,7 +7,7 @@ ctl = spnavd_ctl
+
+ CC = gcc
+ INSTALL = install
+-CFLAGS = -pedantic -Wall $(dbg) $(opt) -fno-strict-aliasing -I$(srcdir)/src -I/usr/local/include $(add_cflags)
++CFLAGS = $(dbg) -fno-strict-aliasing -I$(srcdir)/src -I/usr/local/include $(add_cflags)
+ LDFLAGS = -L/usr/local/lib $(xlib) $(add_ldflags)
+
+ $(bin): $(obj)
diff --git a/app-misc/spacenavd/files/spacenavd-0.6-debug.patch b/app-misc/spacenavd/files/spacenavd-0.6-debug.patch
new file mode 100644
index 0000000..8a7fac1
--- /dev/null
+++ b/app-misc/spacenavd/files/spacenavd-0.6-debug.patch
@@ -0,0 +1,12 @@
+diff -Npur spacenavd-0.6.orig/configure spacenavd-0.6/configure
+--- spacenavd-0.6.orig/configure 2017-01-14 17:20:54.724651168 +0100
++++ spacenavd-0.6/configure 2017-01-14 17:21:06.952652226 +0100
+@@ -36,7 +36,7 @@ check_header() {
+
+ PREFIX=/usr/local
+ OPT=yes
+-DBG=yes
++DBG=no
+ X11=yes
+ HOTPLUG=yes
+ VER=`head -1 README | sed 's/^.*- //'`
diff --git a/app-misc/spacenavd/spacenavd-0.6.ebuild b/app-misc/spacenavd/spacenavd-0.6.ebuild
new file mode 100644
index 0000000..a523791
--- /dev/null
+++ b/app-misc/spacenavd/spacenavd-0.6.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/spacenavd/spacenavd-0.5-r4.ebuild,v 1.6 2013/02/12 16:51:06 ago Exp $
+
+EAPI="4"
+
+inherit eutils linux-info systemd toolchain-funcs udev
+
+MY_PN='spacenav'
+DESCRIPTION="The spacenavd daemon provides free alternative to the 3dxserv daemon"
+HOMEPAGE="http://spacenav.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${MY_PN}/${MY_PN}%20daemon/${PN}%20${PV}/${P}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86"
+IUSE="X debug"
+
+RDEPEND="X? ( x11-apps/xdpyinfo )"
+DEPEND="${RDEPEND}"
+
+pkg_setup() {
+ CONFIG_CHECK="~INPUT_EVDEV"
+ ERROR_CFG="Your kernel needs INPUT_EVDEV for the spacenavd to work properly"
+ check_extra_config
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-custom-flags.patch
+}
+
+src_configure() {
+ econf \
+ $(use_enable X x11) $(use_enable debug)
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" \
+ add_cflags="${CFLAGS}" add_ldflags="${LDFLAGS}"
+}
+
+src_install() {
+ # Config file
+ insinto /etc
+ newins "${S}/doc/example-spnavrc" spnavrc.sample
+
+ # Init script
+ newinitd "${FILESDIR}/spnavd" spacenavd
+ systemd_dounit "${FILESDIR}/spacenavd.service"
+
+ # Install udev rule but leave activiation to the user
+ # since Xorg may be configured to grab the device already
+ insinto "$(get_udevdir)"
+ newins "${FILESDIR}"/99-space-navigator.rules-r1 99-space-navigator.rules.ignored
+
+ # Daemon
+ dobin "${S}/spacenavd"
+ use X && dobin "${S}/spnavd_ctl"
+}
+
+pkg_postinst() {
+ elog "To start the Spacenav daemon system-wide by default"
+ elog "you should add it to the default runlevel :"
+ elog "\`rc-update add spacenavd default\` (for openRC)"
+ elog "\`systemctl enable spacenavd\` (for systemd)"
+ elog
+ if use X; then
+ elog "To start generating Spacenav X events by default"
+ elog "you should add this command in your user startup"
+ elog "scripts such as .gnomerc or .xinitrc :"
+ elog "\`spnavd_ctl x11 start\`"
+ elog
+ fi
+ elog
+ elog "If you want to auto-start the daemon when you plug in"
+ elog "a SpaceNavigator device, activate the related udev rule :"
+ elog "\`sudo ln -s $(get_udevdir)/rules.d/99-space-navigator.rules.ignored /etc/udev/rules.d\`"
+ ewarn "You must restart spnavd \`/etc/init.d/spacenavd restart\` to run"
+ ewarn "the new version of the daemon or \`systemctl restart spacenavd\`"
+ ewarn "if using systemd."
+}