summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2012-11-29 08:24:21 +0000
committerAlfredo Tupone <tupone@gentoo.org>2012-11-29 08:24:21 +0000
commit46a6d4147012461c1ceb072a50bcadc4b1786501 (patch)
tree948c9403175068982cb6616379fdbaae6f1735ff /games-arcade
parentadd threads use dep for boost (bug #444252) (diff)
downloadgentoo-2-46a6d4147012461c1ceb072a50bcadc4b1786501.tar.gz
gentoo-2-46a6d4147012461c1ceb072a50bcadc4b1786501.tar.bz2
gentoo-2-46a6d4147012461c1ceb072a50bcadc4b1786501.zip
Version bump to 1.5.1 Bug #349548
(Portage version: 2.1.11.31/cvs/Linux i686, signed Manifest commit with key 0145142D)
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/methane/ChangeLog8
-rw-r--r--games-arcade/methane/files/methane-1.5.1-gentoo.patch62
-rw-r--r--games-arcade/methane/methane-1.5.1.ebuild40
3 files changed, 109 insertions, 1 deletions
diff --git a/games-arcade/methane/ChangeLog b/games-arcade/methane/ChangeLog
index b7dcbe412b9f..11654f107b78 100644
--- a/games-arcade/methane/ChangeLog
+++ b/games-arcade/methane/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-arcade/methane
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/methane/ChangeLog,v 1.19 2012/05/04 04:22:28 jdhore Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/methane/ChangeLog,v 1.20 2012/11/29 08:24:20 tupone Exp $
+
+*methane-1.5.1 (29 Nov 2012)
+
+ 29 Nov 2012; Tupone Alfredo <tupone@gentoo.org> +methane-1.5.1.ebuild,
+ +files/methane-1.5.1-gentoo.patch:
+ Version bump to 1.5.1 Bug #349548 by Hans Meier
04 May 2012; Jeff Horelick <jdhore@gentoo.org> methane-1.4.8.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
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..119f377aadb1
--- /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 $@
++ $(CC) ${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/methane-1.5.1.ebuild b/games-arcade/methane/methane-1.5.1.ebuild
new file mode 100644
index 000000000000..d2fa167f5cf8
--- /dev/null
+++ b/games-arcade/methane/methane-1.5.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/methane/methane-1.5.1.ebuild,v 1.1 2012/11/29 08:24:20 tupone Exp $
+
+EAPI=4
+inherit eutils 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:0.8[opengl,mikmod]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}:" \
+ sources/target.cpp
+}
+
+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
+}