diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-05-05 11:40:51 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-05-05 11:40:51 +0000 |
commit | 696f7f2eb4df721f36689fe987b002b276bd7ea3 (patch) | |
tree | 0b0cc83c9228930a97949b3b5c4110afb797586f /games-puzzle | |
parent | removed patch again, other programs dont like it (diff) | |
download | historical-696f7f2eb4df721f36689fe987b002b276bd7ea3.tar.gz historical-696f7f2eb4df721f36689fe987b002b276bd7ea3.tar.bz2 historical-696f7f2eb4df721f36689fe987b002b276bd7ea3.zip |
Initial import. Ebuild by Alexandru Toma <flash3001@yahoo.com>. Closing bug #52723.
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'games-puzzle')
-rw-r--r-- | games-puzzle/mures/ChangeLog | 12 | ||||
-rw-r--r-- | games-puzzle/mures/Manifest | 6 | ||||
-rw-r--r-- | games-puzzle/mures/files/digest-mures-0.5 | 1 | ||||
-rw-r--r-- | games-puzzle/mures/files/mures-0.5-save.patch | 20 | ||||
-rw-r--r-- | games-puzzle/mures/files/mures-0.5-screenshot.patch | 12 | ||||
-rw-r--r-- | games-puzzle/mures/metadata.xml | 5 | ||||
-rw-r--r-- | games-puzzle/mures/mures-0.5.ebuild | 96 |
7 files changed, 152 insertions, 0 deletions
diff --git a/games-puzzle/mures/ChangeLog b/games-puzzle/mures/ChangeLog new file mode 100644 index 000000000000..b387264fafe1 --- /dev/null +++ b/games-puzzle/mures/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for games-puzzle/mures +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/mures/ChangeLog,v 1.1 2005/05/05 11:40:51 wolf31o2 Exp $ + +*mures-0.5 (05 May 2005) + + 05 May 2005; Chris Gianelloni <wolf31o2@gentoo.org> + +files/mures-0.5-save.patch, +files/mures-0.5-screenshot.patch, + +metadata.xml, +mures-0.5.ebuild: + Initial import. Ebuild by Alexandru Toma <flash3001@yahoo.com>. Closing bug + #52723. + diff --git a/games-puzzle/mures/Manifest b/games-puzzle/mures/Manifest new file mode 100644 index 000000000000..854c1743cf77 --- /dev/null +++ b/games-puzzle/mures/Manifest @@ -0,0 +1,6 @@ +MD5 efc521f70201379fa2cbfcde310419fd mures-0.5.ebuild 2515 +MD5 470e49fced6b968ca9c98f6c5b9514d1 ChangeLog 482 +MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158 +MD5 95e8c1b809e30232c015108eb2e9b57e files/mures-0.5-save.patch 468 +MD5 e03be4f1bf45184b7015ebbe92eb28cb files/mures-0.5-screenshot.patch 319 +MD5 a4e3f7cf1991cadcaf3a1b618208039e files/digest-mures-0.5 61 diff --git a/games-puzzle/mures/files/digest-mures-0.5 b/games-puzzle/mures/files/digest-mures-0.5 new file mode 100644 index 000000000000..2c706483e235 --- /dev/null +++ b/games-puzzle/mures/files/digest-mures-0.5 @@ -0,0 +1 @@ +MD5 ab2061af131b330d197f947623bf74c4 mures-0.5.tar.gz 638528 diff --git a/games-puzzle/mures/files/mures-0.5-save.patch b/games-puzzle/mures/files/mures-0.5-save.patch new file mode 100644 index 000000000000..20abd91308b6 --- /dev/null +++ b/games-puzzle/mures/files/mures-0.5-save.patch @@ -0,0 +1,20 @@ +--- gi_sdl.c.orig 2004-06-01 21:51:58.000000000 +0300 ++++ gi_sdl.c 2004-06-01 22:13:59.000000000 +0300 +@@ -606,6 +606,7 @@ + { + int i,found; + gi_sdl_data *data = &GI; ++ char temp_path[70]; + + switch(e.type) { + +@@ -714,7 +715,8 @@ + sim_start(&g->sim); + break; + case SDLK_F6: +- map_save(&g->sim.map, "saved.mus"); ++ sprintf(temp_path, "%s/saved.mus", getenv("HOME")); ++ map_save(&g->sim.map, temp_path); + break; + case SDLK_F1: + game_restart(g); diff --git a/games-puzzle/mures/files/mures-0.5-screenshot.patch b/games-puzzle/mures/files/mures-0.5-screenshot.patch new file mode 100644 index 000000000000..992556346acb --- /dev/null +++ b/games-puzzle/mures/files/mures-0.5-screenshot.patch @@ -0,0 +1,12 @@ +--- output.c.orig 2004-06-01 21:59:57.000000000 +0300 ++++ output.c 2004-06-01 22:04:50.000000000 +0300 +@@ -215,7 +215,8 @@ + + void output_screenshot() + { +- char *l = "shot.bmp"; ++ char l[70]; ++ sprintf(l, "%s/mures_shot.bmp", getenv("HOME")); + SDL_SaveBMP(screen, l); + printf("Screenshot saved to %s.\n", l); + } diff --git a/games-puzzle/mures/metadata.xml b/games-puzzle/mures/metadata.xml new file mode 100644 index 000000000000..d3c2cc926f0b --- /dev/null +++ b/games-puzzle/mures/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +</pkgmetadata> diff --git a/games-puzzle/mures/mures-0.5.ebuild b/games-puzzle/mures/mures-0.5.ebuild new file mode 100644 index 000000000000..6bd688dd013f --- /dev/null +++ b/games-puzzle/mures/mures-0.5.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/mures/mures-0.5.ebuild,v 1.1 2005/05/05 11:40:51 wolf31o2 Exp $ + +inherit eutils games + +DESCRIPTION="A clone of Sega's Chu Chu Rocket" +HOMEPAGE="http://mures.sourceforge.net/" +SRC_URI="mirror://sourceforge/mures/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="opengl" + +DEPEND=">=media-libs/libsdl-1.2.3 + >=media-libs/sdl-image-1.2.3 + >=media-libs/sdl-net-1.2.5 + >=media-libs/sdl-ttf-2.0.6 + opengl? ( virtual/opengl )" + +dir="${GAMES_DATADIR}/${PN}" + +src_unpack() { + unpack ${A} + cd ${S} + + # Disable OpenGL support if USE flag is not set + if use !opengl ; then + einfo "Disabling OpenGL" + sed -i \ + -e 's: -DHAVE_GL::' \ + -e 's: -lGL::' \ + configure.in || die "sed configure.in failed" + sed -i -e 's:./configure \$\*::' \ + autogen.sh || die "sed autogen.sh failed" + fi + + cd src + + # Apply savegame patch. Game will be saved in ~/saved.mus + epatch ${FILESDIR}/${P}-save.patch + + # Apply screenshot save patch. It will be saved as ~/mures_shot.bmp + epatch ${FILESDIR}/${P}-screenshot.patch + + # Modify game data & scrips path + sed -i \ + -e "s:gui/:${dir}/gui/:" \ + -e "s:sounds/:${dir}/sounds/:" \ + gui.c || die "sed gui.c failed" + sed -i \ + -e "s:images/:${dir}/images/:" \ + -e "s:textures/:${dir}/textures/:" \ + go_sdl.c || die "sed go_sdl.c failed" + sed -i \ + -e "s:textures/:${dir}/textures/:" \ + go_gl.c || die "sed go_gl.c failed" + sed -i \ + -e "s:input.lua:${dir}/input.lua:" \ + gi_sdl.c || die "sed gi_sdl.c failed" + sed -i \ + -e "s:images/:${dir}/images/:" \ + anim.c output.c || die "sed anim.c output.c failed" + sed -i \ + -e "s:maps/:${dir}/maps/:" \ + load_maps.lua || die "sed load_maps.lua failed" + sed -i \ + -e "s:sounds/:${dir}/sounds/:" \ + audio_sdl.c || die "sed audio_sdl.c failed" + sed -i \ + -e "s:load_maps.lua:${dir}/load_maps.lua:" \ + map.c || die "sed map.c failed" +} + +src_compile() { + if use !opengl ; then + ./autogen.sh + fi + egamesconf || die "egamesconf failed" + emake || die "emake failed" +} + +src_install() { + # Remove makefiles before installation + rm -f src/*/Makefile* || die "removing makefiles" + insinto ${dir} + doins -r src/gui src/images src/sounds src/textures src/maps src/*.lua \ + || die "copying data files" + dodoc README TODO ChangeLog AUTHORS || die "dodoc failed" + exeinto ${dir} + doexe src/mures || die "doexe failed" + games_make_wrapper mures ./mures ${dir} + + prepgamesdirs +} |