summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2009-05-29 21:47:28 +0000
committerSteve Dibb <beandog@gentoo.org>2009-05-29 21:47:28 +0000
commitd05652d253c06b823092965b8017ad76380ba2fe (patch)
tree33f8cbca58bd5a7f01f9d998d19bbf96e705f4ab /media-video/gnome-mplayer
parentUSE pulseaudio for >=0.9.15 and don't allow previous versions installed becau... (diff)
downloadgentoo-2-d05652d253c06b823092965b8017ad76380ba2fe.tar.gz
gentoo-2-d05652d253c06b823092965b8017ad76380ba2fe.tar.bz2
gentoo-2-d05652d253c06b823092965b8017ad76380ba2fe.zip
Apply upstream diff to build against nautilus, bug 266801
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'media-video/gnome-mplayer')
-rw-r--r--media-video/gnome-mplayer/ChangeLog8
-rw-r--r--media-video/gnome-mplayer/files/gnome-mplayer-0.9.5-gettext.patch168
-rw-r--r--media-video/gnome-mplayer/gnome-mplayer-0.9.5-r1.ebuild (renamed from media-video/gnome-mplayer/gnome-mplayer-0.9.5.ebuild)6
3 files changed, 179 insertions, 3 deletions
diff --git a/media-video/gnome-mplayer/ChangeLog b/media-video/gnome-mplayer/ChangeLog
index dcad00c632ad..986d1ccad530 100644
--- a/media-video/gnome-mplayer/ChangeLog
+++ b/media-video/gnome-mplayer/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/gnome-mplayer
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/gnome-mplayer/ChangeLog,v 1.12 2009/04/17 21:12:28 yngwin Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/gnome-mplayer/ChangeLog,v 1.13 2009/05/29 21:47:21 beandog Exp $
+
+*gnome-mplayer-0.9.5-r1 (29 May 2009)
+
+ 29 May 2009; Steve Dibb <beandog@gentoo.org> -gnome-mplayer-0.9.5.ebuild,
+ +gnome-mplayer-0.9.5-r1.ebuild, +files/gnome-mplayer-0.9.5-gettext.patch:
+ Apply upstream diff to build against nautilus, bug 266801
*gnome-mplayer-0.9.5 (17 Apr 2009)
diff --git a/media-video/gnome-mplayer/files/gnome-mplayer-0.9.5-gettext.patch b/media-video/gnome-mplayer/files/gnome-mplayer-0.9.5-gettext.patch
new file mode 100644
index 000000000000..585e9f34b6a4
--- /dev/null
+++ b/media-video/gnome-mplayer/files/gnome-mplayer-0.9.5-gettext.patch
@@ -0,0 +1,168 @@
+--- src/nautilus_property_page.c (revision 1243)
++++ src/nautilus_property_page.c (working copy)
+@@ -84,9 +84,9 @@
+ }
+
+ if (hour == 0) {
+- result = g_strdup_printf(_("%2i:%02.0f"), min, seconds);
++ result = g_strdup_printf(dgettext(GETTEXT_PACKAGE,"%2i:%02.0f"), min, seconds);
+ } else {
+- result = g_strdup_printf(_("%i:%02i:%02.0f"), hour, min, seconds);
++ result = g_strdup_printf(dgettext(GETTEXT_PACKAGE,"%i:%02i:%02.0f"), hour, min, seconds);
+ }
+ return g_strstrip(result);
+ }
+@@ -265,7 +265,7 @@
+
+ data = get_metadata(filename);
+
+- label = gtk_label_new(_("<span weight=\"bold\">Media Details</span>"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"<span weight=\"bold\">Media Details</span>"));
+ gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 0, 6);
+@@ -273,7 +273,7 @@
+ i++;
+
+ if (data->title && strlen(data->title) > 0) {
+- label = gtk_label_new(_("Title"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Title"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -285,7 +285,7 @@
+ }
+
+ if (data->artist && strlen(data->artist) > 0) {
+- label = gtk_label_new(_("Artist"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Artist"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -297,7 +297,7 @@
+ }
+
+ if (data->album && strlen(data->album) > 0) {
+- label = gtk_label_new(_("Album"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Album"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -309,7 +309,7 @@
+ }
+
+ if (data->length) {
+- label = gtk_label_new(_("Length"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Length"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -321,7 +321,7 @@
+ }
+
+ if (data->demuxer && strlen(data->demuxer) > 0) {
+- label = gtk_label_new(_("Demuxer"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Demuxer"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -333,14 +333,14 @@
+ }
+
+ if (data->video_present) {
+- label = gtk_label_new(_("<span weight=\"bold\">Video Details</span>"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"<span weight=\"bold\">Video Details</span>"));
+ gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 0, 6);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+ i++;
+
+- label = gtk_label_new(_("Video Size:"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Video Size:"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -351,7 +351,7 @@
+ g_free(buf);
+ i++;
+
+- label = gtk_label_new(_("Video Codec:"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Video Codec:"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -362,7 +362,7 @@
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 1, 2, i, i + 1);
+ i++;
+
+- label = gtk_label_new(_("Video Bitrate:"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Video Bitrate:"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -373,7 +373,7 @@
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 1, 2, i, i + 1);
+ i++;
+
+- label = gtk_label_new(_("Video Frame Rate:"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Video Frame Rate:"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -387,14 +387,14 @@
+ }
+
+ if (data->audio_present) {
+- label = gtk_label_new(_("<span weight=\"bold\">Audio Details</span>"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"<span weight=\"bold\">Audio Details</span>"));
+ gtk_label_set_use_markup(GTK_LABEL(label), TRUE);
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 0, 6);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+ i++;
+
+- label = gtk_label_new(_("Audio Codec:"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Audio Codec:"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -405,7 +405,7 @@
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 1, 2, i, i + 1);
+ i++;
+
+- label = gtk_label_new(_("Audio Bitrate:"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Audio Bitrate:"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -417,7 +417,7 @@
+ i++;
+
+ if (g_strtod(data->audio_nch, NULL) > 0) {
+- label = gtk_label_new(_("Audio Channels:"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Audio Channels:"));
+ gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
+ gtk_misc_set_padding(GTK_MISC(label), 12, 0);
+ gtk_table_attach_defaults(GTK_TABLE(page), label, 0, 1, i, i + 1);
+@@ -475,7 +475,7 @@
+
+ if (found) {
+ uri = nautilus_file_info_get_uri(file);
+- label = gtk_label_new(_("Audio/Video"));
++ label = gtk_label_new(dgettext(GETTEXT_PACKAGE,"Audio/Video"));
+ page = gtk_table_new(20, 2, FALSE);
+ gtk_container_set_border_width(GTK_CONTAINER(page), 6);
+ if (get_properties(page, uri)) {
+@@ -528,8 +528,11 @@
+ {
+
+ #ifdef ENABLE_NLS
++ //printf("%s\n",GETTEXT_PACKAGE);
++ //printf("%s\n",PACKAGE_LOCALE_DIR);
+ bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
+ bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
++ //textdomain(GETTEXT_PACKAGE);
+ #endif
+
+ gnome_mplayer_properties_plugin_register_type(module);
diff --git a/media-video/gnome-mplayer/gnome-mplayer-0.9.5.ebuild b/media-video/gnome-mplayer/gnome-mplayer-0.9.5-r1.ebuild
index b4d0380dca13..f768e1e4e276 100644
--- a/media-video/gnome-mplayer/gnome-mplayer-0.9.5.ebuild
+++ b/media-video/gnome-mplayer/gnome-mplayer-0.9.5-r1.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/gnome-mplayer/gnome-mplayer-0.9.5.ebuild,v 1.1 2009/04/17 21:12:28 yngwin Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/gnome-mplayer/gnome-mplayer-0.9.5-r1.ebuild,v 1.1 2009/05/29 21:47:21 beandog Exp $
EAPI="2"
GCONF_DEBUG=no
-inherit gnome2
+inherit gnome2 eutils
DESCRIPTION="MPlayer GUI for GNOME Desktop Environment"
HOMEPAGE="http://code.google.com/p/gnome-mplayer"
@@ -33,6 +33,8 @@ DEPEND="${RDEPEND}
DOCS="ChangeLog README DOCS/keyboard_shortcuts.txt"
+PATCHES=( "${FILESDIR}"/${P}-gettext.patch )
+
src_configure() {
G2CONF="${G2CONF}
--with-gio