summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <tristan@gentoo.org>2009-05-23 22:10:00 +0000
committerTristan Heaven <tristan@gentoo.org>2009-05-23 22:10:00 +0000
commit785fe9c2b4ea73a08b1ef52d2b3bca61b8fa3775 (patch)
treee8e5217bd14e2cebed8d8ff24a53a088aa1d72ba /games-action
parentRemove dodoc on non-existing file (diff)
downloadhistorical-785fe9c2b4ea73a08b1ef52d2b3bca61b8fa3775.tar.gz
historical-785fe9c2b4ea73a08b1ef52d2b3bca61b8fa3775.tar.bz2
historical-785fe9c2b4ea73a08b1ef52d2b3bca61b8fa3775.zip
Use system sdl-gfx instead of the bundled version, bug #252526
Package-Manager: portage-2.2_rc33/cvs/Linux i686
Diffstat (limited to 'games-action')
-rw-r--r--games-action/btanks/ChangeLog6
-rw-r--r--games-action/btanks/Manifest16
-rw-r--r--games-action/btanks/btanks-0.8.7686.ebuild11
-rw-r--r--games-action/btanks/files/btanks-0.8.7686-scons-blows.patch155
4 files changed, 88 insertions, 100 deletions
diff --git a/games-action/btanks/ChangeLog b/games-action/btanks/ChangeLog
index 0ce80842ebd8..537fcaec20df 100644
--- a/games-action/btanks/ChangeLog
+++ b/games-action/btanks/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-action/btanks
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/btanks/ChangeLog,v 1.19 2009/05/19 17:38:46 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/btanks/ChangeLog,v 1.20 2009/05/23 22:09:59 nyhm Exp $
+
+ 23 May 2009; Tristan Heaven <nyhm@gentoo.org> btanks-0.8.7686.ebuild,
+ files/btanks-0.8.7686-scons-blows.patch:
+ Use system sdl-gfx instead of the bundled version, bug #252526
19 May 2009; Michael Sterrett <mr_bones_@gentoo.org>
btanks-0.8.7686.ebuild:
diff --git a/games-action/btanks/Manifest b/games-action/btanks/Manifest
index 4ef38aa0a611..694e33409e1a 100644
--- a/games-action/btanks/Manifest
+++ b/games-action/btanks/Manifest
@@ -1,5 +1,15 @@
-AUX btanks-0.8.7686-scons-blows.patch 4692 RMD160 56e214f0da19e8b15e745ba83dc201931171fbbc SHA1 20ed99fbcaa93630787f96cbd2f5b238bbba249c SHA256 71d3db7c842f656930b08c7f3c9bf74ec4b0c3b3598c640926fc37e44ff58810
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX btanks-0.8.7686-scons-blows.patch 3207 RMD160 e936718477d6a7271f2832671964d0d9835d91bf SHA1 c9c6d13b7d377c7ac4661fdddcdefa2c7a662be4 SHA256 9486214c6762b44e99cc57cc0a867affb3a6c44126f715482828717727ec92bf
DIST btanks-0.8.7686.tar.bz2 59601972 RMD160 4aba37bf06f36aa01f01a6f0b4920805c9e89c26 SHA1 912a0f1a66d60edfca47c4e86fd112d4778fb961 SHA256 5ac3f3b7aefb9f39cbefa1d108b00afb88b2aebf14681d69ed807fb49a2ed174
-EBUILD btanks-0.8.7686.ebuild 1509 RMD160 674fa1f1b0643d28094ab1c4889a9dbd2c523616 SHA1 a31cecc672fa567137ee53ffd1ac503ec65f8f83 SHA256 27abb87765b2218a520823761b5f01807e7387b6b1276301a6a5a52edfece2b1
-MISC ChangeLog 3409 RMD160 d6d2b48b4e54aed4a9fce4482b4dd68d31544409 SHA1 271a4bf630b5b7140214c60d98b6a447a5c49e48 SHA256 2357f5ab2c4b0e71e2cedb5c6d1e97eb08f11fc949a3327f8f380b1455ec2180
+EBUILD btanks-0.8.7686.ebuild 1540 RMD160 848bc78b01b44204003756b6933acae2c7a958bd SHA1 7ea21363dbc2f010b87cc2ea4e6054465ed6fd7d SHA256 cb64906f79f16ba20f533dc781c7008dbf1ffd95654d895d683ddbbe21e3bcea
+MISC ChangeLog 3585 RMD160 3f96ac515ffdc808a0ac796b004dc80ccae70e9c SHA1 a118c8a7ba496c06405d7d7be9aa9c0c3602303c SHA256 9e021890a71de4d50fe8fc98bad798462de054b551cebb1beb1559bbc8efb1fb
MISC metadata.xml 602 RMD160 7bcf0da779e8e1cc2a225f25cba147e7d743d671 SHA1 2a04ca616e925cb64cd5df0f4dd96e1512b4aeb0 SHA256 f2fba9fde47806ea5f4d7a16dfe1a5edd4869619118f28a30a91ec8a629cfb2c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAkoYdEAACgkQdz7hIScOURH7tQCeKZdJbr1I/m+TSJEeHfzAb45b
+Q94AoOp11crGNZk0BawS5ArhTJZKtKRj
+=nnoy
+-----END PGP SIGNATURE-----
diff --git a/games-action/btanks/btanks-0.8.7686.ebuild b/games-action/btanks/btanks-0.8.7686.ebuild
index 792766475017..e814ba35f55e 100644
--- a/games-action/btanks/btanks-0.8.7686.ebuild
+++ b/games-action/btanks/btanks-0.8.7686.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/btanks/btanks-0.8.7686.ebuild,v 1.7 2009/05/19 17:38:46 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/btanks/btanks-0.8.7686.ebuild,v 1.8 2009/05/23 22:09:59 nyhm Exp $
EAPI=2
inherit eutils games
@@ -19,14 +19,17 @@ RDEPEND=">=dev-lang/lua-5.1
media-libs/libvorbis
virtual/opengl
dev-libs/expat
- sys-libs/zlib
media-libs/smpeg
- media-libs/sdl-image[jpeg,png]"
+ media-libs/sdl-image[jpeg,png]
+ media-libs/sdl-gfx"
DEPEND="${RDEPEND}
dev-util/scons
dev-util/pkgconfig"
-PATCHES=( "${FILESDIR}"/${P}-scons-blows.patch )
+src_prepare() {
+ rm -rf sdlx/gfx
+ epatch "${FILESDIR}"/${P}-scons-blows.patch
+}
src_compile() {
local sconsopts=$(echo "${MAKEOPTS}" | sed -e "s/.*\(-j[0-9]\+\).*/\1/")
diff --git a/games-action/btanks/files/btanks-0.8.7686-scons-blows.patch b/games-action/btanks/files/btanks-0.8.7686-scons-blows.patch
index 942bd7985706..9920115b324a 100644
--- a/games-action/btanks/files/btanks-0.8.7686-scons-blows.patch
+++ b/games-action/btanks/files/btanks-0.8.7686-scons-blows.patch
@@ -1,6 +1,37 @@
-diff -ru btanks-0.8.7686.orig/SConstruct btanks-0.8.7686/SConstruct
---- btanks-0.8.7686.orig/SConstruct 2008-07-29 05:08:59.000000000 -0400
-+++ btanks-0.8.7686/SConstruct 2009-01-23 02:15:29.000000000 -0500
+--- clunk/kiss/_kiss_fft_guts.h
++++ clunk/kiss/_kiss_fft_guts.h
+@@ -18,6 +18,7 @@
+ typedef struct { kiss_fft_scalar r; kiss_fft_scalar i; }kiss_fft_cpx; */
+ #include "kiss_fft.h"
+ #include <limits.h>
++#include <string.h>
+
+ #define MAXFACTORS 32
+ /* e.g. an fft of length 128 has 4 factors
+--- mrt/export_base.h
++++ mrt/export_base.h
+@@ -1,7 +1,7 @@
+ #ifndef MRT_EXPORT_MACRO_H__
+ #define MRT_EXPORT_MACRO_H__
+
+-// Shared library support
++/* Shared library support */
+ #ifdef _WINDOWS
+
+ # pragma warning(disable:4251) /* needs to have dll-interface used by client */
+--- mrt/tclUniData.c
++++ mrt/tclUniData.c
+@@ -880,7 +880,7 @@
+ FINAL_QUOTE_PUNCTUATION,
+ OTHER_PUNCTUATION,
+ MATH_SYMBOL,
+- CURRENCY_SYMBOL,
++ LCURRENCY_SYMBOL,
+ MODIFIER_SYMBOL,
+ OTHER_SYMBOL
+ };
+--- SConstruct
++++ SConstruct
@@ -49,7 +49,7 @@
if os.environ.has_key('CC'):
env['CC'] = os.environ['CC']
@@ -32,98 +63,38 @@ diff -ru btanks-0.8.7686.orig/SConstruct btanks-0.8.7686/SConstruct
conf_env = env.Clone()
-diff -ru btanks-0.8.7686.orig/clunk/kiss/_kiss_fft_guts.h btanks-0.8.7686/clunk/kiss/_kiss_fft_guts.h
---- btanks-0.8.7686.orig/clunk/kiss/_kiss_fft_guts.h 2008-03-12 06:32:16.000000000 -0400
-+++ btanks-0.8.7686/clunk/kiss/_kiss_fft_guts.h 2009-01-23 02:16:13.000000000 -0500
-@@ -18,6 +18,7 @@
- typedef struct { kiss_fft_scalar r; kiss_fft_scalar i; }kiss_fft_cpx; */
- #include "kiss_fft.h"
- #include <limits.h>
-+#include <string.h>
+--- sdlx/SConscript
++++ sdlx/SConscript
+@@ -12,7 +12,7 @@
- #define MAXFACTORS 32
- /* e.g. an fft of length 128 has 4 factors
-diff -ru btanks-0.8.7686.orig/mrt/export_base.h btanks-0.8.7686/mrt/export_base.h
---- btanks-0.8.7686.orig/mrt/export_base.h 2008-01-09 06:14:14.000000000 -0500
-+++ btanks-0.8.7686/mrt/export_base.h 2009-01-23 02:16:58.000000000 -0500
-@@ -1,7 +1,7 @@
- #ifndef MRT_EXPORT_MACRO_H__
- #define MRT_EXPORT_MACRO_H__
+ env.MergeFlags(sdl_cflags, sdl_libs)
--// Shared library support
-+/* Shared library support */
- #ifdef _WINDOWS
+-libs = ['mrt', 'SDL', 'SDL_image']
++libs = ['mrt', 'SDL', 'SDL_image', 'SDL_gfx']
- # pragma warning(disable:4251) /* needs to have dll-interface used by client */
-diff -ru btanks-0.8.7686.orig/mrt/tclUniData.c btanks-0.8.7686/mrt/tclUniData.c
---- btanks-0.8.7686.orig/mrt/tclUniData.c 2008-08-15 03:44:45.000000000 -0400
-+++ btanks-0.8.7686/mrt/tclUniData.c 2009-01-23 02:15:29.000000000 -0500
-@@ -880,7 +880,7 @@
- FINAL_QUOTE_PUNCTUATION,
- OTHER_PUNCTUATION,
- MATH_SYMBOL,
-- CURRENCY_SYMBOL,
-+ LCURRENCY_SYMBOL,
- MODIFIER_SYMBOL,
- OTHER_SYMBOL
- };
-diff -ru btanks-0.8.7686.orig/sdlx/gfx/SDL_rotozoom.c btanks-0.8.7686/sdlx/gfx/SDL_rotozoom.c
---- btanks-0.8.7686.orig/sdlx/gfx/SDL_rotozoom.c 2008-09-02 06:43:34.000000000 -0400
-+++ btanks-0.8.7686/sdlx/gfx/SDL_rotozoom.c 2009-01-23 02:18:37.000000000 -0500
-@@ -153,7 +153,7 @@
- * Advance destination pointer
- */
- dp++;
-- } // dst x loop
-+ } /* dst x loop */
-
- /* next box-y */
- sp = (Uint8 *)((Uint8*)osp + src->pitch*factory);
-@@ -739,7 +739,7 @@
- }
- break;
-
-- case 2: // rotated 180 degrees clockwise
-+ case 2: /* rotated 180 degrees clockwise */
- {
- Uint32* srcBuf = NULL;
- Uint32* dstBuf = NULL;
-@@ -751,8 +751,8 @@
- *dstBuf = *srcBuf;
- ++srcBuf;
- --dstBuf;
-- } // for(col)
-- } // for(row)
-+ }
-+ }
- }
- break;
-
-@@ -768,17 +768,16 @@
- *dstBuf = *srcBuf;
- ++srcBuf;
- dstBuf -= pSurfOut->pitch/4;
-- } // for(col)
-- } // for(row)
-+ }
-+ }
- }
- break;
-- } // switch
-+ }
-
- SDL_UnlockSurface(pSurf);
- SDL_UnlockSurface(pSurfOut);
-- } // if numClockwiseTurns > 0
-+ }
- else {
-- // simply copy surface to output
- if(SDL_BlitSurface(pSurf, NULL, pSurfOut, NULL)) {
- return NULL;
- }
-diff -ru btanks-0.8.7686.orig/sdlx/wrappers/glSDL.c btanks-0.8.7686/sdlx/wrappers/glSDL.c
---- btanks-0.8.7686.orig/sdlx/wrappers/glSDL.c 2008-05-29 05:54:00.000000000 -0400
-+++ btanks-0.8.7686/sdlx/wrappers/glSDL.c 2009-01-23 02:17:48.000000000 -0500
+ if sys.platform != "win32":
+ c_map_env= env.Clone()
+@@ -34,7 +34,6 @@
+ sdlx_sources = ['cursor.cpp', 'sdl_ex.cpp', 'surface.cpp', 'system.cpp', 'joystick.cpp',
+ 'thread.cpp', 'mutex.cpp', 'semaphore.cpp', 'color.cpp',
+ c_map, 'font.cpp', 'timer.cpp', 'module.cpp', 'file_rw.cpp',
+- 'gfx/SDL_rotozoom.c',
+ ] # 'ttf.cpp',
+
+ if sys.platform == 'win32':
+--- sdlx/surface.cpp
++++ sdlx/surface.cpp
+@@ -430,7 +430,7 @@
+ throw_sdl(("SDL_SetColorKey"));
+ }
+
+-#include "gfx/SDL_rotozoom.h"
++#include <SDL_rotozoom.h>
+
+ void Surface::rotozoom(const sdlx::Surface &src, double angle, double zoom, bool smooth) {
+ if (src.isNull())
+--- sdlx/wrappers/glSDL.c
++++ sdlx/wrappers/glSDL.c
@@ -11,8 +11,6 @@
#ifdef HAVE_OPENGL