diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-04-11 22:45:59 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-04-11 22:45:59 +0000 |
commit | ae1fc105b366ee15f245c638f7d6d659f62add80 (patch) | |
tree | 66326d311b347fbbded3ac54d1ceac28a8ec484b /games-arcade | |
parent | old (diff) | |
download | gentoo-2-ae1fc105b366ee15f245c638f7d6d659f62add80.tar.gz gentoo-2-ae1fc105b366ee15f245c638f7d6d659f62add80.tar.bz2 gentoo-2-ae1fc105b366ee15f245c638f7d6d659f62add80.zip |
Add patch by Dmitrii Tisnek to fix garbage bug #88747.
(Portage version: 2.0.51.19)
Diffstat (limited to 'games-arcade')
4 files changed, 70 insertions, 2 deletions
diff --git a/games-arcade/crack-attack/ChangeLog b/games-arcade/crack-attack/ChangeLog index e8085c181b30..c1dc4dd8479d 100644 --- a/games-arcade/crack-attack/ChangeLog +++ b/games-arcade/crack-attack/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-arcade/crack-attack -# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/ChangeLog,v 1.14 2005/03/29 02:50:26 mr_bones_ Exp $ +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/ChangeLog,v 1.15 2005/04/11 22:45:59 vapier Exp $ + +*crack-attack-1.1.12-r1 (11 Apr 2005) + + 11 Apr 2005; Mike Frysinger <vapier@gentoo.org> + +files/crack-attack-1.1.12-garbage.patch, +crack-attack-1.1.12-r1.ebuild: + Add patch by Dmitrii Tisnek to fix garbage bug #88747. *crack-attack-1.1.12 (28 Mar 2005) diff --git a/games-arcade/crack-attack/crack-attack-1.1.12-r1.ebuild b/games-arcade/crack-attack/crack-attack-1.1.12-r1.ebuild new file mode 100644 index 000000000000..608c7147aa03 --- /dev/null +++ b/games-arcade/crack-attack/crack-attack-1.1.12-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/crack-attack-1.1.12-r1.ebuild,v 1.1 2005/04/11 22:45:59 vapier Exp $ + +inherit eutils flag-o-matic games + +DESCRIPTION="Addictive OpenGL-based block game" +HOMEPAGE="https://savannah.nongnu.org/projects/crack-attack/" +SRC_URI="http://savannah.nongnu.org/download/crack-attack/${P}-r1.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm hppa ia64 ppc sparc x86" +IUSE="gtk" + +DEPEND="virtual/glut + gtk? ( >=x11-libs/gtk+-2.4 )" + +S=${WORKDIR}/${P}-r1 + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-garbage.patch + sed -i \ + -e '/handle flashing/d' src/LevelLights.cxx \ + || die "sed failed" +} + +src_compile() { + append-flags -DGL_GLEXT_LEGACY + egamesconf $(use_enable gtk) || die + emake || die "emake failed" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc AUTHORS ChangeLog README + dohtml -A xpm doc/* + prepgamesdirs +} diff --git a/games-arcade/crack-attack/files/crack-attack-1.1.12-garbage.patch b/games-arcade/crack-attack/files/crack-attack-1.1.12-garbage.patch new file mode 100644 index 000000000000..f0e71bf4dce7 --- /dev/null +++ b/games-arcade/crack-attack/files/crack-attack-1.1.12-garbage.patch @@ -0,0 +1,20 @@ +Fix a bug where garbage blocks sometimes don't fall down properly. + +Patch by Dmitrii Tisnek + +http://savannah.nongnu.org/bugs/?func=detailitem&item_id=10988 +http://bugs.gentoo.org/show_bug.cgi?id=88747 + +--- crack-attack-1.1.12-r1/src/Grid.cxx ++++ crack-attack-1.1.12-r1/src/Grid.cxx +@@ -312,8 +312,8 @@ + // keep track of the bounds on the shattered area + if (y + garbage.height > shatter_top) + shatter_top = y + garbage.height; +- if (y < shatter_bottom) +- shatter_bottom = y; ++ if (y - garbage.height < shatter_bottom) ++ shatter_bottom = y - garbage.height; + + shatter_count += garbage.width * garbage.height; + diff --git a/games-arcade/crack-attack/files/digest-crack-attack-1.1.12-r1 b/games-arcade/crack-attack/files/digest-crack-attack-1.1.12-r1 new file mode 100644 index 000000000000..14c76880ed83 --- /dev/null +++ b/games-arcade/crack-attack/files/digest-crack-attack-1.1.12-r1 @@ -0,0 +1 @@ +MD5 3a306da1c3df7a1b3ea807ad2b0eaeac crack-attack-1.1.12-r1.tar.gz 833152 |