summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 05:27:31 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 05:27:31 +0000
commit0c0186e57f9c188f3c71c04a35825c8e134cf141 (patch)
tree764612f703bdba5335d790064606b1f53a330c24 /games-strategy/dopewars
parentminor version update. resolves bug 27641 (diff)
downloadgentoo-2-0c0186e57f9c188f3c71c04a35825c8e134cf141.tar.gz
gentoo-2-0c0186e57f9c188f3c71c04a35825c8e134cf141.tar.bz2
gentoo-2-0c0186e57f9c188f3c71c04a35825c8e134cf141.zip
mmm strategy games
Diffstat (limited to 'games-strategy/dopewars')
-rw-r--r--games-strategy/dopewars/ChangeLog76
-rw-r--r--games-strategy/dopewars/Manifest6
-rw-r--r--games-strategy/dopewars/dopewars-1.5.8.ebuild59
-rw-r--r--games-strategy/dopewars/dopewars-1.5.9.ebuild59
-rw-r--r--games-strategy/dopewars/files/digest-dopewars-1.5.81
-rw-r--r--games-strategy/dopewars/files/digest-dopewars-1.5.91
-rw-r--r--games-strategy/dopewars/files/dopewars-1.5.8-gentoo.diff58
7 files changed, 260 insertions, 0 deletions
diff --git a/games-strategy/dopewars/ChangeLog b/games-strategy/dopewars/ChangeLog
new file mode 100644
index 000000000000..56208cdd9786
--- /dev/null
+++ b/games-strategy/dopewars/ChangeLog
@@ -0,0 +1,76 @@
+# ChangeLog for app-games/dopewars
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/dopewars/ChangeLog,v 1.1 2003/09/10 05:27:31 vapier Exp $
+
+*dopewars-1.5.9 (14 Jul 2003)
+
+ 14 Jul 2003; Mike Frysinger <vapier@gentoo.org> :
+ Version bump + games.eclass + more optional support.
+
+*dopewars-1.5.8 (28 Oct 2002)
+
+ 07 Nov 2002; L. Boshell <leonardop@gentoo.org> dopewars-1.5.8.ebuild,
+ files/dopewars-1.5.8-gentoo.diff : Fixed a small problem with the
+ $myconf variable and added a correction for the doc directory path in
+ the patch.
+
+ 28 Oct 2002; L. Boshell <leonardop@gentoo.org> dopewars-1.5.8.ebuild :
+ New version. Added support for various USE flags.
+
+*dopewars-1.5.7 (25 Jun 2002)
+
+ 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> dopewars-1.5.7.ebuild :
+ Added KEYWORDS.
+
+ 25 Jun 2002; Seemant Kuulleen <seemant@gentoo.org> dopewars-1.5.7.ebuild
+ files/digest-dopewars-1.5.7 :
+
+ Version bump.
+
+*dopewars-1.5.4-r1 (7 May 2002)
+
+ 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> dopewars-1.5.4-r1.ebuild :
+ Added KEYWORDS, SLOT.
+ 7 May 2002; Spider <spider@gentoo.org> dopewars-1.5.4-r1.ebuild dopewars-1.5.4.ebuild:
+ fix sourceforge mirroring.
+
+*dopewars-1.5.4-r1
+ 11 Apr 2002; Spider <spider@gentoo.org> dopewars-1.5.4-r1.ebuild dopewars-1.5.4.ebuild:
+ Update all glib dependencies to use glib-1.2* in preparation of unmasking the glib-2.0.1 packages
+
+
+
+*dopewars-1.5.4-r1 (27 Mar 2002)
+
+ 27 Mar 2002; Seemant Kulleen <seemant@gentoo.org> dopewars-1.5.4-r1.ebuild :
+
+ man page/LFH fixes submitted by Matthew Kennedy.
+
+*dopewars-1.5.4 (15 Mar 2002)
+
+ 15 Mar 2002; Seemant Kulleen <seemant@gentoo.org> dopewars-1.5.4.ebuild
+
+ Upgraded to new version and added USE dependent nls compilation. Also
+ changed the location of the html documentation into /usr/share/doc/dopewars
+ instead of /usr/share/dopewars/doc. Additionally, added a check for gnome in
+ the USE flag. If not present, the desktop icons etc need not be present.
+
+ 1 Feb 2002; G.Bevin <gbevin@gentoo.org> skel.ChangeLog :
+
+ This changelog is targetted to users. This means that the comments should be
+ well explained and written in clean English.
+
+ Every new version or revision of the package has to be marked by a '*'
+ seperator line as above. Changements since the last revision have to be
+ added to the top of the file, underneath the initial copyright and cvs header
+ comments, in exactly the same format as this comment.
+
+ This means that you start with header line that has the following format :
+
+ date; your_name <your_email> changed_file1, changed_file2 :
+
+ Below that line your explanation should follow. It has to be indented,
+ paragraphed and wrapped at a linewidth of 80 characters.
+
+ Any details about what exactly changed in the code should be added as a
+ message when the changes are committed to cvs, not in this file.
diff --git a/games-strategy/dopewars/Manifest b/games-strategy/dopewars/Manifest
new file mode 100644
index 000000000000..559075db06b0
--- /dev/null
+++ b/games-strategy/dopewars/Manifest
@@ -0,0 +1,6 @@
+MD5 bcd94482fb7995c6396896c57f036ff7 ChangeLog 2962
+MD5 1f989e4c3e54358c9a88ea1e457612cc dopewars-1.5.8.ebuild 1707
+MD5 34ac404f6534ebbe82cd454d3da4898e dopewars-1.5.9.ebuild 1408
+MD5 1ab4cc079a4ef8685f70383c30bce826 files/digest-dopewars-1.5.8 67
+MD5 b4e1fd58eb803016ca67302b2caf8d7a files/dopewars-1.5.8-gentoo.diff 2125
+MD5 ba5b960a65c5fa58ba14cd1fefc64ffe files/digest-dopewars-1.5.9 67
diff --git a/games-strategy/dopewars/dopewars-1.5.8.ebuild b/games-strategy/dopewars/dopewars-1.5.8.ebuild
new file mode 100644
index 000000000000..66325465bd61
--- /dev/null
+++ b/games-strategy/dopewars/dopewars-1.5.8.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/dopewars/dopewars-1.5.8.ebuild,v 1.1 2003/09/10 05:27:31 vapier Exp $
+
+DESCRIPTION="Re-Write of the game Drug Wars"
+SRC_URI="mirror://sourceforge/dopewars/${P}.tar.gz"
+HOMEPAGE="http://dopewars.sourceforge.net/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86 ppc"
+IUSE="nls ncurses gtk gtk2 gnome esd sdl"
+
+DEPEND="=dev-libs/glib-1.2*
+ ncurses? ( >=sys-libs/ncurses-5.2 )
+ esd? ( media-sound/esound )
+ gnome? ( gnome-base/gnome )
+ gtk? ( =x11-libs/gtk+-1.2* )
+ gtk2? ( =x11-libs/gtk+-2* )
+ nls? ( sys-devel/gettext )
+ sdl? ( media-libs/libsdl )"
+
+src_compile() {
+ # This patch fixes a problem when you try to compile dopewars without
+ # a graphical or curses-based client, and the path to the doc dir.
+ patch -p1 <${FILESDIR}/${P}-gentoo.diff
+
+ local myconf=""
+
+ use ncurses || myconf="--disable-curses-client"
+ use nls || myconf="$myconf --disable-nls"
+ use sdl || myconf="$myconf --without-sdl"
+ use esd || myconf="$myconf --without-esd"
+
+ if [ "`use gtk`" ] || [ "`use gtk2`" ]
+ then
+ myconf="$myconf --enable-gui-server"
+ use gtk2 || myconf="$myconf --disable-glib2"
+ else
+ myconf="$myconf --disable-gui-client"
+ fi
+
+ econf ${myconf} || die
+
+ #emake fails sometimes in 1.5.7, dropping to make. (drobbins, 29 Aug 2002)
+ make || die "Compilation failed"
+}
+
+src_install() {
+ einstall
+
+ use gnome || rm -rf ${D}/usr/share/gnome
+
+ mv ${D}/usr/share/doc/${P} ${D}/usr/share/doc/${P}-orig
+ dohtml -r ${D}/usr/share/doc/${P}-orig/*
+ rm -rf ${D}/usr/share/doc/${P}-orig
+
+ dodoc ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
+}
diff --git a/games-strategy/dopewars/dopewars-1.5.9.ebuild b/games-strategy/dopewars/dopewars-1.5.9.ebuild
new file mode 100644
index 000000000000..c1569c5965d2
--- /dev/null
+++ b/games-strategy/dopewars/dopewars-1.5.9.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/dopewars/dopewars-1.5.9.ebuild,v 1.1 2003/09/10 05:27:31 vapier Exp $
+
+inherit games eutils
+
+DESCRIPTION="Re-Write of the game Drug Wars"
+SRC_URI="mirror://sourceforge/dopewars/${P}.tar.gz"
+HOMEPAGE="http://dopewars.sourceforge.net/"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc"
+IUSE="nls ncurses gtk gtk2 gnome esd sdl"
+
+DEPEND="=dev-libs/glib-1.2*
+ ncurses? ( >=sys-libs/ncurses-5.2 )
+ esd? ( media-sound/esound )
+ gnome? ( gnome-base/gnome )
+ gtk? ( =x11-libs/gtk+-1.2* )
+ gtk2? ( =x11-libs/gtk+-2* )
+ nls? ( sys-devel/gettext )
+ sdl? ( media-libs/libsdl media-libs/sdl-mixer )"
+
+src_compile() {
+ local myservconf=""
+ if [ `use gtk` ] || [ `use gtk2` ] ; then
+ myservconf="--enable-gui-server `use_enable gtk2 glib2`"
+ else
+ myservconf="--disable-gui-client"
+ fi
+
+ egamesconf \
+ `use_enable ncurses curses-client` \
+ `use_enable nls` \
+ `use_with sdl` \
+ `use_with esd` \
+ --enable-networking \
+ --enable-plugins \
+ ${myservconf} \
+ || die
+ emake || die "Compilation failed"
+}
+
+src_install() {
+ make install DESTDIR=${D} || die
+ dodoc AUTHORS ChangeLog NEWS README TODO
+
+ cd ${D}/${GAMES_DATADIR}
+ use gnome \
+ && mv gnome ../ \
+ || rm -rf gnome
+ mv pixmaps ../
+ dohtml -r doc/*/*
+ rm -rf doc
+ rm dopewars.sco
+
+ prepgamesdirs
+}
diff --git a/games-strategy/dopewars/files/digest-dopewars-1.5.8 b/games-strategy/dopewars/files/digest-dopewars-1.5.8
new file mode 100644
index 000000000000..10e57826ed9e
--- /dev/null
+++ b/games-strategy/dopewars/files/digest-dopewars-1.5.8
@@ -0,0 +1 @@
+MD5 d2321652075806ac21b2716dbb416b29 dopewars-1.5.8.tar.gz 1168140
diff --git a/games-strategy/dopewars/files/digest-dopewars-1.5.9 b/games-strategy/dopewars/files/digest-dopewars-1.5.9
new file mode 100644
index 000000000000..b705ba032dc4
--- /dev/null
+++ b/games-strategy/dopewars/files/digest-dopewars-1.5.9
@@ -0,0 +1 @@
+MD5 77cdbc59e7550cfda7dfb7f6b7a01050 dopewars-1.5.9.tar.gz 1181836
diff --git a/games-strategy/dopewars/files/dopewars-1.5.8-gentoo.diff b/games-strategy/dopewars/files/dopewars-1.5.8-gentoo.diff
new file mode 100644
index 000000000000..539966062659
--- /dev/null
+++ b/games-strategy/dopewars/files/dopewars-1.5.8-gentoo.diff
@@ -0,0 +1,58 @@
+diff -NurB dopewars-1.5.8/src/dopewars.c dopewars-1.5.8-patched/src/dopewars.c
+--- dopewars-1.5.8/src/dopewars.c 2002-10-19 15:44:27.000000000 -0500
++++ dopewars-1.5.8-patched/src/dopewars.c 2002-11-07 00:03:31.000000000 -0500
+@@ -2345,7 +2345,8 @@
+ path = g_strdup_printf("file://%s\\", bindir);
+ g_free(bindir);
+ #else
+- path = g_strdup_printf("file://%s/doc/%s-%s/", DPDATADIR, PACKAGE, VERSION);
++ path = g_strdup_printf("file://%s/doc/%s-%s/html/",
++ DPDATADIR, PACKAGE, VERSION);
+ #endif
+ return path;
+ }
+@@ -2887,7 +2888,7 @@
+ * Stub function to report an error if the Curses client is requested and
+ * it isn't compiled in.
+ */
+-void CursesLoop(void)
++void CursesLoop(struct CMDLINE *cmdline)
+ {
+ g_print(_("No curses client available - rebuild the binary passing the\n"
+ "--enable-curses-client option to configure, or use a windowed\n"
+@@ -2902,9 +2903,10 @@
+ */
+ #ifdef CYGWIN
+ gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance,
+- gboolean ReturnOnFail)
++ struct CMDLINE *cmdline, gboolean ReturnOnFail)
+ #else
+-gboolean GtkLoop(int *argc, char **argv[], gboolean ReturnOnFail)
++gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline,
++ gboolean ReturnOnFail)
+ #endif
+ {
+ if (!ReturnOnFail) {
+diff -NurB dopewars-1.5.8/src/dopewars.h dopewars-1.5.8-patched/src/dopewars.h
+--- dopewars-1.5.8/src/dopewars.h 2002-08-30 13:15:42.000000000 -0500
++++ dopewars-1.5.8-patched/src/dopewars.h 2002-11-07 00:01:51.000000000 -0500
+@@ -456,15 +456,16 @@
+ gchar *GetLocalConfigFile(void);
+
+ #ifndef CURSES_CLIENT
+-void CursesLoop(void);
++void CursesLoop(struct CMDLINE *cmdline);
+ #endif
+
+ #ifndef GUI_CLIENT
+ #ifdef CYGWIN
+ gboolean GtkLoop(HINSTANCE hInstance, HINSTANCE hPrevInstance,
+- gboolean ReturnOnFail);
++ struct CMDLINE *cmdline, gboolean ReturnOnFail);
+ #else
+-gboolean GtkLoop(int *argc, char **argv[], gboolean ReturnOnFail);
++gboolean GtkLoop(int *argc, char **argv[], struct CMDLINE *cmdline,
++ gboolean ReturnOnFail);
+ #endif
+ #endif
+