diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 19:29:16 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-10 19:29:16 +0000 |
commit | 6b2c6aa5f4161d5fcd009e3e5f2e9d84539b25f3 (patch) | |
tree | 5578c0bf4dcb7768e6bc8e22c99c359d60cb6c8e /games-action/xshipwars | |
parent | games action and arcade (diff) | |
download | historical-6b2c6aa5f4161d5fcd009e3e5f2e9d84539b25f3.tar.gz historical-6b2c6aa5f4161d5fcd009e3e5f2e9d84539b25f3.tar.bz2 historical-6b2c6aa5f4161d5fcd009e3e5f2e9d84539b25f3.zip |
action games !
Diffstat (limited to 'games-action/xshipwars')
-rw-r--r-- | games-action/xshipwars/ChangeLog | 21 | ||||
-rw-r--r-- | games-action/xshipwars/Manifest | 4 | ||||
-rw-r--r-- | games-action/xshipwars/files/digest-xshipwars-1.34.0 | 5 | ||||
-rw-r--r-- | games-action/xshipwars/files/xshipwars-1.34.0-gcc3.patch | 39 | ||||
-rw-r--r-- | games-action/xshipwars/xshipwars-1.34.0.ebuild | 76 |
5 files changed, 145 insertions, 0 deletions
diff --git a/games-action/xshipwars/ChangeLog b/games-action/xshipwars/ChangeLog new file mode 100644 index 000000000000..6f33866771f2 --- /dev/null +++ b/games-action/xshipwars/ChangeLog @@ -0,0 +1,21 @@ +# ChangeLog for app-games/xshipwars +# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/xshipwars/ChangeLog,v 1.1 2003/09/10 19:29:16 vapier Exp $ + +*xshipwars-1.34.0 (01 Feb 2002) + + 19 Jun 2003; Mike Frysinger <vapier@gentoo.org> : + Added CFLAGS fix #11406. + + 01 Dec 2002; Mike Frysinger <vapier@gentoo.org> : + Added a patch for #9093, added games eclass support, added server install + + 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> xshipwars-1.34.0.ebuild : + Added KEYWORDS. + + 01 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog : + Added initial ChangeLog which should be updated whenever the package is + updated in any way. This changelog is targetted to users. This means that the + comments should well explained and written in clean English. The details about + writing correct changelogs are explained in the skel.ChangeLog file which you + can find in the root directory of the portage repository. diff --git a/games-action/xshipwars/Manifest b/games-action/xshipwars/Manifest new file mode 100644 index 000000000000..e57c184b91fb --- /dev/null +++ b/games-action/xshipwars/Manifest @@ -0,0 +1,4 @@ +MD5 494cb5cb8f63dde3f56204b84df47c3c ChangeLog 996 +MD5 0f6761ed24429e9842f9786178bd6e06 xshipwars-1.34.0.ebuild 2494 +MD5 3531befb837a0bc57eec24d4c1f484e4 files/digest-xshipwars-1.34.0 326 +MD5 810c3eb40cc4e406109ac3f0e33b3fa9 files/xshipwars-1.34.0-gcc3.patch 1338 diff --git a/games-action/xshipwars/files/digest-xshipwars-1.34.0 b/games-action/xshipwars/files/digest-xshipwars-1.34.0 new file mode 100644 index 000000000000..55a22c018154 --- /dev/null +++ b/games-action/xshipwars/files/digest-xshipwars-1.34.0 @@ -0,0 +1,5 @@ +MD5 09a3109f8588af9940d71522c713007c xsw-1.34.0.tar.bz2 1035462 +MD5 065d7b1b3a526382578c7c5a12d62d80 xswdata-1.33d.tar.bz2 2576273 +MD5 a555d638f5276d01bf716685fec2e9ee stimages1.7.tar.bz 6380434 +MD5 2e656293db1d9d3a519d24074653e19d babylon5images1.1.tar.bz2 4531670 +MD5 7a440c9f86c5a124912c6187d2943ef4 stsounds1.4.tgz 663695 diff --git a/games-action/xshipwars/files/xshipwars-1.34.0-gcc3.patch b/games-action/xshipwars/files/xshipwars-1.34.0-gcc3.patch new file mode 100644 index 000000000000..f0dc567de4b5 --- /dev/null +++ b/games-action/xshipwars/files/xshipwars-1.34.0-gcc3.patch @@ -0,0 +1,39 @@ +diff -uNr ../xsw-1.34.0.old/include/string.h ./include/string.h +--- ../xsw-1.34.0.old/include/string.h 2001-07-26 10:24:24.000000000 +0200 ++++ ./include/string.h 2002-11-30 17:59:35.000000000 +0100 +@@ -24,7 +24,7 @@ + extern int strcasecmp(const char *s1, const char *s2); + #endif + extern const char *strseekblank(const char *s); +-extern char *strcasestr(const char *haystack, const char *needle); ++/* extern char *strcasestr(const char *haystack, const char *needle); */ + extern int strpfx(const char *str, const char *pfx); + extern int strcasepfx(const char *str, const char *pfx); + extern void strtoupper(char *s); +diff -uNr ../xsw-1.34.0.old/include/xsw_ctype.h ./include/xsw_ctype.h +--- ../xsw-1.34.0.old/include/xsw_ctype.h 2001-07-26 10:26:38.000000000 +0200 ++++ ./include/xsw_ctype.h 2002-11-30 18:00:42.000000000 +0100 +@@ -4,10 +4,11 @@ + #if !defined(__FreeBSD__) && !defined(__NetBSD__) + # if defined(__cplusplus) || defined(c_plusplus) + +-#ifndef isblank ++/*#ifndef isblank + //extern bool isblank(char c); + extern bool isblank(int c); + #endif ++*/ + + #else + +--- ./include/xsw_ctype.h.orig 2002-12-01 12:39:31.000000000 -0500 ++++ ./include/xsw_ctype.h 2002-12-01 12:39:44.000000000 -0500 +@@ -6,7 +6,7 @@ + + #ifndef isblank + //extern bool isblank(char c); +-extern bool isblank(int c); ++extern int isblank(int c); + #endif + + #else diff --git a/games-action/xshipwars/xshipwars-1.34.0.ebuild b/games-action/xshipwars/xshipwars-1.34.0.ebuild new file mode 100644 index 000000000000..33fcc64a93c9 --- /dev/null +++ b/games-action/xshipwars/xshipwars-1.34.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-action/xshipwars/xshipwars-1.34.0.ebuild,v 1.1 2003/09/10 19:29:16 vapier Exp $ + +inherit gcc games eutils + +MY_P=xsw-${PV} +S=${WORKDIR}/${MY_P} +DESCRIPTION="massively multi-player, ultra graphical, space-oriented gaming system designed exclusively for network play" +SRC_URI="ftp://wolfpack.twu.net/users/wolfpack/${MY_P}.tar.bz2 + ftp://wolfpack.twu.net/users/wolfpack/xswdata-1.33d.tar.bz2 + ftp://wolfpack.twu.net/users/wolfpack/stimages1.7.tar.bz + ftp://wolfpack.twu.net/users/wolfpack/babylon5images1.1.tar.bz2 + ftp://wolfpack.twu.net/users/wolfpack/stsounds1.4.tgz" +HOMEPAGE="http://wolfpack.twu.net/ShipWars/XShipWars/" + +KEYWORDS="x86" +SLOT="0" +LICENSE="GPL-2 xshipwars" + +DEPEND="virtual/glibc + >=media-sound/esound-0.2.23 + >=x11-base/xfree-4.1.0" + +src_unpack() { + unpack ${MY_P}.tar.bz2 +} + +src_compile() { + ./configure.client Linux --prefix=/usr || die + ./configure.monitor Linux --prefix=/usr || die + ./configure.server Linux --prefix=${GAMES_PREFIX} || die + ./configure.unvedit Linux --prefix=/usr || die + + [ `gcc-major-version` == 3 ] && epatch ${FILESDIR}/${P}-gcc3.patch + + for makefile in Makefile.* ; do + make \ + -f ${makefile} \ + CPPFLAGS="-D__cplusplus -Dc_plusplus ${CFLAGS}" \ + all || die + done +} + +src_install() { + make -f Makefile.client PREFIX=${D}/usr install || die + make -f Makefile.monitor PREFIX=${D}/usr install || die + make -f Makefile.server PREFIX=${D}/${GAMES_PREFIX} install || die + make -f Makefile.unvedit PREFIX=${D}/usr install || die + + dodir ${GAMES_DATADIR}/${PN} + tar -jxC ${D}/${GAMES_DATADIR}/${PN} -f ${DISTDIR}/xswdata-1.33d.tar.bz2 + tar -jxC ${D}/${GAMES_DATADIR}/${PN} -f ${DISTDIR}/stimages1.7.tar.bz + tar -jxC ${D}/${GAMES_DATADIR}/${PN} -f ${DISTDIR}/babylon5images1.1.tar.bz2 + tar -zxC ${D}/${GAMES_DATADIR}/${PN} -f ${DISTDIR}/stsounds1.4.tgz + + # put the binaries in the right place + dodir ${GAMES_BINDIR} + mv ${D}/usr/games/{unvedit,xsw,monitor} ${D}/${GAMES_BINDIR}/ + + prepgamesdirs +} + +pkg_postinst() { + echo + einfo "Before playing, you should get a copy of the installed " + einfo "global XShipWars client configuration file and copy it to " + einfo "your home directory: " + echo + einfo "# cd /usr/share/games/xshipwars/etc/ " + einfo "# cp xshipwarsrc ~/.shipwars/xshipwarsrc " + einfo "# cp universes ~/.shipwars/universes " + echo + einfo "Then type 'xsw &' to start the game" + echo +} |