summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2004-12-11 10:07:58 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2004-12-11 10:07:58 +0000
commit3625bfe07d6e1f587fd251c7e3def6ff382abcfa (patch)
treecf26c6e5c4d8a129815d70e53fb69f14f521c743 /games-arcade/komi
parentStable on alpha. (diff)
downloadhistorical-3625bfe07d6e1f587fd251c7e3def6ff382abcfa.tar.gz
historical-3625bfe07d6e1f587fd251c7e3def6ff382abcfa.tar.bz2
historical-3625bfe07d6e1f587fd251c7e3def6ff382abcfa.zip
initial commit - ebuild based on the one provided by Allan Crossman via bug #56497
Diffstat (limited to 'games-arcade/komi')
-rw-r--r--games-arcade/komi/ChangeLog11
-rw-r--r--games-arcade/komi/Manifest5
-rw-r--r--games-arcade/komi/files/1.04-DESTDIR.patch36
-rw-r--r--games-arcade/komi/files/digest-komi-1.041
-rw-r--r--games-arcade/komi/komi-1.04.ebuild38
-rw-r--r--games-arcade/komi/metadata.xml5
6 files changed, 96 insertions, 0 deletions
diff --git a/games-arcade/komi/ChangeLog b/games-arcade/komi/ChangeLog
new file mode 100644
index 000000000000..e14e63ef232f
--- /dev/null
+++ b/games-arcade/komi/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-arcade/komi
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/komi/ChangeLog,v 1.1 2004/12/11 10:07:58 mr_bones_ Exp $
+
+*komi-1.04 (11 Dec 2004)
+
+ 11 Dec 2004; Michael Sterrett <mr_bones_@gentoo.org> +metadata.xml,
+ +files/1.04-DESTDIR.patch, +komi-1.04.ebuild:
+ initial commit - ebuild based on the one provided by Allan Crossman via bug
+ #56497
+
diff --git a/games-arcade/komi/Manifest b/games-arcade/komi/Manifest
new file mode 100644
index 000000000000..ae091c72d4e9
--- /dev/null
+++ b/games-arcade/komi/Manifest
@@ -0,0 +1,5 @@
+MD5 8313e4e6121c2ffa367941e0408f6613 komi-1.04.ebuild 941
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+MD5 4fc8430a14b3437cd374545909e51771 ChangeLog 442
+MD5 53f0281b55223dda40f1a828c40a07c8 files/digest-komi-1.04 61
+MD5 d7a99b1b2c100c5183c70e0aeb101abd files/1.04-DESTDIR.patch 970
diff --git a/games-arcade/komi/files/1.04-DESTDIR.patch b/games-arcade/komi/files/1.04-DESTDIR.patch
new file mode 100644
index 000000000000..2573b01e5c91
--- /dev/null
+++ b/games-arcade/komi/files/1.04-DESTDIR.patch
@@ -0,0 +1,36 @@
+--- Makefile.orig 2004-12-11 01:36:11.000000000 -0800
++++ Makefile 2004-12-11 01:36:14.000000000 -0800
+@@ -13,9 +13,7 @@
+ MIXER=-lSDL_mixer
+ SDL_LIB=$(shell sdl-config --static-libs) $(MIXER)
+
+-CFLAGS=-Wall -pedantic -std=c99 -O2 \
+- $(shell sdl-config --cflags) \
+- -DDATAPATH=\"$(DATAPATH)\"
++CFLAGS= $(ECFLAGS) $(shell sdl-config --cflags) -DDATAPATH=\"$(DATAPATH)\"
+
+ all: komi
+
+@@ -24,15 +22,13 @@
+ -rm *.o
+
+ install:
+- install -d $(DATAPATH)
+- cp -R komidata/* $(DATAPATH)
+- chmod -R 644 $(DATAPATH)
+- chmod 755 $(DATAPATH)
+- install -d $(BINPATH)
+- cp komi $(BINPATH)
+- chmod 755 $(BINPATH)komi
+- install -d $(MANPATH)
+- cp komi.6 $(MANPATH)komi.6
++ install -d $(DESTDIR)$(DATAPATH)
++ cp -R komidata/* $(DESTDIR)$(DATAPATH)
++ chmod -R 644 $(DESTDIR)$(DATAPATH)
++ chmod 755 $(DESTDIR)$(DATAPATH)
++ install -d $(DESTDIR)$(BINPATH)
++ cp komi $(DESTDIR)$(BINPATH)
++ chmod 755 $(DESTDIR)$(BINPATH)/komi
+
+ komi: komi.o
+ $(CC) $(CFLAGS) komi.o -o komi $(SDL_LIB)
diff --git a/games-arcade/komi/files/digest-komi-1.04 b/games-arcade/komi/files/digest-komi-1.04
new file mode 100644
index 000000000000..784cb2d528a9
--- /dev/null
+++ b/games-arcade/komi/files/digest-komi-1.04
@@ -0,0 +1 @@
+MD5 d1ab0e5429f6aa16169cf989d144e39a komi-1.04.tar.gz 954526
diff --git a/games-arcade/komi/komi-1.04.ebuild b/games-arcade/komi/komi-1.04.ebuild
new file mode 100644
index 000000000000..232ddb1286ea
--- /dev/null
+++ b/games-arcade/komi/komi-1.04.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/komi/komi-1.04.ebuild,v 1.1 2004/12/11 10:07:58 mr_bones_ Exp $
+
+inherit eutils games
+
+DESCRIPTION="Komi the Space Frog - simple SDL game of collection"
+HOMEPAGE="http://komi.sourceforge.net"
+SRC_URI="mirror://sourceforge/komi/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl
+ media-libs/sdl-mixer"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PV}-DESTDIR.patch"
+ sed -i \
+ -e "/^BINPATH/s:=.*:=${GAMES_BINDIR}/:" \
+ -e "/^DATAPATH/s:=.*:=${GAMES_DATADIR}/${PN}/:" Makefile \
+ || die "sed failed"
+}
+
+src_compile() {
+ emake ECFLAGS="${CFLAGS}" || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ doman komi.6
+ dodoc CHANGELOG.txt README.txt TROUBLESHOOTING.txt
+ prepgamesdirs
+}
diff --git a/games-arcade/komi/metadata.xml b/games-arcade/komi/metadata.xml
new file mode 100644
index 000000000000..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/komi/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>