summaryrefslogtreecommitdiff
path: root/games-arcade/komi
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/komi')
-rw-r--r--games-arcade/komi/Manifest7
-rw-r--r--games-arcade/komi/files/1.04-DESTDIR.patch36
-rw-r--r--games-arcade/komi/files/komi-1.04-install.patch11
-rw-r--r--games-arcade/komi/komi-1.04.ebuild43
-rw-r--r--games-arcade/komi/metadata.xml11
5 files changed, 108 insertions, 0 deletions
diff --git a/games-arcade/komi/Manifest b/games-arcade/komi/Manifest
new file mode 100644
index 000000000000..58f48cdf7bfc
--- /dev/null
+++ b/games-arcade/komi/Manifest
@@ -0,0 +1,7 @@
+AUX 1.04-DESTDIR.patch 970 SHA256 8e7621c306f38c7e7fb3ae269974980f14ff731b7583e5286e465277f5968ff8 SHA512 41b9fb217509c2bea480b751a1fa4fe6962418a585916b712117ec0c69aac0b41451ba70e71dcf82178a8f181608e003c2aa0749a068c9cffab3abc925b33441 WHIRLPOOL ca7f8577ad4bc3cf8c050b89c72cf85babe67213a77f1b51584751deae3df93ec8474f8612dddb08dd4e5b76401d935da29c99525a61470a8bac184069d9c26e
+AUX komi-1.04-install.patch 380 SHA256 1d48e79adc259530da6a7671a7cd072cf43b947bca63c7b8cb747c71a9d8024a SHA512 6e7d649903c4078aed9bacddbfb771525e1808a33bf310a25c341eb92ae1696632d59264441743945abc7dfb6d4a127c9d8625c5bda937de038834c43043ba52 WHIRLPOOL a3b4bf286759539fa7e4525d6c495215d68e68091b394eb794db1dace3a933a58dd3c6ac4d3ac8cb5d29569351ca5fff756ec639057f68d32b3395b50d514f5d
+DIST komi-1.04.tar.gz 954526 SHA256 9a6852b44197e04832861b684390971c5a85c0405edc0a555fe6fdd9a5325721 SHA512 60babb3642bea7598089b342ba582b2f63f6aa051352ad9b2fa5bad0222a32306775a207712d2e7a9242be5e3ff5b4734f5b62708e451e7230499c6812d4c8a3 WHIRLPOOL d22b8ad640f4cc831f5568c4f3825a81ef289ae757c8698bd39635a54565d23fdbe1f4828bacdd7794a66456900233c6561888b7427c749be51ee8428ea2b221
+EBUILD komi-1.04.ebuild 993 SHA256 0da31c1dcaafbda57e545655316f4e9356013b95f70da277e5f64c131b8cc1e1 SHA512 60334da45aeb3365a1f6566b5a3a3ab6d761939aa8b3864107894633e0d5ef1896082f0b753329ce0359ac305f0091e808263c75e068a312d758e4ed304c2780 WHIRLPOOL 724c06e9a4d276637f7d2d5840544c295b9611fdc1cb7ae9149aaaf6cb07116a7c93141c1625381137352d305f5ebeca6d3e9c7b0190229f6729ce63aadbc378
+MISC ChangeLog 2481 SHA256 9a6f969bf5abfce6072fe67de50a03f44fb12ad18194ad4e0f36720070d5d53d SHA512 ed028eafce277ba8bc14249122d00f44065091a89f6f902441aef705ed98187d90c0c0ed2bcd9806221ce855f4c9a6d9470c3abf5142dfa4c4f0c439ad1c2711 WHIRLPOOL 8916ffdf241c0327977befcb0dd7f3eca66e98007c77af9e63493031ef0efcaa1acee4f3859fdc2e3ae2ebc3c8a07d17f136351f1e069eeee7ec36b239cffc16
+MISC ChangeLog-2015 1039 SHA256 3b19fba0452a6f32dc8c66d61a7cdd4fd88a17b16f4c87802f7f15495e7b0d4c SHA512 fb093f3743dae9ddc20d841b607737e4726df8ca67acce72282ab8d85d9e44dac03a5fc9a161f748c35208cc9adcf6c43e1d127b99043ec8c59ea3391e1f78c1 WHIRLPOOL 70cdebb26947ea3e7df078d7f2733bc818b1cd09f88b36cf96c8d09be09d43b4d7e491adade91c1228f59b787ad83fb9d21f0173a3ab9cdc78d65b78750e1710
+MISC metadata.xml 327 SHA256 097354a8ada513ed569b7cbbd4fbb23e232e32113799acbf2fa5f859c48d7914 SHA512 15af3d90fcfbbcb824625719c4adf55d6b57cfb1d31903731678d5b3170770595e9d1a0dcb0e0151c463cad0493931f49db0d210136e51c269571649cbbc4476 WHIRLPOOL 99b9a3a8477e978479813c8d8a0c134f4c1c32899e449fef5c87067e067e31ab4d8650ec17b89b9f4dd9c5a3545694a70066d426434df8588db32d6811c6d3bc
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/komi-1.04-install.patch b/games-arcade/komi/files/komi-1.04-install.patch
new file mode 100644
index 000000000000..d00a48d296fb
--- /dev/null
+++ b/games-arcade/komi/files/komi-1.04-install.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2015-01-05 11:35:24.794160467 +0100
++++ Makefile 2015-01-05 11:36:23.181058180 +0100
+@@ -24,8 +24,6 @@
+ install:
+ 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
diff --git a/games-arcade/komi/komi-1.04.ebuild b/games-arcade/komi/komi-1.04.ebuild
new file mode 100644
index 000000000000..3d4472a48c26
--- /dev/null
+++ b/games-arcade/komi/komi-1.04.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+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="amd64 x86"
+IUSE=""
+
+DEPEND="media-libs/libsdl[video]
+ media-libs/sdl-mixer"
+RDEPEND="${DEPEND}"
+DOCS=( CHANGELOG.txt README.txt TROUBLESHOOTING.txt )
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-DESTDIR.patch \
+ "${FILESDIR}"/${P}-install.patch
+ sed -i \
+ -e "/^BINPATH/s:=.*:=${GAMES_BINDIR}/:" \
+ -e "/^DATAPATH/s:=.*:=${GAMES_DATADIR}/${PN}/:" \
+ -e '/^SDL_LIB/s:$: $(LDFLAGS):' \
+ -e '/^SDL_LIB/s:--static-:--:' \
+ Makefile \
+ || die "sed failed"
+}
+
+src_compile() {
+ emake ECFLAGS="${CFLAGS}"
+}
+
+src_install() {
+ default
+ newicon komidata/sprites_komi.bmp ${PN}.bmp
+ make_desktop_entry komi Komi /usr/share/pixmaps/${PN}.bmp
+ doman komi.6
+ prepgamesdirs
+}
diff --git a/games-arcade/komi/metadata.xml b/games-arcade/komi/metadata.xml
new file mode 100644
index 000000000000..f1df7f6e2a86
--- /dev/null
+++ b/games-arcade/komi/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">komi</remote-id>
+ </upstream>
+</pkgmetadata>