summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2010-05-27 22:04:05 +0000
committerTristan Heaven <nyhm@gentoo.org>2010-05-27 22:04:05 +0000
commit3f566e0ee6bc3cc1296500679386eec308b41469 (patch)
treea4f4395607172123273853ad8a8b7bffd5242617 /games-util/xboxdrv
parentVersion bump (diff)
downloadgentoo-2-3f566e0ee6bc3cc1296500679386eec308b41469.tar.gz
gentoo-2-3f566e0ee6bc3cc1296500679386eec308b41469.tar.bz2
gentoo-2-3f566e0ee6bc3cc1296500679386eec308b41469.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.5.0-build.patch29
-rw-r--r--games-util/xboxdrv/xboxdrv-0.5.0.ebuild58
3 files changed, 94 insertions, 1 deletions
diff --git a/games-util/xboxdrv/ChangeLog b/games-util/xboxdrv/ChangeLog
index e91f19130d6d..4c9ac50fda4b 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.7 2010/05/23 20:07:26 pacho Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/ChangeLog,v 1.8 2010/05/27 22:04:05 nyhm Exp $
+
+*xboxdrv-0.5.0 (27 May 2010)
+
+ 27 May 2010; Tristan Heaven <nyhm@gentoo.org> +xboxdrv-0.5.0.ebuild,
+ +files/xboxdrv-0.5.0-build.patch:
+ Version bump
23 May 2010; Pacho Ramos <pacho@gentoo.org> xboxdrv-0.4.10.ebuild:
stable amd64, bug 313019
diff --git a/games-util/xboxdrv/files/xboxdrv-0.5.0-build.patch b/games-util/xboxdrv/files/xboxdrv-0.5.0-build.patch
new file mode 100644
index 000000000000..463ba7900c74
--- /dev/null
+++ b/games-util/xboxdrv/files/xboxdrv-0.5.0-build.patch
@@ -0,0 +1,29 @@
+--- 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,16 @@
+ "-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'])
+
+ f = open("VERSION")
+ package_version = f.read()
diff --git a/games-util/xboxdrv/xboxdrv-0.5.0.ebuild b/games-util/xboxdrv/xboxdrv-0.5.0.ebuild
new file mode 100644
index 000000000000..afad9530b96f
--- /dev/null
+++ b/games-util/xboxdrv/xboxdrv-0.5.0.ebuild
@@ -0,0 +1,58 @@
+# 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.5.0.ebuild,v 1.1 2010/05/27 22:04:05 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 xboxdrv-daemon || die "dobin failed"
+ doman doc/xboxdrv-daemon.1
+ 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"
+
+ doman doc/xboxdrv.1
+ dodoc AUTHORS NEWS PROTOCOL README TODO
+}