diff options
author | Pacho Ramos <pacho@gentoo.org> | 2018-04-17 22:28:57 +0200 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2018-04-17 23:00:44 +0200 |
commit | a2e257bde539a863a223e1aab8acd2e57f70a46e (patch) | |
tree | 12a9a47a45e3966573405291e0c96642788c15c3 /games-arcade/insaneodyssey | |
parent | games-arcade/holotz-castle: Drop old (diff) | |
download | gentoo-a2e257bde539a863a223e1aab8acd2e57f70a46e.tar.gz gentoo-a2e257bde539a863a223e1aab8acd2e57f70a46e.tar.bz2 gentoo-a2e257bde539a863a223e1aab8acd2e57f70a46e.zip |
games-arcade/insaneodyssey: Stop using games.eclass
Package-Manager: Portage-2.3.28, Repoman-2.3.9
Diffstat (limited to 'games-arcade/insaneodyssey')
3 files changed, 64 insertions, 4 deletions
diff --git a/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch index 417d8396e19b..3aab4eeaf9da 100644 --- a/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch +++ b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch @@ -1,5 +1,5 @@ ---- io.cpp.orig 2004-06-01 19:11:16.000000000 +0300 -+++ io.cpp 2004-06-01 19:21:14.000000000 +0300 +--- a/io.cpp.orig 2004-06-01 19:11:16.000000000 +0300 ++++ b/io.cpp 2004-06-01 19:21:14.000000000 +0300 @@ -42,7 +42,11 @@ { SDL_Surface *image, *surface; diff --git a/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch b/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch index 74b4bf644d49..4fd35438d24b 100644 --- a/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch +++ b/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch @@ -1,7 +1,7 @@ Bug: https://bugs.gentoo.org/600894 ---- a/insaneodyssey/io.cpp -+++ b/insaneodyssey/io.cpp +--- a/io.cpp ++++ b/io.cpp @@ -22,6 +22,7 @@ #include <stdlib.h> #include <stdio.h> diff --git a/games-arcade/insaneodyssey/insaneodyssey-000311-r1.ebuild b/games-arcade/insaneodyssey/insaneodyssey-000311-r1.ebuild new file mode 100644 index 000000000000..0383afc0b2b3 --- /dev/null +++ b/games-arcade/insaneodyssey/insaneodyssey-000311-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit desktop + +DESCRIPTION="Help West Muldune escape from a futuristic mental hospital" +HOMEPAGE="http://members.fortunecity.com/rivalentertainment/iox.html" +# Upstream has download issues. +#SRC_URI="http://members.fortunecity.com/rivalentertainment/io${PV}.tar.gz" +SRC_URI="mirror://gentoo/io${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="media-libs/libsdl[sound,video] + media-libs/sdl-mixer + media-libs/sdl-image +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}" + +src_prepare() { + default + + cd ${PN} + + # Modify data load code and paths to game data + eapply "${FILESDIR}"/${P}-datafiles.patch + + eapply "${FILESDIR}"/${P}-gcc6.patch + + sed -i \ + -e "/lvl/s:^:/usr/share/${PN}/:" \ + -e "s:night:/usr/share/${PN}/night:" \ + levels.dat || die + sed -i \ + -e "s:tiles.dat:/usr/share/${PN}/tiles.dat:" \ + -e "s:sprites.dat:/usr/share/${PN}/sprites.dat:" \ + -e "s:levels.dat:/usr/share/${PN}/levels.dat:" \ + -e "s:IO_T:/usr/share/${PN}/IO_T:" \ + -e "s:tiles.att:/usr/share/${PN}/tiles.att:" \ + -e "s:shot:/usr/share/${PN}/shot:" \ + io.cpp || die + sed -i \ + -e 's:\[32:[100:' \ + io.h || die +} + +src_install() { + cd ${PN} + dobin ${PN} + insinto /usr/share/${PN} + doins *bmp *png *dat *att *lvl *wav *mod *IT + newicon west00r.png ${PN}.png + make_desktop_entry ${PN} "Insane Odyssey" +} |