From d75b3819a1529754b95aee4f62a413fd42328d00 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 5 Jul 2005 05:26:46 +0000 Subject: Add bugfix from upstream for freeglut support #97954 by Andrew Sayman. Package-Manager: portage-2.0.51.22-r1 --- games-arcade/crack-attack/ChangeLog | 8 ++++- games-arcade/crack-attack/Manifest | 19 +++++++--- .../crack-attack/crack-attack-1.1.14-r1.ebuild | 40 ++++++++++++++++++++++ .../files/crack-attack-1.1.14-glut.patch | 14 ++++++++ .../files/digest-crack-attack-1.1.14-r1 | 1 + 5 files changed, 77 insertions(+), 5 deletions(-) create mode 100644 games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild create mode 100644 games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch create mode 100644 games-arcade/crack-attack/files/digest-crack-attack-1.1.14-r1 (limited to 'games-arcade') diff --git a/games-arcade/crack-attack/ChangeLog b/games-arcade/crack-attack/ChangeLog index 638ae7db5c16..df7664e8fabc 100644 --- a/games-arcade/crack-attack/ChangeLog +++ b/games-arcade/crack-attack/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-arcade/crack-attack # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/ChangeLog,v 1.19 2005/05/15 19:42:29 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-arcade/crack-attack/ChangeLog,v 1.20 2005/07/05 05:26:46 vapier Exp $ + +*crack-attack-1.1.14-r1 (05 Jul 2005) + + 05 Jul 2005; Mike Frysinger + +files/crack-attack-1.1.14-glut.patch, +crack-attack-1.1.14-r1.ebuild: + Add bugfix from upstream for freeglut support #97954 by Andrew Sayman. *crack-attack-1.1.14 (15 May 2005) diff --git a/games-arcade/crack-attack/Manifest b/games-arcade/crack-attack/Manifest index d69e5559e391..101e9c955d02 100644 --- a/games-arcade/crack-attack/Manifest +++ b/games-arcade/crack-attack/Manifest @@ -1,7 +1,18 @@ -MD5 7b12295b1b0a18d8378804583657ba85 ChangeLog 3710 -MD5 bf084972f15ee63734d7d303ddbd5650 crack-attack-1.1.14.ebuild 926 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +MD5 70eb04408677f64f1e6b74cb60ae634b crack-attack-1.1.14-r1.ebuild 1009 MD5 76fa9a8595083b588e3286eff81f0e54 crack-attack-1.1.13-r1.ebuild 1059 -MD5 2ef172abd49ee1d3bd0118a0e9b70bb7 files/digest-crack-attack-1.1.14 72 -MD5 d6baf270eeb75bd3d6ee272f6c1103a6 files/crack-attack-1.1.13-binpaths.patch 2669 +MD5 4e60221e80a4367621e605f26484fe44 ChangeLog 3946 +MD5 2ef172abd49ee1d3bd0118a0e9b70bb7 files/digest-crack-attack-1.1.14-r1 72 MD5 e1896e7a256b159004daf7af3add7f55 files/digest-crack-attack-1.1.13-r1 72 +MD5 94b199213accdd30331358dd3c894a57 files/crack-attack-1.1.14-glut.patch 381 +MD5 d6baf270eeb75bd3d6ee272f6c1103a6 files/crack-attack-1.1.13-binpaths.patch 2669 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.1 (GNU/Linux) + +iD8DBQFCyhpDgIKl8Uu19MoRAriuAJ9rqzxSLW0BLNMCrHhGjDRk+V0icACfV6D2 +hDYRCMQdk+ddjbEOjR7Mj1Q= +=T0L+ +-----END PGP SIGNATURE----- diff --git a/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild b/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild new file mode 100644 index 000000000000..57b5e6b379a3 --- /dev/null +++ b/games-arcade/crack-attack/crack-attack-1.1.14-r1.ebuild @@ -0,0 +1,40 @@ +# 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.14-r1.ebuild,v 1.1 2005/07/05 05:26:46 vapier Exp $ + +inherit eutils flag-o-matic games + +DESCRIPTION="Addictive OpenGL-based block game" +HOMEPAGE="http://www.nongnu.org/crack-attack/" +SRC_URI="http://savannah.nongnu.org/download/crack-attack/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm hppa ia64 ppc sparc x86" +IUSE="gtk" + +DEPEND="virtual/glut + gtk? ( >=x11-libs/gtk+-2.6 )" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-glut.patch +} + +src_compile() { + egamesconf \ + --disable-binreloc \ + $(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/* + doicon data/crack-attack.xpm + make_desktop_entry crack-attack Crack-attack crack-attack.xpm + prepgamesdirs +} diff --git a/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch b/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch new file mode 100644 index 000000000000..fc16c1b8bc4e --- /dev/null +++ b/games-arcade/crack-attack/files/crack-attack-1.1.14-glut.patch @@ -0,0 +1,14 @@ +Fix from upstream to work with newer freegluts. + +http://bugs.gentoo.org/97954 + +--- src/Attack.cxx ++++ src/Attack.cxx +@@ -83,6 +83,7 @@ + int height = -1, width = -1; + + player_name[0] = '\0'; ++ glutInit(&argc, argv); + parseCommandLine(argc, argv, mode, port, host_name, player_name, height, width); + run_crack_attack(mode, port, host_name, player_name, height, width); + diff --git a/games-arcade/crack-attack/files/digest-crack-attack-1.1.14-r1 b/games-arcade/crack-attack/files/digest-crack-attack-1.1.14-r1 new file mode 100644 index 000000000000..cd332491d084 --- /dev/null +++ b/games-arcade/crack-attack/files/digest-crack-attack-1.1.14-r1 @@ -0,0 +1 @@ +MD5 77bfcb38a293e87fd0d0eab05bae8177 crack-attack-1.1.14.tar.bz2 801404 -- cgit v1.2.3-65-gdbad