games-util/joystick: Bump to version 1.4.9
authorLars Wendler <polynomial-c@gentoo.org>
Thu, 7 Apr 2016 13:05:10 +0000 (15:05 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Thu, 7 Apr 2016 13:05:29 +0000 (15:05 +0200)
Package-Manager: portage-2.2.28
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
games-util/joystick/Manifest
games-util/joystick/files/joystick-1.4.9-build.patch [new file with mode: 0644]
games-util/joystick/joystick-1.4.9.ebuild [new file with mode: 0644]

index 2b49efbca52cf2bd0501b3c38aa7c5ff2ae7bd76..6f2f31383169a769bf31ca69bb1ab0e5e266a5a6 100644 (file)
@@ -1 +1,2 @@
 DIST linuxconsoletools-1.4.8.tar.bz2 43964 SHA256 23c4ac595f608e25f472d947c4193233f763f37ae0cf6b48141d33443a4cee6a SHA512 ea3a0baa3f163e10a4c76f58977a96d91d91bddb1a75cea5195b0a631c11ca55e40730aaa0d1965404837595c4a7fd8b75c3dd7785fe0e47ee2c90021341f262 WHIRLPOOL c02960d5e171efef3739f440a903ae9b14bec8b6ab4de2181ea691aa78c870f81b291ac98e313d234778fb59c4be8e53242cb46db019f3dffdbd8f26ddcbb113
+DIST linuxconsoletools-1.4.9.tar.bz2 45430 SHA256 fa9c64f98cd991e71e23fa9b673635e23f0b69f0325593c0a56b8960bb139b67 SHA512 c2ea4f8f868b3d616bb0a4b84d6a051ed444251cc5d40c775863a5163359c9c34ee9647ff1c74e8659f7fef10d8722b4431b2e1706cf5052505731c1a1232ddd WHIRLPOOL 5939e606d5d8775d801dd93e5b4ca398218168f3ef56961a81b588ebfd0548d2ee03af8e5a3436fe6ed4ad60f972cdd74bed78b30cee949cc77c3fa64a3dd3a6
diff --git a/games-util/joystick/files/joystick-1.4.9-build.patch b/games-util/joystick/files/joystick-1.4.9-build.patch
new file mode 100644 (file)
index 0000000..ce951cb
--- /dev/null
@@ -0,0 +1,34 @@
+--- linuxconsoletools-1.4.9/docs/Makefile
++++ linuxconsoletools-1.4.9/docs/Makefile
+@@ -20,9 +20,13 @@
+ # 02110-1301 USA.
+ MANPAGES      = inputattach.1 jstest.1 jscal.1 fftest.1 \
+-                ffmvforce.1 ffset.1 ffcfstress.1 jscal-store.1 \
++                ffset.1 ffcfstress.1 jscal-store.1 \
+                 jscal-restore.1
++ifneq ($(USE_SDL),no)
++MANPAGES += ffmvforce.1
++endif
++
+ PREFIX          ?= /usr/local
+ install:
+--- linuxconsoletools-1.4.9/utils/Makefile
++++ linuxconsoletools-1.4.9/utils/Makefile
+@@ -27,9 +27,13 @@
+ CFLAGS                ?= -g -O2 -Wall
+-PROGRAMS      = inputattach jstest jscal fftest ffmvforce ffset \
++PROGRAMS      = inputattach jstest jscal fftest ffset \
+                 ffcfstress jscal-restore jscal-store
++ifneq ($(USE_SDL),no)
++PROGRAMS += ffmvforce
++endif
++
+ PREFIX          ?= /usr/local
+ compile: $(PROGRAMS)
diff --git a/games-util/joystick/joystick-1.4.9.ebuild b/games-util/joystick/joystick-1.4.9.ebuild
new file mode 100644 (file)
index 0000000..6a415b9
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+inherit eutils toolchain-funcs
+
+MY_P="linuxconsoletools-${PV}"
+DESCRIPTION="joystick testing utilities"
+HOMEPAGE="http://sourceforge.net/projects/linuxconsole/ http://atrey.karlin.mff.cuni.cz/~vojtech/input/"
+SRC_URI="mirror://sourceforge/linuxconsole/files/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="sdl udev"
+
+DEPEND="sdl? ( media-libs/libsdl:0[video] )
+       !<x11-libs/tslib-1.0-r2"
+RDEPEND="${DEPEND}
+       udev? ( virtual/udev )"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.4.9-build.patch
+       "${FILESDIR}"/${PN}-1.4.8-udev.patch
+)
+
+src_prepare() {
+       default
+
+       export PREFIX=/usr
+       tc-export CC PKG_CONFIG
+       export USE_SDL=$(usex sdl)
+}
+
+src_install() {
+       default
+       if use !udev ; then
+               rm "${D}"/usr/bin/jscal-{re,}store || die
+       fi
+}