summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2007-03-13 21:42:26 +0000
committerTristan Heaven <nyhm@gentoo.org>2007-03-13 21:42:26 +0000
commit3d104a9bdb554106ad5ee60d488f251d878e79ce (patch)
treeb7317d0e48487990d06cbc236c13957ebc64f0ef /games-arcade
parentCleanup. (diff)
downloadgentoo-2-3d104a9bdb554106ad5ee60d488f251d878e79ce.tar.gz
gentoo-2-3d104a9bdb554106ad5ee60d488f251d878e79ce.tar.bz2
gentoo-2-3d104a9bdb554106ad5ee60d488f251d878e79ce.zip
Install menu entry, bug #160227
(Portage version: 2.1.2.2)
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/insaneodyssey/ChangeLog7
-rw-r--r--games-arcade/insaneodyssey/insaneodyssey-000311.ebuild43
2 files changed, 28 insertions, 22 deletions
diff --git a/games-arcade/insaneodyssey/ChangeLog b/games-arcade/insaneodyssey/ChangeLog
index db639b7a3777..2efb245c3e41 100644
--- a/games-arcade/insaneodyssey/ChangeLog
+++ b/games-arcade/insaneodyssey/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for games-arcade/insaneodyssey
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/insaneodyssey/ChangeLog,v 1.5 2006/12/06 17:02:08 wolf31o2 Exp $
+# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/insaneodyssey/ChangeLog,v 1.6 2007/03/13 21:42:26 nyhm Exp $
+
+ 13 Mar 2007; Tristan Heaven <nyhm@gentoo.org> insaneodyssey-000311.ebuild:
+ Install menu entry, bug #160227
06 Dec 2006; Chris Gianelloni <wolf31o2@gentoo.org>
insaneodyssey-000311.ebuild:
diff --git a/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild b/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild
index b87a16668873..c64a1f28ba81 100644
--- a/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild
+++ b/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild,v 1.5 2006/12/06 17:02:08 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild,v 1.6 2007/03/13 21:42:26 nyhm Exp $
inherit eutils games
@@ -12,34 +12,35 @@ SRC_URI="mirror://gentoo/io${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="x86 ~amd64 ~ppc"
+KEYWORDS="~amd64 ~ppc x86"
IUSE=""
-RDEPEND=">=media-libs/libsdl-1.2.7
- >=media-libs/sdl-mixer-1.2.5
- >=media-libs/sdl-image-1.2.3"
+DEPEND="media-libs/libsdl
+ media-libs/sdl-mixer
+ media-libs/sdl-image"
S=${WORKDIR}/${PN}
-DEST_DIR=${GAMES_DATADIR}/${PN}
-
src_unpack() {
unpack ${A}
- cd "${S}/${PN}"
+ cd "${S}"/${PN}
# Modify data load code and paths to game data
- epatch "${FILESDIR}/${P}-datafiles.patch"
+ sed -e "s:/usr/share/games:${GAMES_DATADIR}:" \
+ "${FILESDIR}"/${P}-datafiles.patch > "${T}"/datafiles.patch \
+ || die "sed datafiles.patch failed"
+ epatch "${T}"/datafiles.patch
sed -i \
- -e "/lvl/s:^:${DEST_DIR}/:" \
- -e "s:night:${DEST_DIR}/night:" \
+ -e "/lvl/s:^:${GAMES_DATADIR}/${PN}/:" \
+ -e "s:night:${GAMES_DATADIR}/${PN}/night:" \
levels.dat || die "sed levels.dat failed"
sed -i \
- -e "s:tiles.dat:${DEST_DIR}/tiles.dat:" \
- -e "s:sprites.dat:${DEST_DIR}/sprites.dat:" \
- -e "s:levels.dat:${DEST_DIR}/levels.dat:" \
- -e "s:IO_T:${DEST_DIR}/IO_T:" \
- -e "s:tiles.att:${DEST_DIR}/tiles.att:" \
- -e "s:shot:${DEST_DIR}/shot:" \
+ -e "s:tiles.dat:${GAMES_DATADIR}/${PN}/tiles.dat:" \
+ -e "s:sprites.dat:${GAMES_DATADIR}/${PN}/sprites.dat:" \
+ -e "s:levels.dat:${GAMES_DATADIR}/${PN}/levels.dat:" \
+ -e "s:IO_T:${GAMES_DATADIR}/${PN}/IO_T:" \
+ -e "s:tiles.att:${GAMES_DATADIR}/${PN}/tiles.att:" \
+ -e "s:shot:${GAMES_DATADIR}/${PN}/shot:" \
io.cpp || die "sed io.cpp failed"
sed -i \
-e 's:\[32:[100:' \
@@ -48,8 +49,10 @@ src_unpack() {
src_install() {
cd ${PN}
- dogamesbin insaneodyssey || die "dogamesbin failed"
- insinto "${DEST_DIR}"
+ dogamesbin ${PN} || die "dogamesbin failed"
+ insinto "${GAMES_DATADIR}"/${PN}
doins *bmp *png *dat *att *lvl *wav *mod *IT || die "doins failed"
+ newicon west00r.png ${PN}.png
+ make_desktop_entry ${PN} "Insane Odyssey"
prepgamesdirs
}