summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2010-05-01 21:16:34 +0000
committerTristan Heaven <nyhm@gentoo.org>2010-05-01 21:16:34 +0000
commit5398914cba1f9c9cbf12bba210851101145ea597 (patch)
treea7443468260c243a859501859f3b2d04a0321e7c /games-util/xboxdrv
parentVersion bump. (diff)
downloadgentoo-2-5398914cba1f9c9cbf12bba210851101145ea597.tar.gz
gentoo-2-5398914cba1f9c9cbf12bba210851101145ea597.tar.bz2
gentoo-2-5398914cba1f9c9cbf12bba210851101145ea597.zip
Version bump
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'games-util/xboxdrv')
-rw-r--r--games-util/xboxdrv/ChangeLog8
-rw-r--r--games-util/xboxdrv/files/xboxdrv-0.4.11-build.patch30
-rw-r--r--games-util/xboxdrv/xboxdrv-0.4.11.ebuild56
3 files changed, 93 insertions, 1 deletions
diff --git a/games-util/xboxdrv/ChangeLog b/games-util/xboxdrv/ChangeLog
index 83c938b9020b..1ebfbd8fef1e 100644
--- a/games-util/xboxdrv/ChangeLog
+++ b/games-util/xboxdrv/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-util/xboxdrv
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/ChangeLog,v 1.2 2010/03/04 19:10:14 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/ChangeLog,v 1.3 2010/05/01 21:16:34 nyhm Exp $
+
+*xboxdrv-0.4.11 (01 May 2010)
+
+ 01 May 2010; Tristan Heaven <nyhm@gentoo.org> +xboxdrv-0.4.11.ebuild,
+ +files/xboxdrv-0.4.11-build.patch:
+ Version bump
*xboxdrv-0.4.10 (04 Mar 2010)
diff --git a/games-util/xboxdrv/files/xboxdrv-0.4.11-build.patch b/games-util/xboxdrv/files/xboxdrv-0.4.11-build.patch
new file mode 100644
index 000000000000..96477c6fce3a
--- /dev/null
+++ b/games-util/xboxdrv/files/xboxdrv-0.4.11-build.patch
@@ -0,0 +1,30 @@
+--- SConstruct
++++ SConstruct
+@@ -1,8 +1,7 @@
+ # -*- python -*-
+
+-if True:
++if False:
+ env = Environment(CPPFLAGS=['-g', '-O2', '-Wall', '-ansi', '-pedantic'])
+-else:
+ env = Environment(CXXFLAGS= [ "-O3", "-g3",
+ "-ansi",
+ "-pedantic",
+@@ -18,6 +17,17 @@
+ "-Winit-self", # only works with >= -O1
+ "-Wno-unused-parameter",
+ ])
++import os
++import SCons.Util
++
++env = Environment(CPPFLAGS=['-Wall', '-ansi', '-pedantic'])
++if os.environ.has_key('CXX'):
++ env['CXX'] = os.environ['CXX']
++if os.environ.has_key('CXXFLAGS'):
++ env['CXXFLAGS'] = SCons.Util.CLVar(os.environ['CXXFLAGS'])
++if os.environ.has_key('LDFLAGS'):
++ env['LINKFLAGS'] = SCons.Util.CLVar(os.environ['LDFLAGS'])
++
+ conf = Configure(env)
+
+ if not conf.env['CXX']:
diff --git a/games-util/xboxdrv/xboxdrv-0.4.11.ebuild b/games-util/xboxdrv/xboxdrv-0.4.11.ebuild
new file mode 100644
index 000000000000..05e046c709c0
--- /dev/null
+++ b/games-util/xboxdrv/xboxdrv-0.4.11.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/xboxdrv-0.4.11.ebuild,v 1.1 2010/05/01 21:16:34 nyhm Exp $
+
+EAPI=2
+inherit eutils toolchain-funcs linux-info
+
+MY_P=${PN}-linux-${PV}
+DESCRIPTION="Userspace Xbox 360 Controller driver"
+HOMEPAGE="http://pingus.seul.org/~grumbel/xboxdrv/"
+SRC_URI="http://pingus.seul.org/~grumbel/xboxdrv/${MY_P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="daemon"
+
+RDEPEND="dev-libs/boost
+ virtual/libusb:0
+ x11-libs/libX11"
+DEPEND="${RDEPEND}
+ dev-util/scons"
+RDEPEND="${RDEPEND}
+ daemon? (
+ dev-python/dbus-python
+ dev-python/pygobject
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+CONFIG_CHECK="~INPUT_EVDEV ~INPUT_JOYDEV ~INPUT_UINPUT ~!JOYSTICK_XPAD"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+src_compile() {
+ tc-export CXX
+ scons || die "scons failed"
+}
+
+src_install() {
+ dobin xboxdrv || die "dobin failed"
+
+ if use daemon ; then
+ dobin tools/xboxdrv-daemon.py || die "dobin failed"
+ fi
+
+ insinto /etc/hal/fdi/policy
+ newins hal/xboxdrv_policy.fdi 99-xboxdrv.fdi || die "newins failed"
+
+ insinto /etc/hal/fdi/preprobe
+ newins hal/xboxdrv_preprobe.fdi 99-xboxdrv.fdi || die "newins failed"
+
+ dodoc AUTHORS NEWS PROTOCOL README TODO
+}