summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-arcade/monster-masher
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-arcade/monster-masher')
-rw-r--r--games-arcade/monster-masher/Manifest1
-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.xml5
-rw-r--r--games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild46
5 files changed, 153 insertions, 0 deletions
diff --git a/games-arcade/monster-masher/Manifest b/games-arcade/monster-masher/Manifest
new file mode 100644
index 000000000000..ce03456bae77
--- /dev/null
+++ b/games-arcade/monster-masher/Manifest
@@ -0,0 +1 @@
+DIST monster-masher-1.8.1.tar.bz2 1042299 SHA256 09f710fe1293fc6c8791ed569d02143c238659f8b635b364f59f08ab6c5ea5b1 SHA512 250414d6fb4abea12d2fd5328fc003449680b76784bfc6c15cc05d5dfb78e45eee2d2c6d36a3bf2f3c0e055c9ee58cbfaf623f56638fa8462f5006c84057c254 WHIRLPOOL 9faba62e35585dd063a092dfc4cbe39d4a7869bfe8a1b508cd441b37eebafcc76a73b23f3c735cae33cc1df0d37bb671b609bc5f69ed6d55c656d672e85d73e2
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..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/monster-masher/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-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..1f8d1a361325
--- /dev/null
+++ b/games-arcade/monster-masher/monster-masher-1.8.1-r2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+GCONF_DEBUG="no"
+
+inherit autotools eutils 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 ~ppc 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
+
+ eautoreconf
+ gnome2_src_prepare
+}