summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <tristan@gentoo.org>2008-01-05 22:00:32 +0000
committerTristan Heaven <tristan@gentoo.org>2008-01-05 22:00:32 +0000
commit0d50b6fab678529e75dccf304ce319caed5d4072 (patch)
tree5cb34671ebace6ac09099fe314b41ccfffc43380 /games-action
parentUse autotools eclass, bug #204394; install menu entry, bug #159752; move scor... (diff)
downloadhistorical-0d50b6fab678529e75dccf304ce319caed5d4072.tar.gz
historical-0d50b6fab678529e75dccf304ce319caed5d4072.tar.bz2
historical-0d50b6fab678529e75dccf304ce319caed5d4072.zip
Use autotools eclass, bug #204392; install menu entry, bug #159753; move score file to $GAMES_STATEDIR
Package-Manager: portage-2.1.4_rc14
Diffstat (limited to 'games-action')
-rw-r--r--games-action/geki3-KXL/ChangeLog11
-rw-r--r--games-action/geki3-KXL/files/digest-geki3-KXL-1.0.3-r26
-rw-r--r--games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch41
-rw-r--r--games-action/geki3-KXL/geki3-KXL-1.0.3-r2.ebuild43
4 files changed, 99 insertions, 2 deletions
diff --git a/games-action/geki3-KXL/ChangeLog b/games-action/geki3-KXL/ChangeLog
index 80330b85f75f..1908669a7e04 100644
--- a/games-action/geki3-KXL/ChangeLog
+++ b/games-action/geki3-KXL/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-action/geki3-KXL
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/geki3-KXL/ChangeLog,v 1.8 2006/11/27 01:23:37 blubb Exp $
+# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/geki3-KXL/ChangeLog,v 1.9 2008/01/05 22:00:31 nyhm Exp $
+
+*geki3-KXL-1.0.3-r2 (05 Jan 2008)
+
+ 05 Jan 2008; Tristan Heaven <nyhm@gentoo.org>
+ +files/geki3-KXL-1.0.3-paths.patch, +geki3-KXL-1.0.3-r2.ebuild:
+ Use autotools eclass, bug #204392; install menu entry, bug #159753; move
+ score file to $GAMES_STATEDIR
27 Nov 2006; <blubb@gentoo.org> geki3-KXL-1.0.3-r1.ebuild:
stable on amd64
diff --git a/games-action/geki3-KXL/files/digest-geki3-KXL-1.0.3-r2 b/games-action/geki3-KXL/files/digest-geki3-KXL-1.0.3-r2
new file mode 100644
index 000000000000..a36b72b206ca
--- /dev/null
+++ b/games-action/geki3-KXL/files/digest-geki3-KXL-1.0.3-r2
@@ -0,0 +1,6 @@
+MD5 0e7d1f87af08b9ddc50e3c7bec6ebe14 geki3-KXL-1.0.3.tar.gz 695913
+RMD160 3439e173f66fa6fb08213d3e1eb47ed8b2a66c4d geki3-KXL-1.0.3.tar.gz 695913
+SHA256 5308488d3c31731c75d671d9a6b61ebcfc7e97c651a76f0ef869c8aa3a3865f8 geki3-KXL-1.0.3.tar.gz 695913
+MD5 ebe0369433ff2f2d73f14dfc8b31426d geki3-KXL.png 1142
+RMD160 97b90e3aece9798bd695cd5e25e775d73146ec9a geki3-KXL.png 1142
+SHA256 9fc2bc6f5abb44c3b863378d13ddc5f892ff284d4ea6092af3bb55bbf78a6046 geki3-KXL.png 1142
diff --git a/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch
new file mode 100644
index 000000000000..039b185d0b1c
--- /dev/null
+++ b/games-action/geki3-KXL/files/geki3-KXL-1.0.3-paths.patch
@@ -0,0 +1,41 @@
+--- bmp/Makefile.am
++++ bmp/Makefile.am
+@@ -1,4 +1,4 @@
+-bmpdir = $(prefix)/share/geki3/bmp
++bmpdir = $(BMP_PATH)
+ bmp_DATA = back1.bmp boss2.bmp enemyshot1.bmp missile.bmp\
+ pata.bmp back2.bmp boss3.bmp enemyshot2.bmp mogu.bmp\
+ pata_ball.bmp back3.bmp boss4.bmp frame.bmp mogu_ball.bmp\
+--- configure.in
++++ configure.in
+@@ -25,9 +25,9 @@
+ BMP_PATH=/usr/local/share/geki3/bmp
+ WAV_PATH=/usr/local/share/geki3/wav
+ else
+- DATA_PATH=$prefix/share/geki3/data
+- BMP_PATH=$prefix/share/geki3/bmp
+- WAV_PATH=$prefix/share/geki3/wav
++ DATA_PATH=$datadir/geki3/data
++ BMP_PATH=$datadir/geki3/bmp
++ WAV_PATH=$datadir/geki3/wav
+ fi
+ AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
+ AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
+--- data/Makefile.am
++++ data/Makefile.am
+@@ -1,6 +1,4 @@
+-datadir = $(prefix)/share/geki3/data
++datadir = $(DATA_PATH)
+ data_DATA = stage1.dat stage2.dat stage3.dat stage4.dat
+ EXTRA_DIST = stage1.dat stage2.dat stage3.dat stage4.dat .score
+
+-install:
+- $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
+--- wav/Makefile.am
++++ wav/Makefile.am
+@@ -1,4 +1,4 @@
+-wavdir = $(prefix)/share/geki3/wav
++wavdir = $(WAV_PATH)
+ wav_DATA = bgm1.wav bgm2.wav bgm3.wav bgm4.wav boom.wav boss.wav go.wav \
+ laser.wav open.wav pow.wav warning.wav
+ EXTRA_DIST = bgm1.wav bgm2.wav bgm3.wav bgm4.wav boom.wav boss.wav go.wav \
diff --git a/games-action/geki3-KXL/geki3-KXL-1.0.3-r2.ebuild b/games-action/geki3-KXL/geki3-KXL-1.0.3-r2.ebuild
new file mode 100644
index 000000000000..2fa39b8b5748
--- /dev/null
+++ b/games-action/geki3-KXL/geki3-KXL-1.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/geki3-KXL/geki3-KXL-1.0.3-r2.ebuild,v 1.1 2008/01/05 22:00:31 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 geki3 Geki3
+ dodoc ChangeLog README
+ prepgamesdirs
+}