summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2015-05-16 06:04:45 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2015-05-16 06:04:45 +0000
commit7957a4ff7d802eafbd4616fb5410cce529f303f5 (patch)
tree17d2a54af87d75a74926a8be3e4815d9b47d2879 /games-util
parentBug 448470: adjust preserved libs. (diff)
downloadgentoo-2-7957a4ff7d802eafbd4616fb5410cce529f303f5.tar.gz
gentoo-2-7957a4ff7d802eafbd4616fb5410cce529f303f5.tar.bz2
gentoo-2-7957a4ff7d802eafbd4616fb5410cce529f303f5.zip
look in both places for old and new udev package locations of udevadm (bug #543200)
(Portage version: 2.2.18/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'games-util')
-rw-r--r--games-util/joystick/ChangeLog9
-rw-r--r--games-util/joystick/files/joystick-1.4.8-udev.patch52
-rw-r--r--games-util/joystick/joystick-1.4.8-r1.ebuild39
3 files changed, 99 insertions, 1 deletions
diff --git a/games-util/joystick/ChangeLog b/games-util/joystick/ChangeLog
index 5b2190d51c4d..10945caecae0 100644
--- a/games-util/joystick/ChangeLog
+++ b/games-util/joystick/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-util/joystick
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-util/joystick/ChangeLog,v 1.31 2015/04/02 20:49:49 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-util/joystick/ChangeLog,v 1.32 2015/05/16 06:04:45 mr_bones_ Exp $
+
+*joystick-1.4.8-r1 (16 May 2015)
+
+ 16 May 2015; Michael Sterrett <mr_bones_@gentoo.org>
+ +files/joystick-1.4.8-udev.patch, +joystick-1.4.8-r1.ebuild:
+ look in both places for old and new udev package locations of udevadm (bug
+ #543200)
02 Apr 2015; Michael Sterrett <mr_bones_@gentoo.org>
-files/joystick-1.4.4-build.patch, -joystick-1.4.4.ebuild:
diff --git a/games-util/joystick/files/joystick-1.4.8-udev.patch b/games-util/joystick/files/joystick-1.4.8-udev.patch
new file mode 100644
index 000000000000..c8d78adaded0
--- /dev/null
+++ b/games-util/joystick/files/joystick-1.4.8-udev.patch
@@ -0,0 +1,52 @@
+diff -ru linuxconsoletools-1.4.8.orig/utils/jscal-restore.in linuxconsoletools-1.4.8/utils/jscal-restore.in
+--- linuxconsoletools-1.4.8.orig/utils/jscal-restore.in 2011-12-15 10:49:01.000000000 -0500
++++ linuxconsoletools-1.4.8/utils/jscal-restore.in 2015-05-16 01:54:00.799168225 -0400
+@@ -6,8 +6,13 @@
+ exit 1
+ fi
+
+-if [ ! -x /sbin/udevadm ]; then
+- echo Restoring joystick configuration requires udev! >&2
++for f in /sbin/udevadm /bin/udevadm ;
++do
++ [ -x $f ] && UDEV=$f
++done
++
++if [ -z "$UDEVADM" ] ; then
++ echo Storing joystick configuration requires udev! >&2
+ exit 1
+ fi
+
+@@ -30,7 +35,7 @@
+ # in the NAME value
+ IFS=$'\x0A'
+
+-for ATTRIBUTE in $( /sbin/udevadm info -a -n $1 | @@PREFIX@@/share/joystick/ident ); do
++for ATTRIBUTE in $( ${UDEVADM} -a -n $1 | @@PREFIX@@/share/joystick/ident ); do
+ ID=$( echo "$ATTRIBUTE" | cut -f 1 -d = )
+ VALUE=$( echo "$ATTRIBUTE" | cut -f 2 -d \" )
+ case $ID in
+diff -ru linuxconsoletools-1.4.8.orig/utils/jscal-store.in linuxconsoletools-1.4.8/utils/jscal-store.in
+--- linuxconsoletools-1.4.8.orig/utils/jscal-store.in 2011-12-15 10:49:01.000000000 -0500
++++ linuxconsoletools-1.4.8/utils/jscal-store.in 2015-05-16 01:53:18.725607838 -0400
+@@ -11,14 +11,18 @@
+ echo "Stores the device's calibration for future use."
+ exit 1
+ fi
++for f in /sbin/udevadm /bin/udevadm ;
++do
++ [ -x $f ] && UDEV=$f
++done
+
+-if [ ! -x /sbin/udevadm ]; then
++if [ -z "$UDEVADM" ] ; then
+ echo Storing joystick configuration requires udev! >&2
+ exit 1
+ fi
+
+ ident=$(mktemp)
+-/sbin/udevadm info -a -n $1 | @@PREFIX@@/share/joystick/ident > $ident
++${UDEVADM} info -a -n $1 | @@PREFIX@@/share/joystick/ident > $ident
+ . $ident
+ rm $ident
+
diff --git a/games-util/joystick/joystick-1.4.8-r1.ebuild b/games-util/joystick/joystick-1.4.8-r1.ebuild
new file mode 100644
index 000000000000..36c5bab9d231
--- /dev/null
+++ b/games-util/joystick/joystick-1.4.8-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/joystick/joystick-1.4.8-r1.ebuild,v 1.1 2015/05/16 06:04:45 mr_bones_ Exp $
+
+EAPI=5
+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}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-build.patch \
+ "${FILESDIR}"/${P}-udev.patch
+ export PREFIX=/usr
+ tc-export CC PKG_CONFIG
+ export USE_SDL=$(usex sdl)
+}
+
+src_install() {
+ default
+ if use !udev ; then
+ rm -f "${D}"/usr/bin/jscal-{re,}store || die
+ fi
+}