summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-action/geki2-KXL/ChangeLog11
-rw-r--r--games-action/geki2-KXL/files/digest-geki2-KXL-2.0.3-r26
-rw-r--r--games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch44
-rw-r--r--games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild43
4 files changed, 102 insertions, 2 deletions
diff --git a/games-action/geki2-KXL/ChangeLog b/games-action/geki2-KXL/ChangeLog
index 53cb864d9836..d8cc4b7f400a 100644
--- a/games-action/geki2-KXL/ChangeLog
+++ b/games-action/geki2-KXL/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-action/geki2-KXL
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/geki2-KXL/ChangeLog,v 1.7 2006/11/27 01:22:03 blubb Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/geki2-KXL/ChangeLog,v 1.8 2008/01/05 21:57:38 nyhm Exp $
+
+*geki2-KXL-2.0.3-r2 (05 Jan 2008)
+
+ 05 Jan 2008; Tristan Heaven <nyhm@gentoo.org>
+ +files/geki2-KXL-2.0.3-paths.patch, +geki2-KXL-2.0.3-r2.ebuild:
+ Use autotools eclass, bug #204394; install menu entry, bug #159752; move
+ score file to $GAMES_STATEDIR
27 Nov 2006; <blubb@gentoo.org> geki2-KXL-2.0.3-r1.ebuild:
stable on amd64
diff --git a/games-action/geki2-KXL/files/digest-geki2-KXL-2.0.3-r2 b/games-action/geki2-KXL/files/digest-geki2-KXL-2.0.3-r2
new file mode 100644
index 000000000000..a455aae90dc3
--- /dev/null
+++ b/games-action/geki2-KXL/files/digest-geki2-KXL-2.0.3-r2
@@ -0,0 +1,6 @@
+MD5 9bb542ea15a4e6b5f51164c19cc0a674 geki2-KXL-2.0.3.tar.gz 708419
+RMD160 b1c743a0946f16c7934f55ff478d15b5c22e4e06 geki2-KXL-2.0.3.tar.gz 708419
+SHA256 24338682c9a10d5d796ffad352983481c440ee625d713ef4cc9b51b9da0c5391 geki2-KXL-2.0.3.tar.gz 708419
+MD5 5d5d749b9eed9192259b777513d05a61 geki2-KXL.png 883
+RMD160 79ccfc0ec6a89586c485badda77a5c2377574088 geki2-KXL.png 883
+SHA256 b4b314907aa0e563a60b25c4ab25d91dab872f4c2110a0ef3e487aa4855793fe geki2-KXL.png 883
diff --git a/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch
new file mode 100644
index 000000000000..1e4d7dba67d8
--- /dev/null
+++ b/games-action/geki2-KXL/files/geki2-KXL-2.0.3-paths.patch
@@ -0,0 +1,44 @@
+--- bmp/Makefile.am
++++ bmp/Makefile.am
+@@ -1,4 +1,4 @@
+-bmpdir = $(prefix)/share/geki2/bmp
++bmpdir = $(BMP_PATH)
+ bmp_DATA = back1.bmp boss2.bmp enemyshot4.bmp kuru.bmp myshot.bmp back2.bmp\
+ boss3.bmp enemyshot5.bmp mboss.bmp uraura.bmp back3.bmp\
+ boss3laser.bmp flash.bmp uturn.bmp back4.bmp back6.bmp boss6.bmp\
+--- configure.in
++++ configure.in
+@@ -25,9 +25,9 @@
+ BMP_PATH=/usr/local/share/geki2/bmp
+ WAV_PATH=/usr/local/share/geki2/wav
+ else
+- DATA_PATH=$prefix/share/geki2/data
+- BMP_PATH=$prefix/share/geki2/bmp
+- WAV_PATH=$prefix/share/geki2/wav
++ DATA_PATH=$datadir/geki2/data
++ BMP_PATH=$datadir/geki2/bmp
++ WAV_PATH=$datadir/geki2/wav
+ fi
+ AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
+ AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
+--- data/Makefile.am
++++ data/Makefile.am
+@@ -1,9 +1,7 @@
+-datadir = $(prefix)/share/geki2/data
++datadir = $(DATA_PATH)
+ data_DATA = stage1.dat stage2.dat stage3.dat stage4.dat stage5.dat stage6.dat\
+ map1.dat map2.dat map3.dat map4.dat map5.dat map6.dat
+ EXTRA_DIST = stage1.dat stage2.dat stage3.dat stage4.dat stage5.dat stage6.dat\
+ map1.dat map2.dat map3.dat map4.dat map5.dat map6.dat .score
+
+-install:
+- $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
+
+--- wav/Makefile.am
++++ wav/Makefile.am
+@@ -1,4 +1,4 @@
+-wavdir = $(prefix)/share/geki2/wav
++wavdir = $(WAV_PATH)
+ wav_DATA = bgm1.wav bgm2.wav bgm3.wav bgm4.wav bgm5.wav\
+ bomb.wav laser5.wav warning.wav boss.wav open.wav\
+ laser.wav pow.wav go.wav bgm6.wav
diff --git a/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild b/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild
new file mode 100644
index 000000000000..4aaa97897d15
--- /dev/null
+++ b/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/geki2-KXL/geki2-KXL-2.0.3-r2.ebuild,v 1.1 2008/01/05 21:57:38 nyhm Exp $
+
+inherit autotools eutils games
+
+DESCRIPTION="2D length scroll shooting game"
+HOMEPAGE="http://kxl.hn.org/"
+SRC_URI="http://kxl.hn.org/download/${P}.tar.gz
+ mirror://gentoo/${PN}.png"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-games/KXL"
+RDEPEND="${DEPEND}
+ media-fonts/font-bitstream-75dpi"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -f missing
+ sed -i \
+ -e '1i #include <string.h>' \
+ -e "s:DATA_PATH \"/.score\":\"${GAMES_STATEDIR}/${PN}\":" \
+ src/ranking.c \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-paths.patch
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ insinto "${GAMES_STATEDIR}"
+ newins data/.score ${PN} || die "newins failed"
+ fperms g+w "${GAMES_STATEDIR}"/${PN}
+ doicon "${DISTDIR}"/${PN}.png
+ make_desktop_entry geki2 Geki2
+ dodoc ChangeLog README
+ prepgamesdirs
+}