From 780b42652e2a0fdbec54ffee97d28407abd32ead Mon Sep 17 00:00:00 2001 From: Michael Sterrett Date: Tue, 1 Nov 2005 04:49:09 +0000 Subject: old Package-Manager: portage-2.0.51.22-r3 --- games-arcade/njam/Manifest | 9 +- games-arcade/njam/files/0.96/njam.diff | 182 --------------------------- games-arcade/njam/files/0.96/njamgame.diff | 27 ---- games-arcade/njam/files/digest-njam-0.96 | 1 - games-arcade/njam/files/digest-njam-1.00 | 1 - games-arcade/njam/files/njam-1.00-conf.patch | 112 ----------------- games-arcade/njam/njam-0.96.ebuild | 48 ------- games-arcade/njam/njam-1.00.ebuild | 68 ---------- 8 files changed, 1 insertion(+), 447 deletions(-) delete mode 100644 games-arcade/njam/files/0.96/njam.diff delete mode 100644 games-arcade/njam/files/0.96/njamgame.diff delete mode 100644 games-arcade/njam/files/digest-njam-0.96 delete mode 100644 games-arcade/njam/files/digest-njam-1.00 delete mode 100644 games-arcade/njam/files/njam-1.00-conf.patch delete mode 100644 games-arcade/njam/njam-0.96.ebuild delete mode 100644 games-arcade/njam/njam-1.00.ebuild (limited to 'games-arcade/njam') diff --git a/games-arcade/njam/Manifest b/games-arcade/njam/Manifest index 4fea4833f331..67faf2eb5478 100644 --- a/games-arcade/njam/Manifest +++ b/games-arcade/njam/Manifest @@ -1,12 +1,5 @@ +MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 MD5 2cee6684ba0f1c24c1159d24a8b7ec45 njam-1.21.ebuild 1812 MD5 a11d2f720348b39e30a70afa4c9f3690 ChangeLog 999 -MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 -MD5 01d93760f2434a97ba0239e9af87fc3b njam-0.96.ebuild 1008 -MD5 214dc735bfa597e82eebe8f8ee84875c njam-1.00.ebuild 1930 -MD5 39dee9ea7a61dbef098f3a7421758fef files/njam-1.00-conf.patch 3136 MD5 87cb7d4a12739db2f6f737e7dbed52ab files/1.21-conf.patch 3420 -MD5 959b0cda2752af90309b81d91e8984fb files/digest-njam-0.96 66 -MD5 8fa83f62f9156efb50d3e66e8b1dba2a files/digest-njam-1.00 66 MD5 d997203b1f58b2e497d17e7f9c670f5c files/digest-njam-1.21 66 -MD5 cd9bb343d66a3e25ae8edd50bef223de files/0.96/njam.diff 7257 -MD5 136cbe591908936157d78aa9858ea054 files/0.96/njamgame.diff 980 diff --git a/games-arcade/njam/files/0.96/njam.diff b/games-arcade/njam/files/0.96/njam.diff deleted file mode 100644 index e19752d4b053..000000000000 --- a/games-arcade/njam/files/0.96/njam.diff +++ /dev/null @@ -1,182 +0,0 @@ ---- njam-0.96-src/njam.cpp 2003-06-26 07:06:24.000000000 -0700 -+++ src/njam.cpp 2003-07-18 14:11:44.000000000 -0700 -@@ -202,7 +202,7 @@ - } - - if (script_file == NULL) -- script_file = fopen("data/script.txt", "rb"); -+ script_file = fopen("/usr/share/games/njam/data/script.txt", "rb"); - if (script_file == NULL) - return; - -@@ -287,7 +287,7 @@ - // load .bmp for main menu - SDL_Surface *m_Icon; - LogFile("Loading icon..."); -- m_Icon = SDL_LoadBMP("data/njamicon.bmp"); -+ m_Icon = SDL_LoadBMP("/usr/share/games/njam/data/njamicon.bmp"); - if (!m_Icon) - { - LogFile("FAILED.\n"); -@@ -338,7 +338,7 @@ - // load .bmp for main menu - SDL_Surface *temp; - LogFile("Loading Main Menu image..."); -- temp = IMG_Load("data/mainmenu.jpg"); -+ temp = IMG_Load("/usr/share/games/njam/data/mainmenu.jpg"); - if (!temp) - { - LogFile("FAILED.\n"); -@@ -358,7 +358,7 @@ - - // load .bmp for options menu - LogFile("Loading Options Menu image..."); -- temp = IMG_Load("data/options.jpg"); -+ temp = IMG_Load("/usr/share/games/njam/data/options.jpg"); - if (!temp) - { - LogFile("FAILED.\n"); -@@ -378,7 +378,7 @@ - - // load .bmp for network-send screen - LogFile("Loading Net-send image..."); -- m_NetSendImage = IMG_Load("data/netsend.jpg"); -+ m_NetSendImage = IMG_Load("/usr/share/games/njam/data/netsend.jpg"); - if (!m_NetSendImage) - { - LogFile("FAILED.\n"); -@@ -389,7 +389,7 @@ - - // load .bmp for network-send screen - LogFile("Loading Gameover image..."); -- m_GameOverImage = IMG_Load("data/gameover.jpg"); -+ m_GameOverImage = IMG_Load("/usr/share/games/njam/data/gameover.jpg"); - if (!m_GameOverImage) - { - LogFile("FAILED.\n"); -@@ -400,7 +400,7 @@ - - // load .bmp for network-send screen - LogFile("Loading Net-lobby image..."); -- m_NetLobbyImage = SDL_LoadBMP("data/network.bmp"); -+ m_NetLobbyImage = SDL_LoadBMP("/usr/share/games/njam/data/network.bmp"); - if (!m_NetLobbyImage) - { - LogFile("FAILED.\n"); -@@ -411,7 +411,7 @@ - - // load .bmp for enter server IP screen - LogFile("Loading enter server IP image..."); -- m_NetEnterImage = IMG_Load("data/enter-ip.jpg"); -+ m_NetEnterImage = IMG_Load("/usr/share/games/njam/data/enter-ip.jpg"); - if (!m_NetEnterImage) - { - LogFile("FAILED.\n"); -@@ -422,7 +422,7 @@ - - // load .bmp for stats screen - LogFile("Loading Stats screen image..."); -- temp = IMG_Load("data/stats.jpg"); -+ temp = IMG_Load("/usr/share/games/njam/data/stats.jpg"); - if (!temp) - { - LogFile("FAILED.\n"); -@@ -442,7 +442,7 @@ - - // load .bmp for sprites and menu selector - LogFile("Loading Sprites image..."); -- temp = SDL_LoadBMP("data/sprites.bmp"); -+ temp = SDL_LoadBMP("/usr/share/games/njam/data/sprites.bmp"); - if (!temp) - { - LogFile("FAILED.\n"); -@@ -469,7 +469,7 @@ - m_NumberOfSkins = 0; - while (true) - { -- sprintf(Filename, "skins/Back%03d.bmp", m_NumberOfSkins); -+ sprintf(Filename, "/usr/share/games/njam/skins/Back%03d.bmp", m_NumberOfSkins); - FILE *fp = fopen(Filename, "r"); - if (!fp) - break; -@@ -484,7 +484,7 @@ - - for (int i=0; i -+#include -+#include - #endif - - #include -@@ -213,16 +215,30 @@ - if (m_NetworkAvailable) - SDLNet_Quit(); - -+ FILE *fp; - // write configuration options -- char filename[] = "njam.conf"; -- FILE *fp = fopen(filename, "w+"); -- if (fp) -+ if (getenv("HOME") && !chdir(getenv("HOME"))) - { -- fprintf(fp, "M=%d\n", (m_GameOptions.PlayMusic ? 1 : 0)); -- fprintf(fp, "S=%d\n", (m_GameOptions.PlaySound ? 1 : 0)); -- fprintf(fp, "A=%d\n", (m_GameOptions.UseAllSkins ? 1 : 0)); -- fprintf(fp, "I=%s\n", m_GameOptions.ServerIP); -- fclose(fp); -+ mkdir(".njam", 0774); -+ if (!chdir(".njam")) -+ { -+ char filename[] = "njam.conf"; -+ fp = fopen(filename, "w+"); -+ -+ if (fp) -+ { -+ fprintf(fp, -+ "M=%d\n" -+ "S=%d\n" -+ "A=%d\n" -+ "I=%s\n", -+ (m_GameOptions.PlayMusic ? 1 : 0), -+ (m_GameOptions.PlaySound ? 1 : 0), -+ (m_GameOptions.UseAllSkins ? 1 : 0), -+ m_GameOptions.ServerIP); -+ fclose(fp); -+ } -+ } - } - - // format: NAME#POINTS#LEVEL# -@@ -597,35 +613,39 @@ - m_FontBlue = new NjamFont("data/font-blue.bmp", 6, 9); - m_FontYellow = new NjamFont("data/font-yellow.bmp", 10, 15); - -+ FILE *fp; - // Load user settings from .conf file -- char filename[] = "njam.conf"; -- FILE *fp = fopen(filename, "r"); -- if (fp) -+ if (getenv("HOME") && !chdir(getenv("HOME")) && !chdir(".njam")) - { -- LogFile("Reading njam.conf file.\n"); -- char buff[20]; -- while (!feof(fp)) -- { -- fgets(buff, 20, fp); -- if (buff[1] == '=') -+ char filename[] = "njam.conf"; -+ fp = fopen(filename, "r"); -+ if (fp) -+ { -+ LogFile("Reading njam.conf file.\n"); -+ char buff[20]; -+ while (!feof(fp)) - { -- int i; -- switch (buff[0]) -+ fgets(buff, 20, fp); -+ if (buff[1] == '=') - { -- case 'M': m_GameOptions.PlayMusic = (buff[2] == '1'); break; -- case 'S': m_GameOptions.PlaySound = (buff[2] == '1'); break; -- case 'A': m_GameOptions.UseAllSkins = (buff[2] == '1'); break; -- case 'I': // serverIP -- for (i=2; buff[i] != '\n' && buff[i] && i<17; i++) -- m_GameOptions.ServerIP[i-2] = buff[i]; -- m_GameOptions.ServerIP[i] = '\0'; -- break; -- default: -- printf("Unknown configuration file option: %c\n", buff[0]); -+ int i; -+ switch (buff[0]) -+ { -+ case 'M': m_GameOptions.PlayMusic = (buff[2] == '1'); break; -+ case 'S': m_GameOptions.PlaySound = (buff[2] == '1'); break; -+ case 'A': m_GameOptions.UseAllSkins = (buff[2] == '1'); break; -+ case 'I': // serverIP -+ for (i=2; buff[i] != '\n' && buff[i] && i<17; i++) -+ m_GameOptions.ServerIP[i-2] = buff[i]; -+ m_GameOptions.ServerIP[i] = '\0'; -+ break; -+ default: -+ printf("Unknown configuration file option: %c\n", buff[0]); -+ } - } - } -+ fclose(fp); - } -- fclose(fp); - } - - // create default hiscore diff --git a/games-arcade/njam/njam-0.96.ebuild b/games-arcade/njam/njam-0.96.ebuild deleted file mode 100644 index 2526f8381d75..000000000000 --- a/games-arcade/njam/njam-0.96.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/njam/njam-0.96.ebuild,v 1.6 2005/09/26 17:35:42 wolf31o2 Exp $ - -inherit eutils games - -MY_P="${P}-src" -S="${WORKDIR}/${MY_P}" -DESCRIPTION="Multi or single-player network Pacman-like game in SDL" -HOMEPAGE="http://njam.sourceforge.net/" -SRC_URI="mirror://sourceforge/njam/${MY_P}.tar.gz" -RESTRICT="nomirror" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86" -IUSE="" - -DEPEND=">=media-libs/sdl-mixer-1.2.5 - >=media-libs/sdl-image-1.2.2 - >=media-libs/libsdl-1.2.5 - >=media-libs/sdl-net-1.2.4" - -src_unpack() { - unpack ${A} - epatch ${FILESDIR}/${PV}/njam.diff - epatch ${FILESDIR}/${PV}/njamgame.diff -} - -src_compile() { - emake PREFIX="/usr/share" || die "emake failed" -} - -src_install() { - dogamesbin njam - - dodoc CHANGES README TODO - - dohtml html/* - - insinto ${GAMES_DATADIR}/njam/data - doins data/* - - insinto ${GAMES_DATADIR}/njam/skins - doins skins/* - - prepgamesdirs -} diff --git a/games-arcade/njam/njam-1.00.ebuild b/games-arcade/njam/njam-1.00.ebuild deleted file mode 100644 index df3c352074ef..000000000000 --- a/games-arcade/njam/njam-1.00.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/njam/njam-1.00.ebuild,v 1.7 2004/06/24 22:09:24 agriffis Exp $ - -inherit eutils games - -MY_P="${P}-src" -S="${WORKDIR}/${MY_P}" -DESCRIPTION="Multi or single-player network Pacman-like game in SDL" -HOMEPAGE="http://njam.sourceforge.net/" -SRC_URI="mirror://sourceforge/njam/${MY_P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86 ppc ~amd64" -IUSE="" - -RDEPEND=">=media-libs/sdl-mixer-1.2.5 - >=media-libs/sdl-image-1.2.2 - >=media-libs/libsdl-1.2.5 - >=media-libs/sdl-net-1.2.4" -DEPEND="${RDEPEND} - >=sys-apps/sed-4" - -src_unpack() { - unpack ${A} - cd ${S} - - # store the conf file in the user's home directory. - epatch ${FILESDIR}/${P}-conf.patch - - sed -i \ - -e "s:\"data:\"${GAMES_DATADIR}/${PN}/data:" njam.cpp njamgame.cpp \ - || die "sed njam.cpp and njamgame.cpp failed" - sed -i \ - -e "s:\"hiscore.dat:\"${GAMES_STATEDIR}/${PN}/hiscore.dat:" \ - -e "s:\"skins:\"${GAMES_DATADIR}/${PN}/skins:" njam.cpp \ - || die "sed njam.cpp failed" - sed -i \ - -e "s:\"levels:\"${GAMES_DATADIR}/${PN}/levels:" njamedit.cpp \ - || die "sed njamedit.cpp failed" - sed -i \ - -e "s:\"log.txt:\"/dev/null:" njamutils.cpp \ - || die "sed njamutils.cpp failed" - sed -i \ - -e "s:-O3:${CFLAGS}:" Makefile \ - || die "sed Makefile failed" -} - -src_compile() { - emake PREFIX="/usr/share" || die "emake failed" -} - -src_install() { - dogamesbin njam || die "dogamesbin failed" - dodoc CHANGES README TODO - dohtml html/* - insinto ${GAMES_DATADIR}/njam/data - doins data/* || die "doins failed (data)" - insinto ${GAMES_DATADIR}/njam/skins - doins skins/* || die "doins failed (skins)" - insinto ${GAMES_DATADIR}/njam/levels - doins levels/* || die "doins failed (levels)" - dodir ${GAMES_STATEDIR}/${PN} - touch ${D}/${GAMES_STATEDIR}/${PN}/hiscore.dat - fperms 664 ${GAMES_STATEDIR}/${PN}/hiscore.dat - prepgamesdirs -} -- cgit v1.2.3-65-gdbad