summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-07-05 02:23:20 +0200
committerDavid Seifert <soap@gentoo.org>2020-07-05 02:23:20 +0200
commit61e5647d04e81d0f715d7adb527e94f647c0931c (patch)
tree132236f63085a6c6b874415b901868eda3690f03 /games-arcade/insaneodyssey
parentgames-arcade/tuxpuck: Fix build system (diff)
downloadgentoo-61e5647d04e81d0f715d7adb527e94f647c0931c.tar.gz
gentoo-61e5647d04e81d0f715d7adb527e94f647c0931c.tar.bz2
gentoo-61e5647d04e81d0f715d7adb527e94f647c0931c.zip
games-arcade/insaneodyssey: Re-bootstrap autotools
Closes: https://bugs.gentoo.org/724418 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-arcade/insaneodyssey')
-rw-r--r--games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch4
-rw-r--r--games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch4
-rw-r--r--games-arcade/insaneodyssey/insaneodyssey-000311-r1.ebuild49
3 files changed, 31 insertions, 26 deletions
diff --git a/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch
index 3aab4eeaf9da..f4114cfc8e88 100644
--- a/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch
+++ b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch
@@ -1,5 +1,5 @@
---- a/io.cpp.orig 2004-06-01 19:11:16.000000000 +0300
-+++ b/io.cpp 2004-06-01 19:21:14.000000000 +0300
+--- a/insaneodyssey/io.cpp
++++ b/insaneodyssey/io.cpp
@@ -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 4fd35438d24b..74b4bf644d49 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/io.cpp
-+++ b/io.cpp
+--- a/insaneodyssey/io.cpp
++++ b/insaneodyssey/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
index 0383afc0b2b3..a96e26451519 100644
--- a/games-arcade/insaneodyssey/insaneodyssey-000311-r1.ebuild
+++ b/games-arcade/insaneodyssey/insaneodyssey-000311-r1.ebuild
@@ -1,8 +1,9 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
-inherit desktop
+EAPI=7
+
+inherit autotools desktop
DESCRIPTION="Help West Muldune escape from a futuristic mental hospital"
HOMEPAGE="http://members.fortunecity.com/rivalentertainment/iox.html"
@@ -13,30 +14,28 @@ SRC_URI="mirror://gentoo/io${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-DEPEND="media-libs/libsdl[sound,video]
+DEPEND="
+ media-libs/libsdl[sound,video]
media-libs/sdl-mixer
- media-libs/sdl-image
-"
+ media-libs/sdl-image"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
-src_prepare() {
- default
-
- cd ${PN}
-
+PATCHES=(
# Modify data load code and paths to game data
- eapply "${FILESDIR}"/${P}-datafiles.patch
+ "${FILESDIR}"/${P}-datafiles.patch
+ "${FILESDIR}"/${P}-gcc6.patch
+)
- eapply "${FILESDIR}"/${P}-gcc6.patch
+src_prepare() {
+ default
sed -i \
-e "/lvl/s:^:/usr/share/${PN}/:" \
-e "s:night:/usr/share/${PN}/night:" \
- levels.dat || die
+ insaneodyssey/levels.dat || die
sed -i \
-e "s:tiles.dat:/usr/share/${PN}/tiles.dat:" \
-e "s:sprites.dat:/usr/share/${PN}/sprites.dat:" \
@@ -44,17 +43,23 @@ src_prepare() {
-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
+ insaneodyssey/io.cpp || die
sed -i \
-e 's:\[32:[100:' \
- io.h || die
+ insaneodyssey/io.h || die
+
+ mv configure.{in,ac} || die
+ eautoreconf
}
src_install() {
- cd ${PN}
- dobin ${PN}
- insinto /usr/share/${PN}
+ cd insaneodyssey || die
+
+ dobin insaneodyssey
+
+ insinto /usr/share/insaneodyssey
doins *bmp *png *dat *att *lvl *wav *mod *IT
- newicon west00r.png ${PN}.png
- make_desktop_entry ${PN} "Insane Odyssey"
+
+ newicon west00r.png insaneodyssey.png
+ make_desktop_entry insaneodyssey "Insane Odyssey"
}