initial commit - ebuild based on the one provided by Allan Crossman via bug #56497
authorMichael Sterrett <mr_bones_@gentoo.org>
Sat, 11 Dec 2004 10:07:58 +0000 (10:07 +0000)
committerMichael Sterrett <mr_bones_@gentoo.org>
Sat, 11 Dec 2004 10:07:58 +0000 (10:07 +0000)
games-arcade/komi/ChangeLog [new file with mode: 0644]
games-arcade/komi/Manifest [new file with mode: 0644]
games-arcade/komi/files/1.04-DESTDIR.patch [new file with mode: 0644]
games-arcade/komi/files/digest-komi-1.04 [new file with mode: 0644]
games-arcade/komi/komi-1.04.ebuild [new file with mode: 0644]
games-arcade/komi/metadata.xml [new file with mode: 0644]

diff --git a/games-arcade/komi/ChangeLog b/games-arcade/komi/ChangeLog
new file mode 100644 (file)
index 0000000..e14e63e
--- /dev/null
@@ -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 (file)
index 0000000..ae091c7
--- /dev/null
@@ -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 (file)
index 0000000..2573b01
--- /dev/null
@@ -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 (file)
index 0000000..784cb2d
--- /dev/null
@@ -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 (file)
index 0000000..232ddb1
--- /dev/null
@@ -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 (file)
index 0000000..d3c2cc9
--- /dev/null
@@ -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>