From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- games-puzzle/mures/Manifest | 5 ++ games-puzzle/mures/files/mures-0.5-save.patch | 33 ++++++++ games-puzzle/mures/files/mures-0.5-underlink.patch | 13 ++++ games-puzzle/mures/metadata.xml | 11 +++ games-puzzle/mures/mures-0.5-r1.ebuild | 90 ++++++++++++++++++++++ 5 files changed, 152 insertions(+) create mode 100644 games-puzzle/mures/Manifest create mode 100644 games-puzzle/mures/files/mures-0.5-save.patch create mode 100644 games-puzzle/mures/files/mures-0.5-underlink.patch create mode 100644 games-puzzle/mures/metadata.xml create mode 100644 games-puzzle/mures/mures-0.5-r1.ebuild (limited to 'games-puzzle/mures') diff --git a/games-puzzle/mures/Manifest b/games-puzzle/mures/Manifest new file mode 100644 index 000000000000..99ec18b21954 --- /dev/null +++ b/games-puzzle/mures/Manifest @@ -0,0 +1,5 @@ +AUX mures-0.5-save.patch 654 BLAKE2B 57992955c9bb850ec7f13c50039eaa02d81540abbe94dba7cc0d034d5dab3c0f63d82fcdeb666efc664494e39f47c152f84efebaa1b3c2a108b55ff5c960dacc SHA512 b1762660ecd5cd373d39957003a0e455c3f981886191955eca2ccdd54d6ce2a302f6eaed3d022ac5acd64cabed364a6c1dc6cbdf53e0fd32208ce3d12db0a187 +AUX mures-0.5-underlink.patch 300 BLAKE2B f20a6a2e2e82e0f16a9ed8f49d2cf4071d4f19c2149f12b98572e0e4a8e42e04556d02bd93675f5805dae96a496ea4586ce064ea2f33c33586a24afecab889ce SHA512 ffbd6e23fab8fff7ccb191c1fcc4f405b2c5cc6cffaa388eca11185244a5328d16b8f3301ce1dd29ba036637e281e55b08ac39c039ff187cac35f01f078ced21 +DIST mures-0.5.tar.gz 638528 BLAKE2B 35861cbc0497091c716664a6a1d38884a64981f6228637cbeb93b4be64c42bf84b8033c2f5d95f197c26436fbf621ff8322ffb5aa3dc241b50372e94a395599b SHA512 907b22adffcc0457d866da27bd11d61663c6a1eed1c0aa4b437f8e341065df86f2ab06851619e2fa4088aa0b2becaf9376bad693c83345f8d1ee862c31740eff +EBUILD mures-0.5-r1.ebuild 2079 BLAKE2B 9fded27b1529d579f3dd27673472396507f14061ea14f43c2d1997cc059241e432fd63bbdfc4bf9aefd597499f50f5069fd46072eb48b3879f48a193129414d7 SHA512 7bcaf4b664fe92b1ec3b4f5da68875daf5f6c0c64705ace569b082a6a8b6a6ed4c5609a2b3c9c7993d7b5efbcd4e56ba6b48b1b6843fec94f48466075cdac049 +MISC metadata.xml 328 BLAKE2B 10dbb393d6e09fe667ad28913d38f785c0d8d51da581bbc2fe2d19c18faea716bc901097829cc4927b6d3d0265ecd53e62635461f6bb3619cba1540b7b033c66 SHA512 f6818639d9ff510efe1dc98505eb03086d46024def2a1b5fef5273181e6eef91135ef4e7902613776da51a951c50373b5cc80848a9887d3919f7adfd9ef40f18 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..697db8ef7a28 --- /dev/null +++ b/games-puzzle/mures/files/mures-0.5-save.patch @@ -0,0 +1,33 @@ +--- a/gi_sdl.c ++++ b/gi_sdl.c +@@ -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"); ++ snprintf(temp_path, 70, "%s/.mures.save", getenv("HOME")); ++ map_save(&g->sim.map, temp_path); + break; + case SDLK_F1: + game_restart(g); + +--- a/output.c ++++ b/output.c +@@ -215,7 +215,8 @@ + + void output_screenshot() + { +- char *l = "shot.bmp"; ++ char l[70]; ++ snprintf(l, 70, "%s/mures_shot.bmp", getenv("HOME")); + SDL_SaveBMP(screen, l); + printf("Screenshot saved to %s.\n", l); + } diff --git a/games-puzzle/mures/files/mures-0.5-underlink.patch b/games-puzzle/mures/files/mures-0.5-underlink.patch new file mode 100644 index 000000000000..3acf0b0f7233 --- /dev/null +++ b/games-puzzle/mures/files/mures-0.5-underlink.patch @@ -0,0 +1,13 @@ +--- a/src/Makefile.am.old 2011-06-21 14:39:14.404333493 +0200 ++++ b/src/Makefile.am 2011-06-21 14:39:30.538340283 +0200 +@@ -1,8 +1,8 @@ + bin_PROGRAMS = mures + + mures_LDADD = \ +- -llua -L./lua +- $(STATIC_LIBS) ++ -llua -L./lua \ ++ $(STATIC_LIBS) -lm + + SUBDIRS = lua gui images maps sounds textures + diff --git a/games-puzzle/mures/metadata.xml b/games-puzzle/mures/metadata.xml new file mode 100644 index 000000000000..adf89afdd42a --- /dev/null +++ b/games-puzzle/mures/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + mures + + diff --git a/games-puzzle/mures/mures-0.5-r1.ebuild b/games-puzzle/mures/mures-0.5-r1.ebuild new file mode 100644 index 000000000000..36b51630c7e7 --- /dev/null +++ b/games-puzzle/mures/mures-0.5-r1.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools desktop + +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="~amd64 ~x86" +IUSE="opengl" + +DEPEND="media-libs/libsdl + media-libs/sdl-image + media-libs/sdl-net + media-libs/sdl-ttf + opengl? ( virtual/opengl ) +" +RDEPEND="${DEPEND}" + +dir="/usr/share/${PN}" + +src_prepare() { + default + + # Disable OpenGL support if USE flag is not set + if ! use opengl ; then + sed -i \ + -e 's: -DHAVE_GL::' \ + -e 's: -lGL::' \ + configure.in || die "sed failed" + fi + + sed -i '$ s/\\//' \ + src/lua/Makefile.am \ + src/maps/battle/Makefile.am \ + || die "sed failed" + + eapply "${FILESDIR}"/${P}-underlink.patch + + mv configure.in configure.ac + eautoreconf + + cd src + + # Save to HOME + eapply "${FILESDIR}"/${P}-save.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_install() { + # Remove makefiles before installation + rm -f src/*/Makefile* src/*/*/Makefile* || die "removing makefiles" + insinto "${dir}" + doins -r src/{gui,images,sounds,textures,maps,*.lua} + einstalldocs + dobin src/mures + newicon src/images/cat_right.png ${PN}.png + make_desktop_entry ${PN} "Mures" +} -- cgit v1.2.3