summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-09-10 06:36:01 +0000
committerMike Frysinger <vapier@gentoo.org>2003-09-10 06:36:01 +0000
commit1e60d28cc73a78604a94314d6bfbbc32e3d5fbbd (patch)
treeca8136a0afa54ff74d56a3c97d2a42e671627c44 /games-puzzle/quadra
parentgames-puzzle (diff)
downloadhistorical-1e60d28cc73a78604a94314d6bfbbc32e3d5fbbd.tar.gz
historical-1e60d28cc73a78604a94314d6bfbbc32e3d5fbbd.tar.bz2
historical-1e60d28cc73a78604a94314d6bfbbc32e3d5fbbd.zip
games-puzzle !@
Diffstat (limited to 'games-puzzle/quadra')
-rw-r--r--games-puzzle/quadra/ChangeLog20
-rw-r--r--games-puzzle/quadra/Manifest5
-rw-r--r--games-puzzle/quadra/files/digest-quadra-1.1.81
-rw-r--r--games-puzzle/quadra/files/libpng-1.2.5.patch11
-rw-r--r--games-puzzle/quadra/files/quadra-1.1.8-gcc3.patch71
-rw-r--r--games-puzzle/quadra/quadra-1.1.8.ebuild39
6 files changed, 147 insertions, 0 deletions
diff --git a/games-puzzle/quadra/ChangeLog b/games-puzzle/quadra/ChangeLog
new file mode 100644
index 000000000000..d2f032b65583
--- /dev/null
+++ b/games-puzzle/quadra/ChangeLog
@@ -0,0 +1,20 @@
+# ChangeLog for app-games/quadra
+# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/quadra/ChangeLog,v 1.1 2003/09/10 06:36:00 vapier Exp $
+
+*quadra-1.1.8 (7 May 2002)
+
+ 27 Nov 2002; Mike Frysinger <vapier@gentoo.org> :
+ Added a patch to make configure detect libpng properly
+
+ 30 Sep 2002; Mike Frysinger <vapier@gentoo.org> :
+ Added gcc3.x patch and updated the ebuild in general (to install more stuff)
+
+ 7 May 2002; Spider <spider@gentoo.org> quandra-1.1.8.ebuild :
+ fix sourceforge mirroring.
+
+ 17 jul 2002; Jose Alberto Suárez López <bass@gentoo.org> quadra-1.1.8.ebuild :
+ Added LICENSE, KEYWORDS.
+
+ 28 Apr 2002; Bruce A. Locke <blocke@shivan.org> quadra-1.1.8.ebuild :
+ Added to Gentoo
diff --git a/games-puzzle/quadra/Manifest b/games-puzzle/quadra/Manifest
new file mode 100644
index 000000000000..7af182e254cc
--- /dev/null
+++ b/games-puzzle/quadra/Manifest
@@ -0,0 +1,5 @@
+MD5 bdff1f4721aa26a2dc4ac7f4f38e7194 files/digest-quadra-1.1.8 65
+MD5 bba09cc9f175516cb6eeadcc7cb5f20b files/libpng-1.2.5.patch 319
+MD5 dd2bece3bae29cd09110d33fb3f80d0d files/quadra-1.1.8-gcc3.patch 2226
+MD5 995b0337c9f5962c941104cbd6dbf551 quadra-1.1.8.ebuild 892
+MD5 f6ecf2813abd3783a466728f00f2ba99 ChangeLog 775
diff --git a/games-puzzle/quadra/files/digest-quadra-1.1.8 b/games-puzzle/quadra/files/digest-quadra-1.1.8
new file mode 100644
index 000000000000..0cc4f4f0c726
--- /dev/null
+++ b/games-puzzle/quadra/files/digest-quadra-1.1.8
@@ -0,0 +1 @@
+MD5 4934ee30d0bd98c4c454829a03224f6f quadra-1.1.8.tar.gz 3379618
diff --git a/games-puzzle/quadra/files/libpng-1.2.5.patch b/games-puzzle/quadra/files/libpng-1.2.5.patch
new file mode 100644
index 000000000000..62958eda7780
--- /dev/null
+++ b/games-puzzle/quadra/files/libpng-1.2.5.patch
@@ -0,0 +1,11 @@
+--- configure.orig 2002-11-27 18:23:31.000000000 -0500
++++ configure 2002-11-27 18:23:53.000000000 -0500
+@@ -1735,7 +1735,7 @@
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ ac_save_LIBS="$LIBS"
+-LIBS="-lpng $LIBS"
++LIBS="-lpng -lz -lm $LIBS"
+ cat > conftest.$ac_ext <<EOF
+ #line 1741 "configure"
+ #include "confdefs.h"
diff --git a/games-puzzle/quadra/files/quadra-1.1.8-gcc3.patch b/games-puzzle/quadra/files/quadra-1.1.8-gcc3.patch
new file mode 100644
index 000000000000..2e01e2641a6c
--- /dev/null
+++ b/games-puzzle/quadra/files/quadra-1.1.8-gcc3.patch
@@ -0,0 +1,71 @@
+diff -urN quadra-1.1.8/skelton/include/array.h quadra-1.1.8-kacsa/skelton/include/array.h
+--- quadra-1.1.8/skelton/include/array.h Sat Mar 10 17:17:54 2001
++++ quadra-1.1.8-kacsa/skelton/include/array.h Fri May 17 17:12:12 2002
+@@ -37,7 +37,7 @@
+ v.push_back(t);
+ }
+ void add_before(const T& t, int i) {
+- v.insert(&v[i], t);
++ v.insert(v.begin() + i, t);
+ }
+ bool remove_item(const T& t) {
+ for(int i=0; i<size(); i++)
+@@ -51,7 +51,7 @@
+ v.pop_back();
+ }
+ void remove(int i) {
+- v.erase(&v[i]);
++ v.erase(v.begin() + i);
+ }
+ int size() const {
+ return v.size();
+diff -urN quadra-1.1.8/skelton/tools/wadder/wadder.cpp quadra-1.1.8-kacsa/skelton/tools/wadder/wadder.cpp
+--- quadra-1.1.8/skelton/tools/wadder/wadder.cpp Fri Oct 19 23:19:30 2001
++++ quadra-1.1.8-kacsa/skelton/tools/wadder/wadder.cpp Fri May 17 17:21:19 2002
+@@ -109,12 +109,12 @@
+ char *usage = "usage: wadder <working directory> <output res> <input text>\n";
+ Resfile *wad;
+
+-char *basename(const char* f) {
++/*char *basename(const char* f) {
+ char* p=(char*)(f+strlen(f));
+ while(*p != '/' && *p != '\\' && p>=f)
+ p--;
+ return p+1;
+-}
++}*/
+
+ void addfile(const char* fname) {
+ Res_dos *res;
+diff -urN quadra-1.1.8/source/net_stuff.cpp quadra-1.1.8-kacsa/source/net_stuff.cpp
+--- quadra-1.1.8/source/net_stuff.cpp Thu Oct 11 22:35:14 2001
++++ quadra-1.1.8-kacsa/source/net_stuff.cpp Fri May 17 17:15:05 2002
+@@ -18,6 +18,7 @@
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
++#include <stdarg.h>
+ #include "error.h"
+ #include "packets.h"
+ #include "config.h"
+diff -urN quadra-1.1.8/source/quadra.cpp quadra-1.1.8-kacsa/source/quadra.cpp
+--- quadra-1.1.8/source/quadra.cpp Fri Oct 19 23:19:31 2001
++++ quadra-1.1.8-kacsa/source/quadra.cpp Fri May 17 17:17:02 2002
+@@ -2387,7 +2387,7 @@
+ try {
+ overmind.step();
+ }
+- catch(exception *e) {
++ catch(std::exception *e) {
+ msgbox("Exception caught from overmind.step(): %s\n", e->what());
+ }
+ #ifdef PAINTDETECTOR2000
+@@ -2406,7 +2406,7 @@
+ try {
+ ecran->draw_zone();
+ }
+- catch(exception *e) {
++ catch(std::exception *e) {
+ msgbox("Exception caught from ecran->draw_zone(): %s\n", e->what());
+ }
+
diff --git a/games-puzzle/quadra/quadra-1.1.8.ebuild b/games-puzzle/quadra/quadra-1.1.8.ebuild
new file mode 100644
index 000000000000..570cd10ad491
--- /dev/null
+++ b/games-puzzle/quadra/quadra-1.1.8.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/quadra/quadra-1.1.8.ebuild,v 1.1 2003/09/10 06:36:00 vapier Exp $
+
+inherit gcc
+
+DESCRIPTION="A tetris clone with multiplayer support"
+SRC_URI="mirror://sourceforge/quadra/${P}.tar.gz"
+HOMEPAGE="http://quadra.sourceforge.net/"
+
+KEYWORDS="x86"
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="svga"
+
+DEPEND=">=x11-base/xfree-4.1.0
+ >=media-libs/libpng-1.2.1
+ sys-libs/zlib
+ svga? ( media-libs/svgalib )"
+
+src_compile() {
+ [ `gcc-major-version` == 3 ] && patch -p1<${FILESDIR}/${P}-gcc3.patch
+ patch -p0<${FILESDIR}/libpng-1.2.5.patch
+
+ local myconf
+ use svga \
+ && myconf="--with-svgalib" \
+ || myconf="--without-svgalib"
+
+ econf ${myconf}
+ emake || die "emake failed"
+}
+
+src_install() {
+ einstall
+
+ dodoc ChangeLog NEWS README
+ dohtml help/*
+}