summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2008-02-15 22:50:02 +0000
committerTristan Heaven <nyhm@gentoo.org>2008-02-15 22:50:02 +0000
commitbcb5b39fef1a69908a3bc1d07e8754e67907cf14 (patch)
tree1ee7de422e13f8fb0b83cb6cc80ad7f4efee0192 /games-sports
parentFilter CFLAGS (diff)
downloadgentoo-2-bcb5b39fef1a69908a3bc1d07e8754e67907cf14.tar.gz
gentoo-2-bcb5b39fef1a69908a3bc1d07e8754e67907cf14.tar.bz2
gentoo-2-bcb5b39fef1a69908a3bc1d07e8754e67907cf14.zip
Version bump, bug #181743
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-sports')
-rw-r--r--games-sports/trophy/ChangeLog10
-rw-r--r--games-sports/trophy/files/trophy-1.1.5-display-segv.patch11
-rw-r--r--games-sports/trophy/trophy-1.1.5.ebuild30
3 files changed, 49 insertions, 2 deletions
diff --git a/games-sports/trophy/ChangeLog b/games-sports/trophy/ChangeLog
index 60fa3126ceca..7a1dd96a2c98 100644
--- a/games-sports/trophy/ChangeLog
+++ b/games-sports/trophy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-sports/trophy
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-sports/trophy/ChangeLog,v 1.5 2006/10/18 20:27:37 nyhm Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/trophy/ChangeLog,v 1.6 2008/02/15 22:50:01 nyhm Exp $
+
+*trophy-1.1.5 (15 Feb 2008)
+
+ 15 Feb 2008; Tristan Heaven <nyhm@gentoo.org>
+ +files/trophy-1.1.5-display-segv.patch, +trophy-1.1.5.ebuild:
+ Version bump, bug #181743
18 Oct 2006; Tristan Heaven <nyhm@gentoo.org> trophy-1.1.3.ebuild:
Use autotools eclass
diff --git a/games-sports/trophy/files/trophy-1.1.5-display-segv.patch b/games-sports/trophy/files/trophy-1.1.5-display-segv.patch
new file mode 100644
index 000000000000..83860d229ec3
--- /dev/null
+++ b/games-sports/trophy/files/trophy-1.1.5-display-segv.patch
@@ -0,0 +1,11 @@
+--- src/caplayer.cpp.old 2007-08-30 02:52:11.000000000 +0200
++++ src/caplayer.cpp 2007-08-30 02:52:58.000000000 +0200
+@@ -914,6 +914,8 @@
+ void
+ CAPlayer::display( int offsetX, int offsetY )
+ {
++ if (frame >= CA_FPR)
++ frame = CA_FPR - 1;
+ sprite[frame]->draw ( (int)(x+offsetX - sprite[ frame ]->get_width()/2),
+ (int)(y+offsetY - sprite[ frame ]->get_height()/2) );
+
diff --git a/games-sports/trophy/trophy-1.1.5.ebuild b/games-sports/trophy/trophy-1.1.5.ebuild
new file mode 100644
index 000000000000..bfb34a1a07e1
--- /dev/null
+++ b/games-sports/trophy/trophy-1.1.5.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-sports/trophy/trophy-1.1.5.ebuild,v 1.1 2008/02/15 22:50:01 nyhm Exp $
+
+inherit eutils games
+
+DESCRIPTION="2D Racing Game"
+HOMEPAGE="http://trophy.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="=dev-games/clanlib-0.8*"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-display-segv.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc AUTHORS ChangeLog README TODO
+ prepgamesdirs
+}