diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-puzzle/gtetrinet | |
download | gentoo-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-puzzle/gtetrinet')
-rw-r--r-- | games-puzzle/gtetrinet/Manifest | 2 | ||||
-rw-r--r-- | games-puzzle/gtetrinet/files/gtetrinet-0.7.11-desktopfile.patch | 28 | ||||
-rw-r--r-- | games-puzzle/gtetrinet/files/gtetrinet-0.7.11-format-security.patch | 16 | ||||
-rw-r--r-- | games-puzzle/gtetrinet/files/gtetrinet-0.7.11-noesd.patch | 130 | ||||
-rw-r--r-- | games-puzzle/gtetrinet/gtetrinet-0.7.11-r3.ebuild | 59 | ||||
-rw-r--r-- | games-puzzle/gtetrinet/metadata.xml | 18 |
6 files changed, 253 insertions, 0 deletions
diff --git a/games-puzzle/gtetrinet/Manifest b/games-puzzle/gtetrinet/Manifest new file mode 100644 index 000000000000..9ed1ce7caae9 --- /dev/null +++ b/games-puzzle/gtetrinet/Manifest @@ -0,0 +1,2 @@ +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 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..3569f77524e2 --- /dev/null +++ b/games-puzzle/gtetrinet/gtetrinet-0.7.11-r3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 ppc 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..a455b5ead3db --- /dev/null +++ b/games-puzzle/gtetrinet/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<herd>gnome</herd> +<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> +</pkgmetadata> |