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/methane |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/methane')
-rw-r--r-- | games-arcade/methane/Manifest | 6 | ||||
-rw-r--r-- | games-arcade/methane/files/methane-1.5.1-gentoo.patch | 62 | ||||
-rw-r--r-- | games-arcade/methane/metadata.xml | 11 | ||||
-rw-r--r-- | games-arcade/methane/methane-1.5.1.ebuild | 43 |
4 files changed, 122 insertions, 0 deletions
diff --git a/games-arcade/methane/Manifest b/games-arcade/methane/Manifest new file mode 100644 index 000000000000..4df10fd78c33 --- /dev/null +++ b/games-arcade/methane/Manifest @@ -0,0 +1,6 @@ +AUX methane-1.5.1-gentoo.patch 2873 SHA256 b8790425b950bc747426fd69fad5025243d94762b6403fe220878de67aedc56c SHA512 21d117144cd1bc1813cea80ed07f18f046a1600449bc1be231cec46e6a2c185c30b572ccdc921e8333e0d32ace2c65b1821c61a726f8ced4be094cafa5fb3768 WHIRLPOOL 92c97f11b8a834b9d4fbd0d5befa7981d05f06842250791e958beb5a109f00967b9b072feb92971b05e5cba0d07ddf3b28ee8002eb77f4cef9310a4f41d5e373 +DIST methane-1.5.1.tgz 1057881 SHA256 ac1de7009e638c784b4d413b56a4387be94a31bd5fe3050db7b51e39ccfdd248 SHA512 3506f288179a127f8508bd9d4225618d8dcd93794c559822ed2836bb46a318ce3c199f951f564064091b1125375118f2d64c50a27059dcd0e49c8379fa8c3155 WHIRLPOOL b8f52b981b0a6789b4d854548787810c994c87792b57f150af8ed0d8819dc057e38a04edf1ed5791ab24cba7a7eec66a40e5e71d5260dbabe1c110c8e2044cf4 +EBUILD methane-1.5.1.ebuild 1093 SHA256 168dcde14f90953a0de202d550c5d351ea931c06eda043eed2a68f1b17a7c247 SHA512 5a298b8251acc7d7910feeeec81d8d765e1ef3c3b131d5a4fc4d13e2765a4ba9f4be8aa5ccde06eb506b34eb447b9d85e767c6a46dcf99004ee17cb1d734157c WHIRLPOOL 281d87511067f1211bdff942b6f5fbe835a3b681b38c629f32bf71018c84816032a157307d46664ae8a7ecfc8b4e988ad4c09e5e475ec226278fb415fba20386 +MISC ChangeLog 2748 SHA256 76eee345059ec90592955769cf9ff9caaa4de6f176106cae40c9d57f48faffa6 SHA512 f7cf96c10efef9d1ffbf83e7c70701ce6f8097710d9f96e943054287d757a191661f4bb615bbc86efba043730cc5c51383c68df18df5c3c2558b772a9b547270 WHIRLPOOL 7b7ffc69f3aec1ec4d52b4834b93a712ba5ec132d65c59fd96c81afb7993d9ba97960caa18fa72b830dd21842ad4418419c64b9d5469cfa68932983aa1daab27 +MISC ChangeLog-2015 3343 SHA256 e21df5d21b5a2c054b553aad4249ba872a80e49096545e1c3e8f2d7dfaecf6c1 SHA512 fb224f2053c7ca37c5a672faa4b2346db2cd845b9fa76391cd51b6745848f3dd1b7239a05637e40c58772473514fbe68a847d9534997dec795003a68f20a31ea WHIRLPOOL 43ea4c0df60daf3eb6788c25603b22ec109622488dd5a22fd913663b2851689323b2bfe4d6cdb8c6efa27ab1e04ff3acba0ac9851281540d4f206e0ad306d50b +MISC metadata.xml 330 SHA256 2e6f52f6e3334996d2c9e95260c9b61ce14c32fe42fc3b85d18195b15527eb6b SHA512 fbb2b283c78c2952bb974a7b247ad80e4d1a9c1d8af47fa13e3d48fc91c9372c09b04212c55c6b06bbc939ea55e64c42bdd6fbae7cbb60c8fa6ed60f48305960 WHIRLPOOL b6000bd5598b4e42a2d457423b13923db78423bb3c57b9834aeee87da0578f634d073f9f5150bd47b2b9dabaa4acf12ca5e97ba9ce06fbe247414cee31cb1c0a diff --git a/games-arcade/methane/files/methane-1.5.1-gentoo.patch b/games-arcade/methane/files/methane-1.5.1-gentoo.patch new file mode 100644 index 000000000000..9e49ecdff25c --- /dev/null +++ b/games-arcade/methane/files/methane-1.5.1-gentoo.patch @@ -0,0 +1,62 @@ +--- Makefile.old 2012-11-26 18:58:48.201837870 +0100 ++++ Makefile 2012-11-27 12:30:16.038998128 +0100 +@@ -1,5 +1,5 @@ +-METHANE_FLAGS = -DENABLE_SOUND `pkg-config --cflags clanCore-2.2 clanDisplay-2.2 clanApp-2.2 clanGL-2.2 clanGL1-2.2 clanSWRender-2.2 clanSound-2.2 clanMikMod-2.2` +-METHANE_LIBS = `pkg-config --libs clanCore-2.2 clanDisplay-2.2 clanApp-2.2 clanGL-2.2 clanGL1-2.2 clanSWRender-2.2 clanSound-2.2 clanMikMod-2.2` ++METHANE_FLAGS = -DENABLE_SOUND `pkg-config --cflags clanCore-2.3 clanDisplay-2.3 clanApp-2.3 clanGL-2.3 clanGL1-2.3 clanSWRender-2.3 clanSound-2.3 clanMikMod-2.3` ++METHANE_LIBS = `pkg-config --libs clanCore-2.3 clanDisplay-2.3 clanApp-2.3 clanGL-2.3 clanGL1-2.3 clanSWRender-2.3 clanSound-2.3 clanMikMod-2.3` + + OBJF = build/game.o build/baddie.o build/methane.o build/target.o build/maps.o build/gfxoff.o build/mapdata.o build/objlist.o build/doc.o build/bitdraw.o build/global.o build/suck.o build/power.o build/goodie.o build/bititem.o build/player.o build/weapon.o build/bitgroup.o build/boss.o build/sound.o build/gasobj.o build/misc.o + +@@ -10,7 +10,7 @@ + @echo "=================================" + + methane: ${OBJF} +- g++ ${CXXFLAGS} ${OBJF} -o methane ${METHANE_LIBS} ++ $(CXX) ${LDFLAGS} ${CXXFLAGS} ${OBJF} -o methane ${METHANE_LIBS} + + clean: + @rm -Rf build +@@ -23,6 +23,6 @@ + build/%.o : sources/%.cpp + @echo " Compiling $<..." + @if [ ! -d build ]; then mkdir build; fi +- gcc ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ ++ $(CXX) ${CXXFLAGS} ${METHANE_FLAGS} -c $< -o $@ + + +--- sources/methane.cpp.old 2012-11-27 13:49:22.993003266 +0100 ++++ sources/methane.cpp 2012-11-27 17:37:23.051913777 +0100 +@@ -80,15 +80,15 @@ + return 0; + } + +- CL_AutoPtr<CL_SetupSound> setup_sound; +- CL_AutoPtr<CL_SoundOutput> sound_output; +- CL_AutoPtr<CL_SetupMikMod> setup_mikmod; ++ CL_UniquePtr<CL_SetupSound> setup_sound; ++ CL_UniquePtr<CL_SoundOutput> sound_output; ++ CL_UniquePtr<CL_SetupMikMod> setup_mikmod; + + if (GLOBAL_SoundEnable) + { +- setup_sound = new CL_SetupSound; +- sound_output = new CL_SoundOutput(44100); +- setup_mikmod = new CL_SetupMikMod; ++ setup_sound = cl_move(CL_UniquePtr<CL_SetupSound>(new CL_SetupSound)); ++ sound_output = cl_move(CL_UniquePtr<CL_SoundOutput>(new CL_SoundOutput(44100))); ++ setup_mikmod = cl_move(CL_UniquePtr<CL_SetupMikMod>(new CL_SetupMikMod)); + } + + // Set the video mode +--- sources/target.cpp.old 2012-11-28 21:34:32.666878913 +0100 ++++ sources/target.cpp 2012-11-28 21:35:16.371247221 +0100 +@@ -132,7 +132,7 @@ + CL_GraphicContext gc = m_pWindow->get_gc(); + + // Find the resources directory: +- CL_String resource_dir = CL_Directory::get_resourcedata("methane"); ++ CL_String resource_dir = "@GENTOO_DATADIR@/methane/"; + CL_String dataname("page_01.png"); + CL_String filename = resource_dir + dataname; + if (!CL_FileHelp::file_exists(filename)) diff --git a/games-arcade/methane/metadata.xml b/games-arcade/methane/metadata.xml new file mode 100644 index 000000000000..4df86fb4c243 --- /dev/null +++ b/games-arcade/methane/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <upstream> + <remote-id type="sourceforge">methane</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/methane/methane-1.5.1.ebuild b/games-arcade/methane/methane-1.5.1.ebuild new file mode 100644 index 000000000000..92ace93c3b7a --- /dev/null +++ b/games-arcade/methane/methane-1.5.1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils flag-o-matic games + +DESCRIPTION="Port from an old amiga game" +HOMEPAGE="http://methane.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +RDEPEND="dev-games/clanlib:2.3[opengl,mikmod]" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \ + sources/target.cpp || die + + # fix weird parallel make issue wrt #450422 + mkdir build || die + append-cxxflags -Wno-narrowing # build with gcc5 (bug #573788) +} + +src_install() { + dogamesbin methane + insinto "${GAMES_DATADIR}"/${PN} + doins resources/* + dodir "${GAMES_STATEDIR}" + touch "${D}/${GAMES_STATEDIR}"/methanescores + fperms g+w "${GAMES_STATEDIR}"/methanescores + newicon docs/puff.gif ${PN}.gif + make_desktop_entry ${PN} "Super Methane Brothers" /usr/share/pixmaps/${PN}.gif + dodoc authors.txt history.txt readme.txt + dohtml docs/* + prepgamesdirs +} |