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
commit7db92fa89ed022694b9d9a1ab8bf8c1079726967 (patch)
treec38409e677f0f4790e9e3e356ff20d3fcd81bed1 /games-arcade/komi
parentStable on alpha. (Manifest recommit) (diff)
downloadgentoo-2-7db92fa89ed022694b9d9a1ab8bf8c1079726967.tar.gz
gentoo-2-7db92fa89ed022694b9d9a1ab8bf8c1079726967.tar.bz2
gentoo-2-7db92fa89ed022694b9d9a1ab8bf8c1079726967.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/Manifest2
-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, 93 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..028c40f3c65f
--- /dev/null
+++ b/games-arcade/komi/Manifest
@@ -0,0 +1,2 @@
+MD5 35c610bd7548f723bb1aa04597d49573 komi-1.04.ebuild 729
+MD5 53f0281b55223dda40f1a828c40a07c8 files/digest-komi-1.04 61
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>