summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-sports')
-rw-r--r--games-sports/vdrift/ChangeLog8
-rw-r--r--games-sports/vdrift/vdrift-20090615.ebuild72
2 files changed, 79 insertions, 1 deletions
diff --git a/games-sports/vdrift/ChangeLog b/games-sports/vdrift/ChangeLog
index c22715521648..203e06b2b844 100644
--- a/games-sports/vdrift/ChangeLog
+++ b/games-sports/vdrift/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-sports/vdrift
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/ChangeLog,v 1.10 2009/06/01 13:03:39 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/ChangeLog,v 1.11 2009/07/31 02:51:16 mr_bones_ Exp $
+
+*vdrift-20090615 (31 Jul 2009)
+
+ 31 Jul 2009; Michael Sterrett <mr_bones_@gentoo.org>
+ +vdrift-20090615.ebuild:
+ version bump
01 Jun 2009; Markus Meier <maekke@gentoo.org> vdrift-20090215.ebuild:
amd64/x86 stable, bug #272048
diff --git a/games-sports/vdrift/vdrift-20090615.ebuild b/games-sports/vdrift/vdrift-20090615.ebuild
new file mode 100644
index 000000000000..b96943577b62
--- /dev/null
+++ b/games-sports/vdrift/vdrift-20090615.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/vdrift-20090615.ebuild,v 1.1 2009/07/31 02:51:16 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils games
+
+MY_P=${PN}-${PV:0:4}-${PV:4:2}-${PV:6}
+DESCRIPTION="A driving simulation made with drift racing in mind"
+HOMEPAGE="http://vdrift.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.tar.bz2"
+
+LICENSE="GPL-2 ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+RDEPEND="virtual/opengl
+ virtual/glu
+ media-libs/glew
+ media-libs/libsdl[opengl,video]
+ media-libs/openal
+ media-libs/sdl-gfx
+ media-libs/sdl-image[png]
+ media-libs/sdl-net
+ media-libs/libvorbis
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ dev-cpp/asio
+ dev-util/scons
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}-${PV:0:4}-${PV:4:2}-${PV:6:2}
+
+src_prepare() {
+ sed -i \
+ -e "s/'-O1',\?//" \
+ SConstruct \
+ || die "sed failed"
+}
+
+src_compile() {
+ local sconsopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[0-9]\+\).*/\1/; p }")
+
+ scons \
+ ${sconsopts} \
+ NLS=$(use nls && echo 1 || echo 0) \
+ destdir="${D}" \
+ bindir="${GAMES_BINDIR}" \
+ datadir="${GAMES_DATADIR}"/${PN} \
+ localedir=/usr/share/locale \
+ prefix= \
+ use_binreloc=0 \
+ release=1 \
+ os_cc=1 \
+ os_cxx=1 \
+ os_cxxflags=1 \
+ || die "scons failed"
+}
+
+src_install() {
+ dogamesbin build/vdrift || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r data/* || die "doins failed"
+ newicon data/textures/icons/vdrift-64x64.png ${PN}.png
+ make_desktop_entry ${PN} VDrift
+ dodoc docs/*
+ find "${D}" -name "SCon*" -exec rm \{\} +
+ cd "${D}"
+ keepdir $(find "${GAMES_DATADIR/\//}/${PN}" -type d -empty)
+ prepgamesdirs
+}