diff options
author | Tristan Heaven <tristan@gentoo.org> | 2010-03-04 19:10:14 +0000 |
---|---|---|
committer | Tristan Heaven <tristan@gentoo.org> | 2010-03-04 19:10:14 +0000 |
commit | 23f8fae59f3f8ef3a6d9f148d9d4dbb82b8acdc1 (patch) | |
tree | 82de4425772728bd7b1bb96efc8cc727a125fbfd /games-util | |
parent | Initial commit, based on Frittella Laurento's ebuild from bug #279652 (diff) | |
download | historical-23f8fae59f3f8ef3a6d9f148d9d4dbb82b8acdc1.tar.gz historical-23f8fae59f3f8ef3a6d9f148d9d4dbb82b8acdc1.tar.bz2 historical-23f8fae59f3f8ef3a6d9f148d9d4dbb82b8acdc1.zip |
Initial commit, based on Frittella Laurento's ebuild from bug #279652
Package-Manager: portage-2.2_rc64/cvs/Linux x86_64
Diffstat (limited to 'games-util')
-rw-r--r-- | games-util/xboxdrv/ChangeLog | 4 | ||||
-rw-r--r-- | games-util/xboxdrv/files/xboxdrv-0.4.10-build.patch | 20 | ||||
-rw-r--r-- | games-util/xboxdrv/metadata.xml | 12 | ||||
-rw-r--r-- | games-util/xboxdrv/xboxdrv-0.4.10.ebuild | 56 |
4 files changed, 90 insertions, 2 deletions
diff --git a/games-util/xboxdrv/ChangeLog b/games-util/xboxdrv/ChangeLog index d2517ab1d636..83c938b9020b 100644 --- a/games-util/xboxdrv/ChangeLog +++ b/games-util/xboxdrv/ChangeLog @@ -1,10 +1,10 @@ # 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.1 2010/03/04 19:07:18 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-util/xboxdrv/ChangeLog,v 1.2 2010/03/04 19:10:14 nyhm Exp $ *xboxdrv-0.4.10 (04 Mar 2010) 04 Mar 2010; Tristan Heaven <nyhm@gentoo.org> +xboxdrv-0.4.10.ebuild, +files/xboxdrv-0.4.10-build.patch, +metadata.xml: - Initial commit, based on Frittella Laurentos ebuild from bug + Initial commit, based on Frittella Laurento's ebuild from bug #279652 diff --git a/games-util/xboxdrv/files/xboxdrv-0.4.10-build.patch b/games-util/xboxdrv/files/xboxdrv-0.4.10-build.patch new file mode 100644 index 000000000000..e33a5f8e6433 --- /dev/null +++ b/games-util/xboxdrv/files/xboxdrv-0.4.10-build.patch @@ -0,0 +1,20 @@ +--- SConstruct ++++ SConstruct +@@ -1,6 +1,16 @@ + # -*- python -*- + +-env = Environment(CPPFLAGS=['-g', '-O2', '-Wall', '-ansi', '-pedantic']) ++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/metadata.xml b/games-util/xboxdrv/metadata.xml new file mode 100644 index 000000000000..b3c9fdb8b684 --- /dev/null +++ b/games-util/xboxdrv/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>games</herd> + <maintainer> + <email>nyhm@gentoo.org</email> + <name>Tristan Heaven</name> + </maintainer> + <use> + <flag name="daemon">Install xboxdrv-daemon.py (and its dependencies)</flag> + </use> +</pkgmetadata> diff --git a/games-util/xboxdrv/xboxdrv-0.4.10.ebuild b/games-util/xboxdrv/xboxdrv-0.4.10.ebuild new file mode 100644 index 000000000000..7c8da8fb6704 --- /dev/null +++ b/games-util/xboxdrv/xboxdrv-0.4.10.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.10.ebuild,v 1.1 2010/03/04 19:07:18 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 +} |