summaryrefslogtreecommitdiff
path: root/games-arcade/monster-masher
diff options
context:
space:
mode:
Diffstat (limited to 'games-arcade/monster-masher')
-rw-r--r--games-arcade/monster-masher/Manifest7
-rw-r--r--games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch16
-rw-r--r--games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch85
-rw-r--r--games-arcade/monster-masher/metadata.xml8
-rw-r--r--games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild47
5 files changed, 163 insertions, 0 deletions
diff --git a/games-arcade/monster-masher/Manifest b/games-arcade/monster-masher/Manifest
new file mode 100644
index 000000000000..181b87041e82
--- /dev/null
+++ b/games-arcade/monster-masher/Manifest
@@ -0,0 +1,7 @@
+AUX monster-masher-1.8.1-desktop.patch 470 SHA256 27a173029c9a2b523ce75e56570a9b341ed960a19fe4cfea97d443159a994639 SHA512 0779315496ccb270e3ca7f41808b39a8cf021de743bfe03ca3eae87bc21bfcd1c64e9af1626974cd833c7b060e680159bf32d3bc08466ded43183ad8e522a984 WHIRLPOOL d31e20a75d3287010d6450ff6c6953bc0013d8971700e3274e804ee565fd2c7d4d895c5d9487f5663fcd17358c637650b2f2210bbc1d7a4f6c2e28d0629fbfcf
+AUX monster-masher-1.8.1-libcanberra.patch 1835 SHA256 9f80466abcc6d65f3b872a6098cbc0ce57d0486fe3b38c2970b5c4d7e68f5fa2 SHA512 c37c8fcb2ec16c3388fbe6736b8eab5047fe4cc3e6b28413bfc438901bec45ab3aad60771fc7b2ac1b9d92ade2e98e1a38f2733bbad27522aed8986a0ddef251 WHIRLPOOL e13d92d27fe1b5c1de8a1e1c64bbcbe73d67f47d255930736d0e5b94160579f86fd22eb3b6b339de5ce9f6ced732d32a30b6810c8db448ec4d52a8a35a6df47c
+DIST monster-masher-1.8.1.tar.bz2 1042299 SHA256 09f710fe1293fc6c8791ed569d02143c238659f8b635b364f59f08ab6c5ea5b1 SHA512 250414d6fb4abea12d2fd5328fc003449680b76784bfc6c15cc05d5dfb78e45eee2d2c6d36a3bf2f3c0e055c9ee58cbfaf623f56638fa8462f5006c84057c254 WHIRLPOOL 9faba62e35585dd063a092dfc4cbe39d4a7869bfe8a1b508cd441b37eebafcc76a73b23f3c735cae33cc1df0d37bb671b609bc5f69ed6d55c656d672e85d73e2
+EBUILD monster-masher-1.8.1-r2.ebuild 1033 SHA256 9f237162516177dd68fe4904f0ed904af2fcd65a0a98d576e6c6a1903c7b10e6 SHA512 cae55543c8c042b316a67d84246553e887b35e2e3cd074ed2aba9361598141ed1bf66a24a693fc4872d8ebebcd61a0627bd93fb8d4767456549821374a3481e6 WHIRLPOOL 17fb19e78849914cb222652ff6a40a7cb55f88cd25c17cd912a3c9ce47c8d38c7366daa4e014cc6a83f39777c870715123ee483a4b95def0718532cb1ab4c625
+MISC ChangeLog 2710 SHA256 7665df1d8bf582df5596c0130f6dae2ff75947821d828b482352e9bf51bced5c SHA512 60b1e20ab7464b0943c319a07b612089007d5b111b42b66fb48ea57196e6a8c78a5c78f927401beb3477acc10de8446122d232a40abc2cf72b046e3d1716eae2 WHIRLPOOL a8fd297d524fe5972aeaea6aa697619e65171ff5812f22dfad452a78dd29852ff6958264defc65543e1ac379bd8f1e4a6e5c7ce3f1b297ef1aa2a5375d38e8f8
+MISC ChangeLog-2015 4034 SHA256 b4eedf4d3dfe2ec2a3f6c0644f7f539104b4faf93c9dc592ab2ed8059ce39689 SHA512 00ddcf63a4fa992c2b1017df73c09e31b551a6deace00840f002bd2f8e49ab21e3012982425ad661e3eebcfca6227b24db5e39f7e3f767d1aadecda799bf24cb WHIRLPOOL ecb27473cd0990e04fe58652d4581416fab60744304003f496d67e9c78439654eb2dde79acc56aa5c8c13eeab910b4572b01488130e21d4ac0fcde0e67d42287
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch b/games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch
new file mode 100644
index 000000000000..f9812802da74
--- /dev/null
+++ b/games-arcade/monster-masher/files/monster-masher-1.8.1-desktop.patch
@@ -0,0 +1,16 @@
+--- monster-masher.desktop.in.old 2014-11-23 21:20:33.967676333 +0100
++++ monster-masher.desktop.in 2014-11-23 21:21:30.518718141 +0100
+@@ -1,10 +1,9 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ _Name=Monster Masher
+ _Comment=Mash monsters and save the gnomes
+ Exec=monster-masher
+-Icon=monster-masher.png
++Icon=monster-masher
+ Terminal=false
+ Type=Application
+-Categories=GNOME;Application;Game;ArcadeGame;
+-StartupNotification=true
++Categories=GNOME;Game;
++StartupNotify=true
diff --git a/games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch b/games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch
new file mode 100644
index 000000000000..4ee47fab39fb
--- /dev/null
+++ b/games-arcade/monster-masher/files/monster-masher-1.8.1-libcanberra.patch
@@ -0,0 +1,85 @@
+Drop dependency on esound support in libgnome and replace it by libcanberra.
+
+Gentoo bug: #348605
+
+--- a/configure.ac 2008-11-09 20:52:01.000000000 +0000
++++ b/configure.ac 2011-03-06 13:08:42.000000000 +0000
+@@ -18,7 +18,8 @@
+ gconfmm-2.6 >= 2.6.0 \
+ gtkmm-2.4 >= 2.6.0 \
+ libgnomecanvasmm-2.6 >= 2.6.0 \
+- libglademm-2.4 >= 2.4.0)
++ libglademm-2.4 >= 2.4.0 \
++ libcanberra)
+ AC_SUBST(DEPS_CFLAGS)
+ AC_SUBST(DEPS_LIBS)
+
+--- a/src/sound.hpp 2007-01-06 16:16:30.000000000 +0000
++++ b/src/sound.hpp 2011-03-06 13:12:47.000000000 +0000
+@@ -22,6 +22,7 @@
+ #define SOUND_HPP
+
+ #include <string>
++#include <canberra.h>
+
+ #include "helpers.hpp"
+
+@@ -39,8 +40,7 @@
+ private:
+ Sound();
+
+- typedef std::map<std::string, int> cache_map;
+- cache_map cache;
++ ca_context *ctx;
+ };
+
+ #endif
+--- a/src/sound.cpp 2007-01-06 16:16:30.000000000 +0000
++++ b/src/sound.cpp 2011-03-07 21:55:47.000000000 +0000
+@@ -18,9 +18,6 @@
+ * USA.
+ */
+
+-#include <libgnome/gnome-sound.h>
+-#include <esd.h>
+-
+ #include "sound.hpp"
+
+
+@@ -30,26 +27,23 @@
+ return s;
+ }
+
+-Sound::Sound()
++Sound::Sound() :
++ ctx(0)
+ {
++ ca_context_create(&ctx);
+ }
+
+ Sound::~Sound()
+ {
++ if (ctx)
++ ca_context_destroy(ctx);
+ }
+
+ void Sound::play(const std::string &name)
+ {
+- int id;
+-
+- cache_map::iterator i = cache.find(name);
+- if (i != cache.end())
+- id = i->second;
+- else {
+- id = gnome_sound_sample_load(name.c_str(),
+- (MONSTER_MASHER_SOUND_DIR + name).c_str());
+- cache.insert(make_pair(name, id));
+- }
+-
+- esd_sample_play(gnome_sound_connection_get(), id);
++ if (ctx)
++ ca_context_play(ctx, 0,
++ CA_PROP_MEDIA_FILENAME, (MONSTER_MASHER_SOUND_DIR + name).c_str(),
++ CA_PROP_CANBERRA_CACHE_CONTROL, "permanent",
++ NULL);
+ }
diff --git a/games-arcade/monster-masher/metadata.xml b/games-arcade/monster-masher/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-arcade/monster-masher/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>
diff --git a/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild b/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild
new file mode 100644
index 000000000000..ce823f3c0bf2
--- /dev/null
+++ b/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GCONF_DEBUG="no"
+
+inherit autotools eutils flag-o-matic gnome2
+
+DESCRIPTION="Squash the monsters with your levitation worker gnome"
+HOMEPAGE="http://people.iola.dk/olau/monster-masher/"
+SRC_URI="http://people.iola.dk/olau/monster-masher/source/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="
+ x11-libs/libSM
+ >=dev-cpp/gtkmm-2.6:2.4
+ >=dev-cpp/gconfmm-2.6
+ >=dev-cpp/libglademm-2.4:2.4
+ >=dev-cpp/libgnomecanvasmm-2.6:2.6
+ gnome-base/libgnome
+ media-libs/libcanberra
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext
+"
+
+src_prepare() {
+ # Port to libcanberra, bug #348605
+ epatch "${FILESDIR}"/${P}-libcanberra.patch
+
+ # Fix .desktop file
+ epatch "${FILESDIR}"/${P}-desktop.patch
+
+ # build with newer glib - bug #424313
+ sed -i -e 's:glib/gtypes:glib:' src/pixbuf-drawing.hpp || die
+
+ append-cxxflags -std=c++11
+
+ eautoreconf
+ gnome2_src_prepare
+}