summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-board/atakks/ChangeLog10
-rw-r--r--games-board/atakks/Manifest5
-rw-r--r--games-board/atakks/atakks-1.0.ebuild51
-rw-r--r--games-board/atakks/files/1.0-warnings.patch28
-rw-r--r--games-board/atakks/files/digest-atakks-1.01
-rw-r--r--games-board/atakks/metadata.xml5
6 files changed, 100 insertions, 0 deletions
diff --git a/games-board/atakks/ChangeLog b/games-board/atakks/ChangeLog
new file mode 100644
index 000000000000..17d94c37fecc
--- /dev/null
+++ b/games-board/atakks/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for games-board/atakks
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/atakks/ChangeLog,v 1.1 2004/06/02 08:29:58 mr_bones_ Exp $
+
+*atakks-1.0 (02 Jun 2004)
+
+ 02 Jun 2004; Michael Sterrett <mr_bones_@gentoo.org> atakks-1.0.ebuild,
+ metadata.xml:
+ initial commit - ebuild from Alexandru Toma via bug #52665
+
diff --git a/games-board/atakks/Manifest b/games-board/atakks/Manifest
new file mode 100644
index 000000000000..9b81f7da047d
--- /dev/null
+++ b/games-board/atakks/Manifest
@@ -0,0 +1,5 @@
+MD5 7f873ba23270813d9abe6c372d5fb7b9 atakks-1.0.ebuild 1181
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 9e895e6d3d32491377d8df094ec17fdb ChangeLog 399
+MD5 90961f342c8ec6af1466aa72b6931080 files/digest-atakks-1.0 61
+MD5 691b70eadcc8b0fa2a7d7e44a89ecaa1 files/1.0-warnings.patch 975
diff --git a/games-board/atakks/atakks-1.0.ebuild b/games-board/atakks/atakks-1.0.ebuild
new file mode 100644
index 000000000000..8d500803b0cf
--- /dev/null
+++ b/games-board/atakks/atakks-1.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-board/atakks/atakks-1.0.ebuild,v 1.1 2004/06/02 08:29:58 mr_bones_ Exp $
+
+inherit eutils games
+
+MY_P=${P/-/_}
+DESCRIPTION="A clone of Ataxx"
+HOMEPAGE="http://team.gcu-squad.org/~fab"
+# no version upstream
+#SRC_URI="http://team.gcu-squad.org/~fab/down/${PN}.tgz"
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND=">=media-libs/libsdl-1.2.7"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # Modify game data paths
+ sed -i \
+ -e "s:SDL_LoadBMP(\":SDL_LoadBMP(\"${GAMES_DATADIR}/${PN}/:" \
+ main.c || die "sed main.c failed"
+
+ # Modify Makefile (CFLAGS and language)
+ sed -i \
+ -e 's:^CFLAGS=:CFLAGS= $(E_CFLAGS) -DUS:' \
+ Makefile || die "sed Makefile failed"
+
+ epatch "${FILESDIR}/${PV}-warnings.patch"
+}
+
+src_compile() {
+ emake E_CFLAGS="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ dogamesbin atakks || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins *bmp || die "doins failed"
+ prepgamesdirs
+}
diff --git a/games-board/atakks/files/1.0-warnings.patch b/games-board/atakks/files/1.0-warnings.patch
new file mode 100644
index 000000000000..a27e014d9603
--- /dev/null
+++ b/games-board/atakks/files/1.0-warnings.patch
@@ -0,0 +1,28 @@
+--- main.c.orig 2004-06-02 01:26:00.000000000 -0700
++++ main.c 2004-06-02 01:27:30.000000000 -0700
+@@ -13,6 +13,7 @@
+ #include<SDL/SDL.h>
+ #include<unistd.h>
+ #include<stdlib.h> /* atexit */
++#include<string.h>
+ #include "defs.h"
+ void virus(Uint8 posX, Uint8 posY)
+ {
+@@ -206,7 +207,7 @@
+ int main(int argc, char **argv)
+ {
+ struct move hoho;
+- Uint8 caseX, caseY,selx, sely, checked = 0, canmove = 1;
++ Uint8 caseX, caseY,selx = 0, sely = 0, checked = 0, canmove = 1;
+ SDL_Surface *ico;
+ int pions1=0, pions2=0;
+ if (SDL_Init(SDL_INIT_VIDEO) == -1) {
+@@ -238,7 +239,7 @@
+ argv[0]);
+ #else
+ printf
+- ("\nSyntax: %s OPTIONS\n\n options:\n-h\t\tPrint help\n-t n1 n2\tSet width=n1 and height=n2\n\-ai\t\tActivate 1 player mode, [i] key during game.\n\n",
++ ("\nSyntax: %s OPTIONS\n\n options:\n-h\t\tPrint help\n-t n1 n2\tSet width=n1 and height=n2\n-ai\t\tActivate 1 player mode, [i] key during game.\n\n",
+ argv[0]);
+
+ #endif /* */
diff --git a/games-board/atakks/files/digest-atakks-1.0 b/games-board/atakks/files/digest-atakks-1.0
new file mode 100644
index 000000000000..05599399f57b
--- /dev/null
+++ b/games-board/atakks/files/digest-atakks-1.0
@@ -0,0 +1 @@
+MD5 9153c731620bf85bb60d00a1c93b621e atakks-1.0.tar.gz 62464
diff --git a/games-board/atakks/metadata.xml b/games-board/atakks/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-board/atakks/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>