summaryrefslogtreecommitdiff
path: root/games-puzzle/gtetrinet
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/gtetrinet
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/gtetrinet')
-rw-r--r--games-puzzle/gtetrinet/Manifest9
-rw-r--r--games-puzzle/gtetrinet/files/gtetrinet-0.7.11-desktopfile.patch28
-rw-r--r--games-puzzle/gtetrinet/files/gtetrinet-0.7.11-format-security.patch16
-rw-r--r--games-puzzle/gtetrinet/files/gtetrinet-0.7.11-noesd.patch130
-rw-r--r--games-puzzle/gtetrinet/gtetrinet-0.7.11-r3.ebuild58
-rw-r--r--games-puzzle/gtetrinet/metadata.xml27
6 files changed, 268 insertions, 0 deletions
diff --git a/games-puzzle/gtetrinet/Manifest b/games-puzzle/gtetrinet/Manifest
new file mode 100644
index 000000000000..c895598d6225
--- /dev/null
+++ b/games-puzzle/gtetrinet/Manifest
@@ -0,0 +1,9 @@
+AUX gtetrinet-0.7.11-desktopfile.patch 706 SHA256 489918311fb8fa8c22e1e294cd42ed242f8f3d4bd3aff3482156646aed5cd072 SHA512 d12b4f302388b3620ed77254916d3e3845b3da4bc3d1fc5b1c10c370e46088aea1a11603a8ce5ec844be5bf1026120d6b627170f4a09df663c5b579fe7ba937a WHIRLPOOL 2620d5672e104f71e1db9c5b533c14ba9206c0cde72496b98b7d7837fff89da6b23bbd453e43be766fcec800e7cd787f6c6546ccc27e02ba66b797cc86e9f538
+AUX gtetrinet-0.7.11-format-security.patch 681 SHA256 4c1f81cbbf85f829198a59165025b20ed59db3a4b91926dc6889609bb49363be SHA512 1f3236da7320249c6d8969a73d2d9f50c4dce68525e563958b52c3cfae5bd2c4fa0fda44960acce6bb9326a4b75560c60ab605aadce3b28d770c44c971209406 WHIRLPOOL bc1fadc8e0e2b97af92c667d83c9055caf0d0ca38b69e82a0082f655f0ec5cc24710bc5621a69a90d392c29070fedafd074e73f20259facdb8c3d3c8056c6025
+AUX gtetrinet-0.7.11-noesd.patch 4007 SHA256 ee0b877775bbf10463cd31c39e1f18fac5600a4a595d5e93b7bf6b269d1a744e SHA512 7674d4d54e4c4b0172e14c02036e88d08f8ebb7745ca7c34fff60dd1b2a46f54568fd89c77c19df12bce74296919bd5c6a7bd48a5ca4a427c6cc04d90384bfcc WHIRLPOOL f77818146e41f55e9831c960a5530b57070cc4101485ab762f36ce13a0af898b5cfa2c3d04865b82251fb255c3aaaeca9b5a15458996afdd018ecc55f52d3cbb
+DIST gtetrinet-0.7.11.tar.bz2 416744 SHA256 cea27a5f65cc4384e9130cf345421ef677418be4ebdab14d82b9049dd162ddc0 SHA512 5de7df7647ed9f7c0b6aba4eac976c625b7632eb5ab8034b11ef09aeb4582f90b4f9fc1791dc5371e1067d59c90b792a70276c69b75ebd6dc8c74c96c47c7130 WHIRLPOOL bb05ae48330a6a17209e13857d63f7f8711683df1ded9959b27bfcd3393859d4276f458462ac4b4e1663ac3a19f9e8299a53f0100b44909e5757881bd6ca1e02
+DIST gtetrinet-gentoo-theme-0.1.tbz2 88240 SHA256 33037370a0cab1ac395716f8b33ead7f2360cac0bd25b869cff3ab5d28b6a323 SHA512 6834ed4d70d94d94c201c5fa76d670ed21e4451ad18b1f41292c69e8ba18f56198898bb9d0c90343e28fa05a53e2e92536aa07fad747d4321d2e67c638d7ab8d WHIRLPOOL 9f1a0c0e4e7ea394209638e05640460be14533eb9d6db6962f9c10f2776af5c01d1b5486ac51792f0fc70e2b21bace691c6f1cf83d9b22c2117c1148e3218e8d
+EBUILD gtetrinet-0.7.11-r3.ebuild 1231 SHA256 3c78d3d6eef809b12b3353cfbf800bbc298b19ab9a6e8e0b4c9948420329f86c SHA512 1dbc192438ddb2fdd588904d76e8cac3e5ef08e2becb6433c464e51ed514d51fe8a48de31123e080a23dda495e2191746c56fced0d6032f3f8943c30857e0940 WHIRLPOOL 71d49a16c3500186b0d00ebfc547821ad029e0fa07fa7bc0e409eb235d50578d2b1263f537a44fe73b3893d6a1a9b53f9446493ddf2c97b7cead77386b576f33
+MISC ChangeLog 3124 SHA256 191a617634874b803178ffe621d2a243fbd042f8a40fad28d75cfcd270a0483c SHA512 270d5a43695c9928bf3d68746776c9a978c8399133ebd31f469bac0c7f7b548d797de067ccc08b3ea5f6622c9970ca5428caf6c9623f3bb8c2824dc5a61876a3 WHIRLPOOL da45646e72464a58f3e9b40bcde2cf9977abbb02c3192da545c40c96deb8a01dc50c55db6293cc113e97f6c172a9c90418e31af7cc1afccf6e1373a0134fc2e9
+MISC ChangeLog-2015 6983 SHA256 bfaf90cd3d0b3c6327c4cd09e32e3df9aa8869558cd6f23afe40e944c2c12a55 SHA512 8b3f2de703be4009f435dde21a573a0590ae89c4b341d36437eb484c945bc2e8f4899cd539131a032385273a587da2d1093a525aac7e4c2f23ced38ce5a36505 WHIRLPOOL 1428276a5773a6c896763c4d20f5c69bc10e3a8353270ada39ab8204f03fdd2e8128992b4878996c8d5395f071b28112de666784cf5fe8a0daeeb5d4548b531e
+MISC metadata.xml 923 SHA256 b671380bb669b5c6052b9e406449ece66c8ed743664b2ba833e996d90b462b78 SHA512 81b70c3f4973cd7664a064df27fbcfb8af1f2aa748b269c68d62d3def6f2aee829a0c965b6b93aca51176f60fc34cb170cc20984d5b3b2e1beeb26206fee4e9b WHIRLPOOL 4c5a8596a2a8e15ffdb8c832c22f54f46d6fa829d64251bd1110a6455053eb2d2fb546818ff2748e4f6e587c430253d3627a7a41a4a116b5c0e2bb7916e4df1d
diff --git a/games-puzzle/gtetrinet/files/gtetrinet-0.7.11-desktopfile.patch b/games-puzzle/gtetrinet/files/gtetrinet-0.7.11-desktopfile.patch
new file mode 100644
index 000000000000..9bf7c2e506db
--- /dev/null
+++ b/games-puzzle/gtetrinet/files/gtetrinet-0.7.11-desktopfile.patch
@@ -0,0 +1,28 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Fri Nov 30 20:02:03 UTC 2012
+Subject: desktop file
+
+ fix desktop file according to fd.o spec
+
+--- gtetrinet.desktop
++++ gtetrinet.desktop
+@@ -1,5 +1,4 @@
+ [Desktop Entry]
+-Encoding=UTF-8
+ Name=GTetrinet
+ Name[am]=GTetrinet
+ Name[bg]=GTetrinet
+@@ -99,11 +98,11 @@
+ Comment[zh_HK]=Tetrinet 的 GNOME 客戶端程式
+ Comment[zh_TW]=Tetrinet 的 GNOME 客戶端程式
+ Exec=gtetrinet
+-Icon=gtetrinet.png
++Icon=gtetrinet
+ StartupNotify=true
+ Terminal=false
+ Type=Application
+-Categories=GNOME;Application;Game;BlocksGame;
++Categories=GNOME;Game;BlocksGame;
+ X-GNOME-Bugzilla-Bugzilla=GNOME
+ X-GNOME-Bugzilla-Product=gtetrinet
+ X-GNOME-Bugzilla-Component=general
diff --git a/games-puzzle/gtetrinet/files/gtetrinet-0.7.11-format-security.patch b/games-puzzle/gtetrinet/files/gtetrinet-0.7.11-format-security.patch
new file mode 100644
index 000000000000..59389a18f7c5
--- /dev/null
+++ b/games-puzzle/gtetrinet/files/gtetrinet-0.7.11-format-security.patch
@@ -0,0 +1,16 @@
+Author: Jordi Mallach <jordi@debian.org>
+Description: Fix build when using -Werror=format-security, now default
+ on Debian.
+Status: committed-upstream
+
+--- gtetrinet-0.7.11.orig/src/tetrinet.c
++++ gtetrinet-0.7.11/src/tetrinet.c
+@@ -232,7 +232,7 @@
+ dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_OK,
+- buf);
++ "%s", buf);
+ gtk_dialog_run (GTK_DIALOG(dialog));
+ gtk_widget_destroy (dialog);
+ g_free (data_utf8);
diff --git a/games-puzzle/gtetrinet/files/gtetrinet-0.7.11-noesd.patch b/games-puzzle/gtetrinet/files/gtetrinet-0.7.11-noesd.patch
new file mode 100644
index 000000000000..b49758401298
--- /dev/null
+++ b/games-puzzle/gtetrinet/files/gtetrinet-0.7.11-noesd.patch
@@ -0,0 +1,130 @@
+--- gtetrinet-0.7.11/configure.in~ 2006-11-15 17:02:36.000000000 +0000
++++ gtetrinet-0.7.11/configure.in 2011-03-06 15:39:10.000000000 +0000
+@@ -30,7 +30,6 @@
+ LIBGTK_REQUIRED=2.6.0
+ LIBGNOME_REQUIRED=2.0.0
+ LIBGNOMEUI_REQUIRED=2.0.0
+-LIBESD_REQUIRED=0.2.36
+
+ dnl *****************************************
+ dnl libgnome, libgnomeui needed for all utils
+@@ -40,21 +39,21 @@
+ AC_SUBST(GTET_CFLAGS)
+ AC_SUBST(GTET_LIBS)
+
+-dnl Check for libesd
+-if pkg-config --exists esound ; then
+- have_esound=yes
++dnl Check for libcanberra
++if pkg-config --exists libcanberra ; then
++ have_libcanberra=yes
+ else
+- have_esound=no
++ have_libcanberra=no
+ fi
+
+-if test "x$have_esound" = "xyes"; then
+-AC_DEFINE(HAVE_ESD, 1, [Define this to enable EsounD support.])
+-PKG_CHECK_MODULES(ESOUND, esound >= $LIBESD_REQUIRED)
+-AC_SUBST(ESOUND_CFLAGS)
+-AC_SUBST(ESOUND_LIBS)
++if test "x$have_libcanberra" = "xyes"; then
++AC_DEFINE(HAVE_LIBCANBERRA, 1, [Define this to enable libcanberra support.])
++PKG_CHECK_MODULES(LIBCANBERRA, libcanberra)
++AC_SUBST(LIBCANBERRA_CFLAGS)
++AC_SUBST(LIBCANBERRA_LIBS)
+ fi
+
+-AM_CONDITIONAL(HAVE_ESOUND, test "x$have_esound" = "xyes")
++AM_CONDITIONAL(HAVE_LIBCANBERRA, test "x$have_libcanberra" = "xyes")
+
+ AC_HEADER_STDC
+ AC_HEADER_SYS_WAIT
+--- gtetrinet-0.7.11/config.h.in~ 2006-11-15 17:03:53.000000000 +0000
++++ gtetrinet-0.7.11/config.h.in 2011-03-06 15:39:31.000000000 +0000
+@@ -15,8 +15,8 @@
+ /* Define to 1 if you have the `dcgettext' function. */
+ #undef HAVE_DCGETTEXT
+
+-/* Define this to enable EsounD support. */
+-#undef HAVE_ESD
++/* Define this to enable libcanberra support. */
++#undef HAVE_LIBCANBERRA
+
+ /* Define if the GNU gettext() function is already present or preinstalled. */
+ #undef HAVE_GETTEXT
+--- gtetrinet-0.7.11/src/dialogs.c~ 2006-11-03 12:49:49.000000000 +0000
++++ gtetrinet-0.7.11/src/dialogs.c 2011-03-06 15:40:45.000000000 +0000
+@@ -1054,7 +1054,7 @@
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(soundcheck), soundenable);
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(midicheck), midienable);
+
+-#ifdef HAVE_ESD
++#ifdef HAVE_LIBCANBERRA
+ if (midienable) prefdialog_midion ();
+ else prefdialog_midioff ();
+ if (soundenable) prefdialog_soundon ();
+--- gtetrinet-0.7.11/src/sound.c~ 2005-03-18 21:19:18.000000000 +0000
++++ gtetrinet-0.7.11/src/sound.c 2011-03-06 15:47:24.000000000 +0000
+@@ -36,33 +36,36 @@
+ char midifile[1024];
+ char midicmd[1024];
+
+-#ifdef HAVE_ESD
++#ifdef HAVE_LIBCANBERRA
+
+-#include <esd.h>
+-#include <libgnome/gnome-sound.h>
++#include <canberra.h>
+
+-static int soundsamples[S_NUM];
+ static int midipid = 0;
++static ca_context *ctx = 0;
+
+ void sound_cache (void)
+ {
+ int i;
+ if (!soundenable) return;
++ if (!ctx)
++ ca_context_create(&ctx);
++ if (ctx) {
+ for (i = 0; i < S_NUM; i ++) {
+- if (soundsamples[i])
+- esd_sample_free (gnome_sound_connection_get (), soundsamples[i]);
+ if (soundfiles[i][0])
+- soundsamples[i] = gnome_sound_sample_load (soundfiles[i], soundfiles[i]);
+- else
+- soundsamples[i] = 0;
++ ca_context_cache(ctx,
++ CA_PROP_MEDIA_FILENAME, soundfiles[i],
++ NULL);
++ }
+ }
+ }
+
+ void sound_playsound (int id)
+ {
+- if (!soundenable) return;
+- if (soundsamples[id] > 0)
+- esd_sample_play (gnome_sound_connection_get (), soundsamples[id]);
++ if (!soundenable || !ctx) return;
++ if (soundfiles[id][0])
++ ca_context_play(ctx, 0,
++ CA_PROP_MEDIA_FILENAME, soundfiles[id],
++ NULL);
+ }
+
+ void sound_playmidi (char *file)
+--- gtetrinet-0.7.11/src/Makefile.am~ 2006-11-03 16:20:08.000000000 +0000
++++ gtetrinet-0.7.11/src/Makefile.am 2011-03-06 15:57:32.000000000 +0000
+@@ -7,8 +7,8 @@
+ -DGTETPIXMAPSDIR=\""$(datadir)/pixmaps/gtetrinet"\" \
+ $(GTET_CFLAGS)
+
+-if HAVE_ESOUND
+-LDADD = $(GTET_LIBS) $(ESOUND_LIBS)
++if HAVE_LIBCANBERRA
++LDADD = $(GTET_LIBS) $(LIBCANBERRA_LIBS)
+ else
+ LDADD = $(GTET_LIBS)
+ endif
diff --git a/games-puzzle/gtetrinet/gtetrinet-0.7.11-r3.ebuild b/games-puzzle/gtetrinet/gtetrinet-0.7.11-r3.ebuild
new file mode 100644
index 000000000000..31961715876d
--- /dev/null
+++ b/games-puzzle/gtetrinet/gtetrinet-0.7.11-r3.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+GCONF_DEBUG="yes"
+GNOME_TARBALL_SUFFIX="bz2"
+
+inherit autotools eutils gnome2
+
+DESCRIPTION="Tetrinet Clone for GNOME"
+HOMEPAGE="http://gtetrinet.sourceforge.net/"
+SRC_URI="${SRC_URI}
+ mirror://gentoo/gtetrinet-gentoo-theme-0.1.tbz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nls ipv6"
+
+RDEPEND="
+ dev-libs/libxml2
+ media-libs/libcanberra
+ >=gnome-base/gconf-2
+ >=gnome-base/libgnome-2
+ >=gnome-base/libgnomeui-2
+ nls? ( virtual/libintl )
+"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-noesd.patch
+ epatch "${FILESDIR}"/${P}-desktopfile.patch
+ epatch "${FILESDIR}"/${P}-format-security.patch
+ sed -i \
+ -e "/^pkgdatadir =/s:=.*:= ${GAMES_DATADIR}/${PN}:" \
+ src/Makefile.in themes/*/Makefile.in || die
+ sed -i \
+ -e '/^gamesdir/s:=.*:=@bindir@:' \
+ src/Makefile.am || die
+
+ rm -rf "${WORKDIR}"/gentoo/.xvpics || die # Remove cruft
+
+ eautoreconf
+ gnome2_src_prepare
+}
+
+src_configure() {
+ gnome2_src_configure \
+ $(use_enable ipv6)
+}
+
+src_install() {
+ gnome2_src_install
+ mv "${WORKDIR}"/gentoo "${ED}/usr/share/${PN}/themes/" || die
+}
diff --git a/games-puzzle/gtetrinet/metadata.xml b/games-puzzle/gtetrinet/metadata.xml
new file mode 100644
index 000000000000..a29c0a42dfee
--- /dev/null
+++ b/games-puzzle/gtetrinet/metadata.xml
@@ -0,0 +1,27 @@
+<?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>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+ <longdescription>
+GTetrinet is a client program for the popular Tetrinet game, a
+multiplayer tetris game that is played over the internet.
+
+Gee, Tetris? Whats that? Yeah, yeah, so it's been
+done 2 billion times before (give or take a few bil),
+but this is different! Yes, all you tetris addicts
+out there be prepared for even MORE excitement..
+internet tetris! Now you can play your five best
+buddies in one of the most well known games in
+existence!
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">gtetrinet</remote-id>
+ </upstream>
+</pkgmetadata>