summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-03-14 16:23:27 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-03-14 16:23:27 +0000
commitc6888551641245ff8804efb3a1cf92b895696df0 (patch)
treef38495af5bd37a6c53ecd579bd080ceb837df229 /games-action/spacearyarya-kxl
parentVersion bump, bug 169321 also solves bug 148439 (diff)
downloadgentoo-2-c6888551641245ff8804efb3a1cf92b895696df0.tar.gz
gentoo-2-c6888551641245ff8804efb3a1cf92b895696df0.tar.bz2
gentoo-2-c6888551641245ff8804efb3a1cf92b895696df0.zip
Install menu entry, bug #159765
(Portage version: 2.1.2.2)
Diffstat (limited to 'games-action/spacearyarya-kxl')
-rw-r--r--games-action/spacearyarya-kxl/ChangeLog6
-rw-r--r--games-action/spacearyarya-kxl/files/1.0.2-gentoo-paths.patch61
-rw-r--r--games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild27
3 files changed, 64 insertions, 30 deletions
diff --git a/games-action/spacearyarya-kxl/ChangeLog b/games-action/spacearyarya-kxl/ChangeLog
index 92e81cdd6a53..d18010f7aa38 100644
--- a/games-action/spacearyarya-kxl/ChangeLog
+++ b/games-action/spacearyarya-kxl/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-action/spacearyarya-kxl
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/spacearyarya-kxl/ChangeLog,v 1.8 2007/02/08 20:50:12 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/spacearyarya-kxl/ChangeLog,v 1.9 2007/03/14 16:23:27 nyhm Exp $
+
+ 14 Mar 2007; Tristan Heaven <nyhm@gentoo.org>
+ spacearyarya-kxl-1.0.2-r1.ebuild:
+ Install menu entry, bug #159765
08 Feb 2007; Chris Gianelloni <wolf31o2@gentoo.org> ChangeLog:
Regenerate digest in Manifest2 format.
diff --git a/games-action/spacearyarya-kxl/files/1.0.2-gentoo-paths.patch b/games-action/spacearyarya-kxl/files/1.0.2-gentoo-paths.patch
index 27af5b86fd01..197dae5e926f 100644
--- a/games-action/spacearyarya-kxl/files/1.0.2-gentoo-paths.patch
+++ b/games-action/spacearyarya-kxl/files/1.0.2-gentoo-paths.patch
@@ -1,16 +1,14 @@
-diff -ur SpaceAryarya-KXL-1.0.2.orig/bmp/Makefile.am SpaceAryarya-KXL-1.0.2/bmp/Makefile.am
---- SpaceAryarya-KXL-1.0.2.orig/bmp/Makefile.am 2003-12-31 11:56:07.715433088 -0500
-+++ SpaceAryarya-KXL-1.0.2/bmp/Makefile.am 2003-12-31 11:54:45.667906000 -0500
+--- bmp/Makefile.am
++++ bmp/Makefile.am
@@ -1,4 +1,4 @@
-bmpdir = $(prefix)/share/SpaceAryarya/bmp
+bmpdir = $(BMP_PATH)
bmp_DATA = my.bmp enemy1.bmp shot.bmp bomb.bmp\
enemy2.bmp kage.bmp wall.bmp wall2.bmp eshot.bmp\
boss1_b.bmp boss1_do.bmp boss1_f.bmp\
-diff -ur SpaceAryarya-KXL-1.0.2.orig/configure.in SpaceAryarya-KXL-1.0.2/configure.in
---- SpaceAryarya-KXL-1.0.2.orig/configure.in 2003-12-31 11:56:07.687437344 -0500
-+++ SpaceAryarya-KXL-1.0.2/configure.in 2003-12-31 11:55:19.708731000 -0500
-@@ -25,9 +25,9 @@
+--- configure.in
++++ configure.in
+@@ -25,17 +25,20 @@
BMP_PATH=/usr/local/share/SpaceAryarya/bmp
WAV_PATH=/usr/local/share/SpaceAryarya/wav
else
@@ -20,24 +18,55 @@ diff -ur SpaceAryarya-KXL-1.0.2.orig/configure.in SpaceAryarya-KXL-1.0.2/configu
+ DATA_PATH=$datadir/SpaceAryarya/data
+ BMP_PATH=$datadir/SpaceAryarya/bmp
+ WAV_PATH=$datadir/SpaceAryarya/wav
++ SCORE_PATH=$localstatedir/SpaceAryarya
fi
AC_DEFINE_UNQUOTED(DATA_PATH,"$DATA_PATH")
AC_DEFINE_UNQUOTED(BMP_PATH,"$BMP_PATH")
-diff -ur SpaceAryarya-KXL-1.0.2.orig/data/Makefile.am SpaceAryarya-KXL-1.0.2/data/Makefile.am
---- SpaceAryarya-KXL-1.0.2.orig/data/Makefile.am 2003-12-31 11:56:07.691436736 -0500
-+++ SpaceAryarya-KXL-1.0.2/data/Makefile.am 2003-12-31 11:54:55.989337000 -0500
-@@ -1,6 +1,6 @@
+ AC_DEFINE_UNQUOTED(WAV_PATH,"$WAV_PATH")
++AC_DEFINE_UNQUOTED(SCORE_PATH,"$SCORE_PATH")
+ AC_DEFINE_UNQUOTED(TITLE,"$PACKAGE $VERSION")
+ AC_SUBST(DATA_PATH)
+ AC_SUBST(BMP_PATH)
+ AC_SUBST(WAV_PATH)
++AC_SUBST(SCORE_PATH)
+
+ AC_OUTPUT([data/Makefile wav/Makefile bmp/Makefile src/Makefile
+ spacearyarya.spec Makefile])
+--- data/Makefile.am
++++ data/Makefile.am
+@@ -1,6 +1,7 @@
-datadir = $(prefix)/share/SpaceAryarya/data
+datadir = $(DATA_PATH)
data_DATA = stage1.dat stage2.dat
EXTRA_DIST = stage1.dat stage2.dat .score
- install:
+-install:
- $(INSTALL) -c -m 666 ./.score $(DESTDIR)$(DATA_PATH)
-+ $(INSTALL) -c -m 660 ./.score $(DESTDIR)$(DATA_PATH)
-diff -ur SpaceAryarya-KXL-1.0.2.orig/wav/Makefile.am SpaceAryarya-KXL-1.0.2/wav/Makefile.am
---- SpaceAryarya-KXL-1.0.2.orig/wav/Makefile.am 2003-12-31 11:56:07.709434000 -0500
-+++ SpaceAryarya-KXL-1.0.2/wav/Makefile.am 2003-12-31 11:55:04.719010000 -0500
++install-data-local:
++ $(mkinstalldirs) $(DESTDIR)$(SCORE_PATH)
++ $(INSTALL) -m 660 .score $(DESTDIR)$(SCORE_PATH)
+--- src/ranking.c
++++ src/ranking.c
+@@ -36,7 +36,7 @@
+ FILE *fp;
+ Uint16 i;
+
+- if ((fp = fopen(DATA_PATH "/.score", "r"))) {
++ if ((fp = fopen(SCORE_PATH "/.score", "r"))) {
+ fscanf(fp, "%d", &(Root->HiScore));
+ for (i = 0; i < 5; i ++)
+ fscanf(fp, "%d %d %s",
+@@ -65,7 +65,7 @@
+ FILE *fp;
+ Uint16 i;
+
+- if ((fp = fopen(DATA_PATH "/.score", "w"))) {
++ if ((fp = fopen(SCORE_PATH "/.score", "w"))) {
+ fprintf(fp, "%d\n", Root->HiScore);
+ for (i = 0; i < 5; i ++)
+ fprintf(fp, "%d %d %s\n",
+--- wav/Makefile.am
++++ wav/Makefile.am
@@ -1,3 +1,3 @@
-wavdir = $(prefix)/share/SpaceAryarya/wav
+wavdir = $(WAV_PATH)
diff --git a/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild b/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild
index b9afc5fe6820..e90035013e31 100644
--- a/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild
+++ b/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild
@@ -1,33 +1,34 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild,v 1.4 2005/08/11 23:45:01 tester Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-action/spacearyarya-kxl/spacearyarya-kxl-1.0.2-r1.ebuild,v 1.5 2007/03/14 16:23:27 nyhm Exp $
-inherit eutils games
+inherit autotools eutils games
MY_P=SpaceAryarya-KXL-${PV}
-S="${WORKDIR}/${MY_P}"
DESCRIPTION="A 2D/3D shooting game"
-HOMEPAGE="http://kxl.hn.org/"
-SRC_URI="http://kxl.hn.org/download/${MY_P}.tar.gz"
+HOMEPAGE="http://kxl.orz.hm/"
+SRC_URI="mirror://gentoo/${MY_P}.tar.gz"
-KEYWORDS="~amd64 ppc x86"
LICENSE="GPL-2"
SLOT="0"
+KEYWORDS="~amd64 ppc x86"
IUSE=""
DEPEND=">=dev-games/KXL-1.1.4"
+S=${WORKDIR}/${MY_P}
+
src_unpack() {
unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/${PV}-gentoo-paths.patch
- aclocal || die "aclocal failed"
- automake -a || die "automake failed"
- autoconf || die "autoconf failed"
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}-gentoo-paths.patch
+ eautoreconf
}
src_install() {
- make DESTDIR=${D} install || die "make install failed"
+ emake DESTDIR="${D}" install || die "emake install failed"
+ newicon bmp/enemy1.bmp ${PN}.bmp
+ make_desktop_entry spacearyarya SpaceAryarya /usr/share/pixmaps/${PN}.bmp
dodoc ChangeLog README
prepgamesdirs
}