diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2006-11-23 20:07:37 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2006-11-23 20:07:37 +0000 |
commit | 88f99a5c4e553f6da22610087110ad896c6d8ab3 (patch) | |
tree | 604465dcd7f5af1d586adec38fa061054937c9df /games-arcade/njam | |
parent | dev-db/mysql => virtual/mysql (diff) | |
download | gentoo-2-88f99a5c4e553f6da22610087110ad896c6d8ab3.tar.gz gentoo-2-88f99a5c4e553f6da22610087110ad896c6d8ab3.tar.bz2 gentoo-2-88f99a5c4e553f6da22610087110ad896c6d8ab3.zip |
Remove old version
(Portage version: 2.1.2_rc2-r1)
Diffstat (limited to 'games-arcade/njam')
-rw-r--r-- | games-arcade/njam/Manifest | 19 | ||||
-rw-r--r-- | games-arcade/njam/files/1.21-conf.patch | 136 | ||||
-rw-r--r-- | games-arcade/njam/files/digest-njam-1.21 | 1 | ||||
-rw-r--r-- | games-arcade/njam/njam-1.21.ebuild | 64 |
4 files changed, 14 insertions, 206 deletions
diff --git a/games-arcade/njam/Manifest b/games-arcade/njam/Manifest index 35153875c3d5..049d94032fdd 100644 --- a/games-arcade/njam/Manifest +++ b/games-arcade/njam/Manifest @@ -1,7 +1,16 @@ +DIST njam-1.25-src.tar.gz 1665803 +EBUILD njam-1.25.ebuild 1170 RMD160 1127d1c0842d47de29c8a36ecca7255e42173101 SHA1 8ba4d4feb24e25315b4a3252b45ffcc9844812cd SHA256 d9cf6cf56b1a3e49c45b3dd159cad1d63f2267c09dce7c9e52a97785c51d9db4 +MD5 2e3c13670b90195064f66d09806391db njam-1.25.ebuild 1170 +RMD160 1127d1c0842d47de29c8a36ecca7255e42173101 njam-1.25.ebuild 1170 +SHA256 d9cf6cf56b1a3e49c45b3dd159cad1d63f2267c09dce7c9e52a97785c51d9db4 njam-1.25.ebuild 1170 +MISC ChangeLog 1116 RMD160 3c0fe495f78bf134ae8ba598c319a32b9b1be966 SHA1 84eb52df31e0e5c194854a70347743f40bc888ab SHA256 f19ecd54a8566a84aa2c87f9d54c21bf497e5201c8278406b26fb8be3ef30c5d MD5 482adbc6ce035666ab5a32cd0c494d78 ChangeLog 1116 -MD5 87cb7d4a12739db2f6f737e7dbed52ab files/1.21-conf.patch 3420 -MD5 d997203b1f58b2e497d17e7f9c670f5c files/digest-njam-1.21 66 -MD5 2569011a6f39aacac37443be5d31ae59 files/digest-njam-1.25 66 +RMD160 3c0fe495f78bf134ae8ba598c319a32b9b1be966 ChangeLog 1116 +SHA256 f19ecd54a8566a84aa2c87f9d54c21bf497e5201c8278406b26fb8be3ef30c5d ChangeLog 1116 +MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 -MD5 7f23888fefb02185bc1bddd4f0a27b58 njam-1.21.ebuild 1813 -MD5 2e3c13670b90195064f66d09806391db njam-1.25.ebuild 1170 +RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158 +SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158 +MD5 2569011a6f39aacac37443be5d31ae59 files/digest-njam-1.25 66 +RMD160 3961f6e8d123e57a1daf44a2d8562f32a46d8cdf files/digest-njam-1.25 66 +SHA256 f87418c7d3a023158b09406be7e645faf84cdbec296c6ba2fefaa8f3ad1ae8d2 files/digest-njam-1.25 66 diff --git a/games-arcade/njam/files/1.21-conf.patch b/games-arcade/njam/files/1.21-conf.patch deleted file mode 100644 index e3ee74547ec3..000000000000 --- a/games-arcade/njam/files/1.21-conf.patch +++ /dev/null @@ -1,136 +0,0 @@ ---- njam.cpp.orig 2004-08-31 23:08:03.911280616 -0400 -+++ njam.cpp 2004-08-31 23:57:05.560082024 -0400 -@@ -33,6 +33,9 @@ - // needed for chdir
- #ifdef __linux__
- #include <unistd.h>
-+// for mkdir
-+#include <sys/stat.h>
-+#include <sys/types.h>
- #endif
-
- #include <stdio.h>
-@@ -215,15 +218,31 @@ - SDLNet_Quit();
-
- // write configuration options
-- char filename[] = "njam.conf";
-- FILE *fp = fopen(filename, "w+");
-- if (fp)
-- {
-- fprintf(fp, "M=%d\n", (m_GameOptions.PlayMusic ? 1 : 0));
-- fprintf(fp, "S=%d\n", (m_GameOptions.PlaySound ? 1 : 0));
-- fprintf(fp, "U=%d\n", m_GameOptions.UsedSkin);
-- fprintf(fp, "I=%s\n", m_GameOptions.ServerIP);
-- fclose(fp);
-+ FILE *fp;
-+
-+ if(getenv("HOME") && (chdir(getenv("HOME")) == 0))
-+ {
-+ mkdir(".njam", 0774);
-+
-+ if(chdir(".njam") == 0)
-+ {
-+ char filename[] = "njam.conf";
-+ fp = fopen(filename, "w+");
-+
-+ if(fp)
-+ {
-+ fprintf(fp,
-+ "M=%d\n",
-+ "S=%d\n",
-+ "U=%d\n",
-+ "I=%d\n",
-+ (m_GameOptions.PlayMusic ? 1 : 0),
-+ (m_GameOptions.PlaySound ? 1 : 0),
-+ m_GameOptions.UsedSkin,
-+ m_GameOptions.ServerIP);
-+ fclose(fp);
-+ }
-+ }
- }
-
- // format: NAME#POINTS#LEVEL#
-@@ -599,37 +618,52 @@ - m_FontYellow = new NjamFont("data/font-yellow.bmp", 10, 15);
-
- // Load user settings from .conf file
-- char filename[] = "njam.conf";
-- FILE *fp = fopen(filename, "r");
-- if (fp)
-- {
-- LogFile("Reading njam.conf file.\n");
-- char buff[20];
-- while (true)
-+ FILE *fp;
-+
-+ if(getenv("HOME") && (chdir(getenv("HOME")) == 0) &&
-+ (chdir(".njam") == 0))
-+ {
-+ char filename[] = "njam.conf";
-+ fp = fopen(filename, "r");
-+
-+ if(fp)
- {
-- fgets(buff, 20, fp);
-- if (feof(fp))
-- break;
-+ LogFile("Reading njam.conf file.\n");
-+ char buff[20];
-
-- if (buff[1] == '=')
-+ while (true)
- {
-- int i;
-- switch (buff[0])
-+ fgets(buff, 20, fp);
-+ if (feof(fp))
-+ break;
-+
-+ if (buff[1] == '=')
- {
-- case 'M': m_GameOptions.PlayMusic = (buff[2] == '1'); break;
-- case 'S': m_GameOptions.PlaySound = (buff[2] == '1'); break;
-- case 'U': m_GameOptions.UsedSkin = (buff[2] - '0'); 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 'U':
-+ m_GameOptions.UsedSkin = (buff[2] - '0');
-+ 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
-@@ -992,4 +1026,4 @@ - SDL_Flip(m_Screen);
- }
- }
--//---------------------------------------------------------------------------
-+//--------------------------------------------------------------------------- diff --git a/games-arcade/njam/files/digest-njam-1.21 b/games-arcade/njam/files/digest-njam-1.21 deleted file mode 100644 index 716e4acc14d3..000000000000 --- a/games-arcade/njam/files/digest-njam-1.21 +++ /dev/null @@ -1 +0,0 @@ -MD5 aa1889ea750fabff3029b95ad21ad1fa njam-1.21-src.tar.gz 1438351 diff --git a/games-arcade/njam/njam-1.21.ebuild b/games-arcade/njam/njam-1.21.ebuild deleted file mode 100644 index 35ff9ef3a298..000000000000 --- a/games-arcade/njam/njam-1.21.ebuild +++ /dev/null @@ -1,64 +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-1.21.ebuild,v 1.3 2005/12/28 06:42:07 mr_bones_ Exp $ - -inherit eutils flag-o-matic games - -MY_P="${P}-src" -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="" - -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" - -S="${WORKDIR}/${MY_P}" - -src_unpack() { - unpack ${A} - cd "${S}" - - # store the conf file in the user's home directory. - epatch "${FILESDIR}/${PV}-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" - - # njam segfaults on startup with -Os - replace-flags "-Os" "-O2" - - sed -i \ - -e '/^PREFIX/s:=.*:=/usr/share:' \ - -e "s:-O3:${CFLAGS}:" Makefile \ - || die "sed Makefile failed" -} - -src_install() { - dogamesbin njam || die "dogamesbin failed" - dodoc CHANGES README TODO - dohtml html/* - dodir "${GAMES_DATADIR}/njam" - cp -r data/ skins/ levels/ "${D}${GAMES_DATADIR}/njam" || die "cp failed" - dodir "${GAMES_STATEDIR}/${PN}" - touch "${D}/${GAMES_STATEDIR}/${PN}/hiscore.dat" - fperms 664 "${GAMES_STATEDIR}/${PN}/hiscore.dat" - prepgamesdirs -} |