You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-arcade/insaneodyssey/insaneodyssey-000311-r1.ebuild

61 lines
1.4 KiB

# 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"
}