diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/insaneodyssey |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/insaneodyssey')
5 files changed, 152 insertions, 0 deletions
diff --git a/games-arcade/insaneodyssey/Manifest b/games-arcade/insaneodyssey/Manifest new file mode 100644 index 000000000000..c25032bd15ec --- /dev/null +++ b/games-arcade/insaneodyssey/Manifest @@ -0,0 +1,7 @@ +AUX insaneodyssey-000311-datafiles.patch 1601 SHA256 5627475b431630ae8a9994ebf85e8c9b475e0f77fc3f5daf30c222f3f76570fb SHA512 8ad0483bd1b068f8350ccc9f8b3c26f8a3be45c8a6f20dc6bd26f285d7888511f856c4487316a11feb916b7bad862e5c51e8af286d984086678663c8e315a4f4 WHIRLPOOL 65071fa66505d3b3f301024b2be10a6ec829a2e210af80b30e79f6aef8f37e43059dfacf1e167c1f464087b523a5ca1ee0ac7b56738e8e2b33394c0634fc9ab3 +AUX insaneodyssey-000311-gcc6.patch 416 SHA256 065c48d9bf83a92b8fd653735d6bf109598cc4c44c891d880a33f0776be0c548 SHA512 d68dd504a93c4678c2db821e51074bfa17b79a5c6dc4a7c42d5654cb1fb776a0e6d00c118d8d22555068c3d61c1708cf08039900664ecaf51f8967fda558e538 WHIRLPOOL cb80cf370b1d831d05ef381c230f59565ec1942c087558ee2b284337c383bb917bb31abead5a0e5c075fbd5f20b10f0267e6e526cb2c3a05a8874c47dd55dc73 +DIST io000311.tar.gz 839950 SHA256 72e7dd8b1b87dab6772ce21576ef048d6b34b551449af9c7580ae53f006e704f SHA512 9fbf79daf1886c31a6309036cf382c2e175e3c280d6d5aa822971e977e97227f4290474c272afd7ed8218b2cc7e66b407b37522207b30225a41488201a244d96 WHIRLPOOL bb1e4e3eeb3d9780f6b9b28315e93f11a21a751097b910b279a5889cc25021f1f09bb8f585342e9ba9b4e56c41aad647b109271b366c58626ca93c563459d92b +EBUILD insaneodyssey-000311.ebuild 1603 SHA256 cdf420faa64b40d4d9cb6a50be0d30140db20a9d51924b11d4fbfb6a72e4ec1f SHA512 b2921f7ce731da3c8f5abacccf51181667be6f5b56f3e3befcb8a0108b4ab3b9da79a2f6b77f3a0dae3eb2d0fd50001c59880e12a56210b85be7ff27bf4526f3 WHIRLPOOL d5f5dc9c9b2fa723c9d35a53cf801bb3225980c9220f65f563ec11d095280edc4409f8f6061435cf1a77273a0188fda54d588add6d9c2796d2b1c003c8bb3ea0 +MISC ChangeLog 2498 SHA256 f0a6352ee551257de8cf85c984a0db34550535234d95d83de991c7ca55a91834 SHA512 ab52aa334ce3e87d5b821ebbc32d6bce4f6520dd13bc3ce72ecab2b32f5afdf4a0c5760a5be3b9b44af161c67f3bac6591eb1cdb8341b26306eadd2bf270895b WHIRLPOOL ea6759f706c872a8fe5ae403dcf59a1186939dffdf13d08d621d46326dee4c1dd7886c0375dbad1b6f9272cd6b53f030894b18d7acee0ecd6f2c7990933a2888 +MISC ChangeLog-2015 1268 SHA256 a9107db143767f698e1e2aaadcc8cbda8dd6ec524e2bb1bf81642372f050ea64 SHA512 980d271e42779fc4dc5a56874ea1a2a51debf1c5c3b931a455a5d3bb5c5379d9ea38a735e1f952ae1a0e29b4c04c83b4574dfe0ede335e729bf3083e542c34be WHIRLPOOL ff95e228b52af4ec206c153dfe737e8ac10e61b450653f4c3c4da123ac8022278f6854da9d6f9012f8f60c3d84cc4c1c53901e92ef5097f263b007c47dafe9f2 +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch new file mode 100644 index 000000000000..417d8396e19b --- /dev/null +++ b/games-arcade/insaneodyssey/files/insaneodyssey-000311-datafiles.patch @@ -0,0 +1,55 @@ +--- io.cpp.orig 2004-06-01 19:11:16.000000000 +0300 ++++ io.cpp 2004-06-01 19:21:14.000000000 +0300 +@@ -42,7 +42,11 @@ + { + SDL_Surface *image, *surface; + +- image = IMG_Load(datafile); ++ char data_path[100]; ++ strcpy(data_path, "/usr/share/games/insaneodyssey/"); ++ strcat(data_path, datafile); ++ ++ image = IMG_Load(data_path); + if ( image == NULL ) { + fprintf(stderr, "Couldn't load image %s\n", + datafile); +@@ -67,7 +71,11 @@ + { + SDL_Surface *image, *surface; + +- image = IMG_Load(datafile); ++ char data_path[100]; ++ strcpy(data_path, "/usr/share/games/insaneodyssey/"); ++ strcat(data_path, datafile); ++ ++ image = IMG_Load(data_path); + if ( image == NULL ) { + fprintf(stderr, "Couldn't load image %s\n", datafile); + return(NULL); +@@ -87,8 +95,12 @@ + { + SDL_Surface *image; + ++ char data_path[100]; ++ strcpy(data_path, "/usr/share/games/insaneodyssey/"); ++ strcat(data_path, datafile); ++ + /* Load the BMP file into a surface */ +- image = IMG_Load(datafile); ++ image = IMG_Load(data_path); + if ( image == NULL ) { + fprintf(stderr, "Couldn't load %s: %s\n", datafile, + SDL_GetError()); +@@ -493,7 +493,11 @@ + if ( fp != NULL ) + while( !feof(fp) && j < MAXTILES ) + { +- fscanf ( fp, "%d %d %d\n", &tileatt[j].nexttile, &tileatt[j].bits, &tileatt[j].wait ); ++ int nexttile, bits, wait; ++ fscanf(fp, "%d %d %d\n", &nexttile, &bits, &wait); ++ tileatt[j].nexttile = nexttile; ++ tileatt[j].bits = bits; ++ tileatt[j].wait = wait; + j++; + } + else diff --git a/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch b/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch new file mode 100644 index 000000000000..74b4bf644d49 --- /dev/null +++ b/games-arcade/insaneodyssey/files/insaneodyssey-000311-gcc6.patch @@ -0,0 +1,21 @@ +Bug: https://bugs.gentoo.org/600894 + +--- a/insaneodyssey/io.cpp ++++ b/insaneodyssey/io.cpp +@@ -22,6 +22,7 @@ + #include <stdlib.h> + #include <stdio.h> + #include <string.h> ++#include <cmath> + + #include <SDL/SDL.h> + +@@ -894,7 +895,7 @@ + else + { + if ( jumping ) +- yspeed = -jumpheight - abs(xspeed)/4; ++ yspeed = -jumpheight - std::abs(xspeed)/4; + } + + short TempX = (x + width/2) / TILESIZE; diff --git a/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild b/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild new file mode 100644 index 000000000000..74763f4692e3 --- /dev/null +++ b/games-arcade/insaneodyssey/insaneodyssey-000311.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +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() { + cd ${PN} + + # Modify data load code and paths to game data + sed -e "s:/usr/share/games:${GAMES_DATADIR}:" \ + "${FILESDIR}"/${P}-datafiles.patch > "${T}"/datafiles.patch \ + || die + epatch "${T}"/datafiles.patch + + epatch "${FILESDIR}"/${P}-gcc6.patch + + sed -i \ + -e "/lvl/s:^:${GAMES_DATADIR}/${PN}/:" \ + -e "s:night:${GAMES_DATADIR}/${PN}/night:" \ + levels.dat || die + sed -i \ + -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 -i \ + -e 's:\[32:[100:' \ + io.h || die +} + +src_install() { + cd ${PN} + dogamesbin ${PN} + insinto "${GAMES_DATADIR}"/${PN} + doins *bmp *png *dat *att *lvl *wav *mod *IT + newicon west00r.png ${PN}.png + make_desktop_entry ${PN} "Insane Odyssey" + prepgamesdirs +} diff --git a/games-arcade/insaneodyssey/metadata.xml b/games-arcade/insaneodyssey/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/insaneodyssey/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +</pkgmetadata> |