summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2018-04-17 22:28:57 +0200
committerPacho Ramos <pacho@gentoo.org>2018-04-17 23:00:44 +0200
commita2e257bde539a863a223e1aab8acd2e57f70a46e (patch)
tree12a9a47a45e3966573405291e0c96642788c15c3 /games-arcade/insaneodyssey/insaneodyssey-000311-r1.ebuild
parentgames-arcade/holotz-castle: Drop old (diff)
downloadgentoo-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/insaneodyssey-000311-r1.ebuild')
-rw-r--r--games-arcade/insaneodyssey/insaneodyssey-000311-r1.ebuild60
1 files changed, 60 insertions, 0 deletions
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"
+}