From a572d87777d6a2785a4302a0e00d694d51647c76 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 3 Nov 2004 00:29:29 +0000 Subject: needs unzip #69831 --- games-fps/cube/cube-20031223.ebuild | 90 ---------------------- games-fps/cube/cube-20040522.ebuild | 5 +- games-fps/cube/files/20031223-gentoo-paths.patch | 43 ----------- .../files/cube-20021020-add-custom-paths.patch | 43 ----------- games-fps/cube/files/digest-cube-20031223 | 1 - 5 files changed, 3 insertions(+), 179 deletions(-) delete mode 100644 games-fps/cube/cube-20031223.ebuild delete mode 100644 games-fps/cube/files/20031223-gentoo-paths.patch delete mode 100644 games-fps/cube/files/cube-20021020-add-custom-paths.patch delete mode 100644 games-fps/cube/files/digest-cube-20031223 (limited to 'games-fps/cube') diff --git a/games-fps/cube/cube-20031223.ebuild b/games-fps/cube/cube-20031223.ebuild deleted file mode 100644 index bbc3068c3fda..000000000000 --- a/games-fps/cube/cube-20031223.ebuild +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/cube/cube-20031223.ebuild,v 1.8 2004/08/15 09:18:26 vapier Exp $ - -inherit eutils games - -MY_P="cube_2003_12_23" - -DESCRIPTION="open source multiplayer and singleplayer first person shooter game" -HOMEPAGE="http://www.cubeengine.com/" -SRC_URI="mirror://sourceforge/cube/${MY_P}.zip" - -LICENSE="ZLIB" -SLOT="0" -KEYWORDS="x86 ppc hppa" -IUSE="" - -RDEPEND="virtual/opengl - virtual/glu - media-libs/libsdl - media-libs/sdl-mixer - media-libs/sdl-image - sys-libs/zlib - media-libs/libpng" -DEPEND="${RDEPEND} - >=sys-apps/sed-4" - -S="${WORKDIR}/cube" -CUBE_DATADIR="${GAMES_DATADIR}/${PN}/" - -src_unpack() { - unpack ${A} - - cd ${S}/source - unzip -qn ${MY_P}_src.zip || die - - cd ${MY_P}_src/src - epatch ${FILESDIR}/${PV}-gentoo-paths.patch - echo "#define GAMES_DATADIR \"${CUBE_DATADIR}\"" >> tools.h - echo "#define GAMES_DATADIR_LEN ${#CUBE_DATADIR}" >> tools.h - sed -i \ - -e "s:packages/:${CUBE_DATADIR}packages/:" \ - renderextras.cpp rendermd2.cpp sound.cpp worldio.cpp \ - || die "fixing data path failed" - # enable parallel make - sed -i \ - -e 's/make -C/$(MAKE) -C/' Makefile \ - || die "sed Makefile failed" - edos2unix *.cpp -} - -src_compile() { - cd source/${MY_P}_src/src - emake CXXOPTFLAGS="${CXXFLAGS}" || die "emake failed" -} - -src_install() { - dogamesbin source/${MY_P}_src/src/cube_{client,server} \ - || die "dogamesbin failed" - exeinto "${GAMES_LIBDIR}/${PN}" - if [ "${ARCH}" == "x86" ] ; then - newexe bin_unix/linux_client cube_client - newexe bin_unix/linux_server cube_server - elif [ "${ARCH}" == "ppc" ] ; then - newexe bin_unix/ppc_linux_client cube_client - newexe bin_unix/ppc_linux_server cube_server - fi - dogamesbin ${FILESDIR}/cube_{client,server}-bin \ - || die "dogamesbin failed (bin)" - sed -i \ - -e "s:GENTOO_DATADIR:${CUBE_DATADIR}:" \ - -e "s:GENTOO_LIBDIR:${GAMES_LIBDIR}/${PN}:" \ - ${D}/${GAMES_BINDIR}/cube_{client,server}-bin - - dodir ${CUBE_DATADIR} - cp -r *.cfg data packages ${D}/${CUBE_DATADIR} \ - || die "cp failed" - - dodoc source/${MY_P}_src/src/CUBE_TODO.txt - dohtml -r docs/ - prepgamesdirs -} - -pkg_postinst() { - games_pkg_postinst - einfo "You now have 2 clients and 2 servers:" - einfo "cube_client-bin prebuilt version (needed to play on public multiplayer servers)" - einfo "cube_client custom client built from source" - einfo "Parallel versions of the server have been installed" -} diff --git a/games-fps/cube/cube-20040522.ebuild b/games-fps/cube/cube-20040522.ebuild index 581e6989d6ee..23ac4f22776c 100644 --- a/games-fps/cube/cube-20040522.ebuild +++ b/games-fps/cube/cube-20040522.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/cube/cube-20040522.ebuild,v 1.4 2004/08/17 06:20:35 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/cube/cube-20040522.ebuild,v 1.5 2004/11/03 00:20:41 vapier Exp $ inherit eutils games @@ -12,7 +12,7 @@ SRC_URI="mirror://sourceforge/cube/${MY_P}.tar.gz" LICENSE="ZLIB" SLOT="0" -KEYWORDS="x86 ppc hppa" +KEYWORDS="hppa ppc x86" IUSE="" RDEPEND="virtual/opengl @@ -23,6 +23,7 @@ RDEPEND="virtual/opengl sys-libs/zlib media-libs/libpng" DEPEND="${RDEPEND} + app-arch/unzip >=sys-apps/sed-4" S="${WORKDIR}/cube" diff --git a/games-fps/cube/files/20031223-gentoo-paths.patch b/games-fps/cube/files/20031223-gentoo-paths.patch deleted file mode 100644 index 594a0714e5fb..000000000000 --- a/games-fps/cube/files/20031223-gentoo-paths.patch +++ /dev/null @@ -1,43 +0,0 @@ ---- tools.cpp.orig 2002-12-17 09:35:55.000000000 -0500 -+++ tools.cpp 2002-12-17 09:39:28.000000000 -0500 -@@ -100,8 +100,19 @@ - - ///////////////////////// misc tools /////////////////////// - -+char *addfullpath(char *s) { -+ static char ret[256]; // choose a reasonable max buffer size -+ if (s[0] == '/') { return s; } -+ int slen = strlen(s); -+ memset(ret, 0x00, 256); -+ memcpy(ret, GAMES_DATADIR, GAMES_DATADIR_LEN); -+ memcpy(ret+GAMES_DATADIR_LEN, s, slen); -+ return ret; -+} -+ - char *path(char *s) - { -+ s = addfullpath(s); - for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); - return s; - }; ---- rendergl.cpp.orig 2002-12-17 09:48:00.000000000 -0500 -+++ rendergl.cpp 2002-12-17 09:50:19.000000000 -0500 -@@ -59,6 +59,7 @@ - - bool installtex(int tnum, char *texname, int &xs, int &ys, bool clamp) - { -+ texname = addfullpath(texname); - SDL_Surface *s = IMG_Load(texname); - if(!s) { conoutf("couldn't load texture %s", (int)texname); return false; }; - if(s->format->BitsPerPixel!=24) { conoutf("texture must be 24bpp: %s", (int)texname); return false; }; ---- tools.h.orig 2002-12-17 09:51:06.000000000 -0500 -+++ tools.h 2002-12-17 09:50:59.000000000 -0500 -@@ -96,7 +96,7 @@ - #endif - - -- -+extern char *addfullpath(char *s); - extern char *path(char *s); - extern char *loadfile(char *fn, int *size); - extern void endianswap(void *, int, int); diff --git a/games-fps/cube/files/cube-20021020-add-custom-paths.patch b/games-fps/cube/files/cube-20021020-add-custom-paths.patch deleted file mode 100644 index 594a0714e5fb..000000000000 --- a/games-fps/cube/files/cube-20021020-add-custom-paths.patch +++ /dev/null @@ -1,43 +0,0 @@ ---- tools.cpp.orig 2002-12-17 09:35:55.000000000 -0500 -+++ tools.cpp 2002-12-17 09:39:28.000000000 -0500 -@@ -100,8 +100,19 @@ - - ///////////////////////// misc tools /////////////////////// - -+char *addfullpath(char *s) { -+ static char ret[256]; // choose a reasonable max buffer size -+ if (s[0] == '/') { return s; } -+ int slen = strlen(s); -+ memset(ret, 0x00, 256); -+ memcpy(ret, GAMES_DATADIR, GAMES_DATADIR_LEN); -+ memcpy(ret+GAMES_DATADIR_LEN, s, slen); -+ return ret; -+} -+ - char *path(char *s) - { -+ s = addfullpath(s); - for(char *t = s; t = strpbrk(t, "/\\"); *t++ = PATHDIV); - return s; - }; ---- rendergl.cpp.orig 2002-12-17 09:48:00.000000000 -0500 -+++ rendergl.cpp 2002-12-17 09:50:19.000000000 -0500 -@@ -59,6 +59,7 @@ - - bool installtex(int tnum, char *texname, int &xs, int &ys, bool clamp) - { -+ texname = addfullpath(texname); - SDL_Surface *s = IMG_Load(texname); - if(!s) { conoutf("couldn't load texture %s", (int)texname); return false; }; - if(s->format->BitsPerPixel!=24) { conoutf("texture must be 24bpp: %s", (int)texname); return false; }; ---- tools.h.orig 2002-12-17 09:51:06.000000000 -0500 -+++ tools.h 2002-12-17 09:50:59.000000000 -0500 -@@ -96,7 +96,7 @@ - #endif - - -- -+extern char *addfullpath(char *s); - extern char *path(char *s); - extern char *loadfile(char *fn, int *size); - extern void endianswap(void *, int, int); diff --git a/games-fps/cube/files/digest-cube-20031223 b/games-fps/cube/files/digest-cube-20031223 deleted file mode 100644 index fd37e49321a0..000000000000 --- a/games-fps/cube/files/digest-cube-20031223 +++ /dev/null @@ -1 +0,0 @@ -MD5 22555b87ef16c403198a6f378c048c6f cube_2003_12_23.zip 18587017 -- cgit v1.2.3-65-gdbad