summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Polke <dustin.polke@uni-siegen.de>2011-03-08 10:19:45 +0100
committerDustin Polke <dustin.polke@uni-siegen.de>2011-03-08 10:19:45 +0100
commit6078a53f433654c59be9bc1781de1bde97f2fbdb (patch)
treed51107d6263fbd12bab861743c755b4da8b6f77b /media-video
parent[net-fs/autofs] Bump upstream patchseti, drop old and major maintenance work. (diff)
downloadDuPol-6078a53f433654c59be9bc1781de1bde97f2fbdb.tar.gz
DuPol-6078a53f433654c59be9bc1781de1bde97f2fbdb.tar.bz2
DuPol-6078a53f433654c59be9bc1781de1bde97f2fbdb.zip
[media-video/totem] Add patch by me to totem-2.32.0.ebuild to fix XML validation.
Gentoo bug reference: https://bugs.gentoo.org/show_bug.cgi?id=357893 Upstream bug reference: https://bugzilla.gnome.org/show_bug.cgi?id=644174
Diffstat (limited to 'media-video')
-rw-r--r--media-video/totem/ChangeLog12
-rw-r--r--media-video/totem/Manifest6
-rw-r--r--media-video/totem/files/totem-2.32.0-fix-xml-validation.patch113
-rw-r--r--media-video/totem/files/totem-2.32.0-smclient-target-detection.patch48
-rw-r--r--media-video/totem/metadata.xml27
-rw-r--r--media-video/totem/totem-2.32.0.ebuild193
6 files changed, 399 insertions, 0 deletions
diff --git a/media-video/totem/ChangeLog b/media-video/totem/ChangeLog
new file mode 100644
index 0000000..b5e04e1
--- /dev/null
+++ b/media-video/totem/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for media-video/totem
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*totem-2.32.0 (08 Mar 2011)
+
+ 08 Mar 2011; Dustin Polke <dustin.polke@uni-siegen.de> +totem-2.32.0.ebuild,
+ +files/totem-2.32.0-fix-xml-validation.patch,
+ +files/totem-2.32.0-smclient-target-detection.patch, +metadata.xml:
+ Copy totem-2.32.0.ebuild,v 1.11 from portage tree; add patch by me to fix XML
+ validation.
+
diff --git a/media-video/totem/Manifest b/media-video/totem/Manifest
new file mode 100644
index 0000000..8d1264f
--- /dev/null
+++ b/media-video/totem/Manifest
@@ -0,0 +1,6 @@
+AUX totem-2.32.0-fix-xml-validation.patch 8972 RMD160 62a5f8fb48592cfa6aa5f9e556e07a75ebb3a541 SHA1 8652f0ab76460b3189ac0d1a3251442f38deecdd SHA256 7a62c112b928d066740cf413cffd88541ef22ece64765c0ed8a1e56d43c4e038
+AUX totem-2.32.0-smclient-target-detection.patch 1546 RMD160 d26dad41d63e3ce2c819fa0be5844b2797d7fdbd SHA1 103b3182229b54e5b11ab6e941af110ee2761483 SHA256 c2c454e1a1776cc7c07ba4ee069105f6010e92478e9598af23956fac0fb13e63
+DIST totem-2.32.0.tar.bz2 3278758 RMD160 5312aa67e3ff611be0626fd72da66e1c26d6eb4d SHA1 46589181aee29e021d686a4804bbbb04149a61dc SHA256 982d6aaeca3e4844694fc0a2540d792bea753e24b55cf33203188b32b5914f47
+EBUILD totem-2.32.0.ebuild 5457 RMD160 ed72ac2aa28218ae9105b4ea61426966820865e5 SHA1 038743bd3c34d9529f02a8b78a2542b94b8a74dd SHA256 68b4fc3dda9ca03d40517739b917d49c34267c6b78532b7d4bb8c6445af9a1ae
+MISC ChangeLog 439 RMD160 91fe118aecfe6d4fcd83415cc8e6e09f140dd8b0 SHA1 f8f9589e00630273fee36c94e59b3702c1636e80 SHA256 825534966fb5053748480018a45232ba235aa6b7fce3d913f3bab403ed28bcb6
+MISC metadata.xml 1439 RMD160 96322a587e90a3fed62121b5d6727d500cf604ee SHA1 cd2a32e07bd20ab2d1de735ec2ccaf5a86db44a9 SHA256 c527a52626a628cee8d63c91fb54a3605c0ba97c9a22cdd83389d3c712528af5
diff --git a/media-video/totem/files/totem-2.32.0-fix-xml-validation.patch b/media-video/totem/files/totem-2.32.0-fix-xml-validation.patch
new file mode 100644
index 0000000..2937dde
--- /dev/null
+++ b/media-video/totem/files/totem-2.32.0-fix-xml-validation.patch
@@ -0,0 +1,113 @@
+From 2ba2d6ee573244d0c98f21d496c5da231e657f80 Mon Sep 17 00:00:00 2001
+From: Dustin Polke <dustin.polke@uni-siegen.de>
+Date: Tue, 8 Mar 2011 00:10:34 +0100
+Subject: [PATCH] Fix XML validation of help files.
+
+Modified languages: German, Finish, Italian, and Polish.
+---
+ help/de/de.po | 21 ++++++++++-----------
+ help/fi/fi.po | 2 +-
+ help/it/it.po | 13 +++++++------
+ help/pl/pl.po | 4 ++--
+ 4 files changed, 20 insertions(+), 20 deletions(-)
+
+--- a/help/de/de.po
++++ b/help/de/de.po
+@@ -273,8 +273,8 @@ msgstr "Philip Withnall <email>philip@tecnocode.co.uk</email>"
+ #: C/totem.xml:132(releaseinfo)
+ msgid "This manual describes version 2.26 of Totem Movie Player."
+ msgstr ""
+-"Das vorliegende Handbuch beschreibt die Version 2.26 des <application>Totem "
+-"Video-Players</application>."
++"Das vorliegende Handbuch beschreibt die Version 2.26 des Totem "
++"Video-Players."
+
+ #: C/totem.xml:135(title)
+ msgid "Feedback"
+@@ -676,10 +676,10 @@ msgid ""
+ "keycap><keycap>E</keycap></keycombo></shortcut><guimenu>Movie</"
+ "guimenu><guimenuitem>Eject</guimenuitem></menuchoice>."
+ msgstr ""
+-"Um eine DVD, oder VCD auszuwerfen, wählen Sie <menuchoice><guimenu>Film</"
+-"guimenu><guimenuitem>Auswerfen</guimenuitem></menuchoice> aus dem Menü oder "
+-"drücken Sie <shortcut><keycombo><keycap>Strg</keycap>+<keycap>E</keycap></"
+-"keycombo></shortcut>."
++"Um eine DVD oder VCD auszuwerfen, wählen Sie <menuchoice><shortcut>"
++"<keycombo><keycap>Strg</keycap><keycap>E</keycap></keycombo></shortcut>"
++"<guimenu>Film</guimenu><guimenuitem>Auswerfen</guimenuitem></menuchoice> aus"
++"dem Menü."
+
+ #: C/totem.xml:402(title)
+ msgid "To Pause a Movie or Song"
+@@ -716,11 +716,10 @@ msgid ""
+ "guimenu><guimenuitem>Play / Pause</guimenuitem></menuchoice>."
+ msgstr ""
+ "Zum Fortsetzen der Wiedergabe eines Films oder eines Musikstücks klicken Sie "
+-"auf den <placeholder-1/>-Knopf, oder wählen Sie "
+-"<shortcut><keycombo><keycap>Strg</keycap><keycap>Leertaste</keycap></"
+-"keycombo></shortcut><menuchoice><guimenu>Film</"
+-"guimenu><guimenuitem>Wiedergabe / Pause</guimenuitem></menuchoice> aus dem "
+-"Menü."
++"auf den <placeholder-1/>-Knopf oder wählen Sie <menuchoice><shortcut>"
++"<keycombo><keycap>Strg</keycap><keycap>Leertaste</keycap></keycombo>"
++"</shortcut><guimenu>Film</guimenu><guimenuitem>Wiedergabe / Pause</"
++"guimenuitem></menuchoice> aus dem Menü."
+
+ #: C/totem.xml:428(title)
+ msgid "To View Properties of a Movie or Song"
+--- a/help/fi/fi.po
++++ b/help/fi/fi.po
+@@ -258,7 +258,7 @@ msgstr "<guimenu>Sovellus</guimenu>-valikosta"
+
+ #: C/totem.xml:222(para)
+ msgid "Choose <menuchoice><guisubmenu>Sound &amp; Video</guisubmenu><guimenuitem>Movie Player</guimenuitem></menuchoice>."
+-msgstr "Valitse <menuchoice><guisubmenu>Ääni ja kuva</guisubmenu> -valikosta <guimenuitem>Elokuvasoitin</guimenuitem></menuchoice>."
++msgstr "Valitse <menuchoice><guisubmenu>Ääni ja kuva</guisubmenu></menuchoice> -valikosta <guimenuitem>Elokuvasoitin</guimenuitem>."
+
+ #: C/totem.xml:231(term)
+ msgid "Command line"
+--- a/help/it/it.po
++++ b/help/it/it.po
+@@ -1136,12 +1136,13 @@ msgid ""
+ "from the popup menu."
+ msgstr ""
+ "Per mostrare o nascondere i controlli di <application>Totem</application>, "
+-"premere <menuchoice><shortcut><keycap>H</keycap>. In alternativa è possibile "
+-"aprire il menù </shortcut><guimenu>Visualizza</guimenu> e deselezionare "
+-"l'opzione <guilabel>Mostra controlli</guilabel>. Per mostrarli nuovamente, "
+-"fare clic con il tasto destro sulla finestra di <application>Totem</"
+-"application>, quindi scegliere <guilabel>Mostra controlli</guilabel> dal "
+-"menù a discesa."
++"premere <keycap>H</keycap>. In alternativa è possibile aprire il menù"
++"<menuchoice><shortcut><keycombo><keycap>Ctrl</keycap><keycap>H</keycap></"
++"keycombo></shortcut><guimenu>Visualizza</guimenu></menuchoice> e deselezionare "
++"l'opzione <guilabel>Mostra controlli</guilabel>. Per mostrarli"
++"nuovamente, fare clic con il tasto destro sulla finestra di <application>"
++"Totem</application>, quindi scegliere <guilabel>Mostra controlli</guilabel>"
++"dal menù a discesa."
+
+ #: C/totem.xml:604(para)
+ #| msgid ""
+--- a/help/pl/pl.po
++++ b/help/pl/pl.po
+@@ -556,7 +556,7 @@ msgstr "Wyświetlanie/ukrywanie elementów sterujących"
+
+ #: C/totem.xml:592(para)
+ msgid "To show or hide the <application>Totem Movie Player</application> window controls, choose <menuchoice><shortcut><keycombo><keycap>Ctrl</keycap><keycap>H</keycap></keycombo></shortcut><guimenu>View</guimenu><guimenuitem>Show Controls</guimenuitem></menuchoice>, or press the <keycap>H</keycap> key. You can also right-click on the <application>Totem Movie Player</application> window, then choose <menuchoice><shortcut><keycombo><keycap>Ctrl</keycap><keycap>H</keycap></keycombo></shortcut><guimenuitem>Show Controls</guimenuitem></menuchoice> from the popup menu."
+-msgstr "Aby wyświetlić/ukryć elementy sterujące <application>Odtwarzacza filmów Totemie</application>, należy wybrać <choice><shortcut><keycombo><keycap>Ctrl</keycap><keycap>H</keycap></keycombo></shortcut><guimenu>Widok</guimenu><guimenuitem>Wyświetlanie elementów sterujących</guimenuitem></menuchoice>, lub nacisnąć klawisz <keycap>H</keycap>. Można także nacisnąć prawym przyciskiem myszy okno <application>Odtwarzacza filmów Totem</application>, a następnie wybrać <menuchoice><shortcut><keycombo><keycap>Ctrl</keycap><keycap>H</keycap></keycombo></shortcut><guimenuitem>Wyświetlanie elementów sterujących</guimenuitem></menuchoice> z menu podręcznego."
++msgstr "Aby wyświetlić/ukryć elementy sterujące <application>Odtwarzacza filmów Totemie</application>, należy wybrać <menuchoice><shortcut><keycombo><keycap>Ctrl</keycap><keycap>H</keycap></keycombo></shortcut><guimenu>Widok</guimenu><guimenuitem>Wyświetlanie elementów sterujących</guimenuitem></menuchoice>, lub nacisnąć klawisz <keycap>H</keycap>. Można także nacisnąć prawym przyciskiem myszy okno <application>Odtwarzacza filmów Totem</application>, a następnie wybrać <menuchoice><shortcut><keycombo><keycap>Ctrl</keycap><keycap>H</keycap></keycombo></shortcut><guimenuitem>Wyświetlanie elementów sterujących</guimenuitem></menuchoice> z menu podręcznego."
+
+ #: C/totem.xml:604(para)
+ msgid "If the <guilabel>Show Controls</guilabel> option is selected, <application>Totem Movie Player</application> will show the menubar, elapsed time slider, seek control buttons, volume slider and statusbar on the window. If the <guilabel>Show Controls</guilabel> option is unselected, the application will hide these controls and show only the display area."
+@@ -821,7 +821,7 @@ msgstr "Wyszukiwanie lokalne"
+
+ #: C/totem.xml:834(para)
+ msgid "The <guilabel>Local Search</guilabel> plugin allows you to search for playable movies and audio files on your computer from within <application>Totem Movie Player</application>. With the plugin enabled, choose <menuchoice><shortcut><keycap>F9</keycap></shortcut><guimenu>View</guimenu><guimenuitem>Sidebar</guimenuitem></menuchoice> or click on the <guibutton>Sidebar</guibutton> button to show the sidebar. Select <guilabel>Local Search</guilabel> from the drop-down list at the top of the sidebar to display the <guilabel>Local Search</guilabel> sidebar."
+-msgstr "Wtyczka <guilabel>Wyszukiwanie lokalne</guilabel> pozwala na wyszukiwanie filmów i plików muzycznych na komputerze na którym jest uruchomiony <application>Odtwarzacz filmów Totem</application>. Po włączeniu wtyczki należy wybrać <menuchoice><shortcut><keycap>F9</keycap></shortcut><guimenu>View</guimenu><guimenuitem>Panel</guimenuitem> lub nacisnąć przycisk <guibutton>Panel</guibutton>, aby został wyświetlony panel. Następnie należy wybrać opcję <guilabel>Wyszukiwanie lokalne</guilabel> z listy rozwijanej na górze okna panelu aby wyświetlić panel <guilabel>Wyszukiwania lokalnego</guilabel>."
++msgstr "Wtyczka <guilabel>Wyszukiwanie lokalne</guilabel> pozwala na wyszukiwanie filmów i plików muzycznych na komputerze na którym jest uruchomiony <application>Odtwarzacz filmów Totem</application>. Po włączeniu wtyczki należy wybrać <menuchoice><shortcut><keycap>F9</keycap></shortcut><guimenu>View</guimenu><guimenuitem>Panel</guimenuitem></menuchoice> lub nacisnąć przycisk <guibutton>Panel</guibutton>, aby został wyświetlony panel. Następnie należy wybrać opcję <guilabel>Wyszukiwanie lokalne</guilabel> z listy rozwijanej na górze okna panelu aby wyświetlić panel <guilabel>Wyszukiwania lokalnego</guilabel>."
+
+ #: C/totem.xml:839(para)
+ msgid "To perform a search, enter your search terms in the search entry at the top of the sidebar and click <guibutton>Find</guibutton>. Your search terms may include wildcards such as <literal>*</literal>, which will match any character. For example, the search <userinput>*.mpg</userinput> will find all movies with the <filename class=\"extension\">.mpg</filename> file extension."
+--
+1.7.3.4
+
diff --git a/media-video/totem/files/totem-2.32.0-smclient-target-detection.patch b/media-video/totem/files/totem-2.32.0-smclient-target-detection.patch
new file mode 100644
index 0000000..d7876fb
--- /dev/null
+++ b/media-video/totem/files/totem-2.32.0-smclient-target-detection.patch
@@ -0,0 +1,48 @@
+---
+ Fixing passing any kind of argument to --with-smclient
+
+Problem with configure.in of the tarball is that it does not seem to work at all with any --with-smclient variation.
+
+ configure.in | 23 +++++++++++++++++------
+ 1 file changed, 17 insertions(+), 6 deletions(-)
+
+Index: b/configure.in
+===================================================================
+--- a/configure.in
++++ b/configure.in
+@@ -226,18 +226,29 @@ GDK_TARGET="$($PKG_CONFIG --variable tar
+ SMCLIENT_PKGS=
+ AC_MSG_CHECKING([which smclient backend to use])
+ AC_ARG_WITH([smclient],
+- [AS_HELP_STRING([--with-smclient],[which smclient backend to use (xsmp/win32/quartz)])],
++ [AS_HELP_STRING([--with-smclient],[which smclient backend to use @<:@xsmp/win32/quartz/auto@:>@])],
+ [],
+- [case "$GDK_TARGET" in
+- x11) with_smclient=xsmp SMCLIENT_PKGS="sm ice" ;;
++ [$with_smclient=auto])
++
++
++if test "$with_smclient" != "no"; then
++
++ if test "$with_smclient" != "auto" -a "$with_smclient" != "yes"; then
++ GDK_TARGET="$with_smclient"
++ fi
++
++ case "$GDK_TARGET" in
++ x11|xsmp) with_smclient=xsmp SMCLIENT_PKGS="sm ice" ;;
+ win32|quartz) with_smclient=$GDK_TARGET ;;
+ *) with_smclient=no ;;
+- esac])
+-AC_MSG_RESULT([$with_smclient])
++ esac
++
++ AC_MSG_RESULT([$with_smclient])
+
+-if test "$with_smclient" != "no"; then
+ PKG_CHECK_MODULES([SMCLIENT],[$SMCLIENT_PKGS])
+ AC_DEFINE([WITH_SMCLIENT],[1],[Define if smclient is enabled])
++else
++ AC_MSG_RESULT([$with_smclient])
+ fi
+
+ AM_CONDITIONAL([WITH_SMCLIENT],[test "$with_smclient" != "no"])
diff --git a/media-video/totem/metadata.xml b/media-video/totem/metadata.xml
new file mode 100644
index 0000000..07fe82d
--- /dev/null
+++ b/media-video/totem/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>
+ <email>dustin.polke@uni-siegen.de</email>
+ <name>Dustin Polke</name>
+ </maintainer>
+<longdescription>
+Totem is movie player for the GNOME desktop. It features a playlist, fullscreen mode, seek and volume controls, as well as a pretty complete keyboard navigation. It comes with added functionality such as a video thumbnailer for Nautilus, Nautilus properties tab and a webcam utility.
+</longdescription>
+<use>
+ <flag name="bluetooth">Enable support for user-presence detection via the
+ user's bluetooth handset using <pkg>net-wireless/bluez</pkg></flag>
+ <flag name="galago">Allow Totem to set your IM client to "away" when a movie
+ is playing in fullscreen using <pkg>dev-libs/libgalago</pkg></flag>
+ <flag name="iplayer">Enable BBC player support</flag>
+ <flag name="lirc">Enable support for controlling Totem with a remote control
+ using <pkg>app-misc/lirc</pkg></flag>
+ <flag name="nautilus">Enable the nautilus extension</flag>
+ <flag name="python">Build support for <pkg>dev-lang/python</pkg> plugins</flag>
+ <flag name="tracker">Enable support for searching media files using the
+ indexer <pkg>app-misc/tracker</pkg></flag>
+ <flag name="upnp">Enable DLNA support through
+ <pkg>media-video/coherence</pkg></flag>
+ <flag name="youtube">Enable youtube plugin</flag>
+</use>
+</pkgmetadata>
diff --git a/media-video/totem/totem-2.32.0.ebuild b/media-video/totem/totem-2.32.0.ebuild
new file mode 100644
index 0000000..2560450
--- /dev/null
+++ b/media-video/totem/totem-2.32.0.ebuild
@@ -0,0 +1,193 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/totem/totem-2.32.0.ebuild,v 1.11 2011/02/27 15:11:52 eva Exp $
+
+EAPI="3"
+GCONF_DEBUG="yes"
+PYTHON_DEPEND="python? 2"
+PYTHON_USE_WITH="threads"
+
+inherit autotools eutils gnome2 multilib python
+
+DESCRIPTION="Media player for GNOME"
+HOMEPAGE="http://gnome.org/projects/totem/"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd"
+
+# FIXME: Enable for now python USE flag per bug #316409
+# this change should only be noticed by people not following current
+# current linux profiles default
+IUSE="bluetooth debug doc galago iplayer lirc nautilus nsplugin +python tracker upnp +youtube" #zeroconf
+
+# TODO:
+# Cone (VLC) plugin needs someone with the right setup (remi ?)
+# check gmyth requirement ? -> waiting for updates in tree
+# vala ( dev-lang/vala ) requires 0.7.5
+RDEPEND=">=dev-libs/glib-2.25.11:2
+ >=x11-libs/gtk+-2.21.8:2
+ >=gnome-base/gconf-2
+ >=dev-libs/totem-pl-parser-2.30.2
+ >=x11-themes/gnome-icon-theme-2.16
+ x11-libs/cairo
+ >=dev-libs/libxml2-2.6
+ >=dev-libs/dbus-glib-0.82
+ >=media-libs/gstreamer-0.10.30
+ >=media-libs/gst-plugins-good-0.10
+ >=media-libs/gst-plugins-base-0.10.30
+ >=media-plugins/gst-plugins-gconf-0.10
+
+ >=media-plugins/gst-plugins-taglib-0.10
+ >=media-plugins/gst-plugins-gio-0.10
+ >=media-plugins/gst-plugins-pango-0.10
+ >=media-plugins/gst-plugins-x-0.10
+ >=media-plugins/gst-plugins-meta-0.10-r2
+
+ dev-libs/libunique:1
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXtst
+ >=x11-libs/libXrandr-1.1.1
+ >=x11-libs/libXxf86vm-1.0.1
+
+ bluetooth? ( net-wireless/bluez )
+ galago? ( >=dev-libs/libgalago-0.5.2 )
+ iplayer? (
+ dev-python/pygobject:2
+ dev-python/pygtk:2
+ dev-python/httplib2
+ dev-python/feedparser
+ dev-python/beautifulsoup )
+ lirc? ( app-misc/lirc )
+ nautilus? ( >=gnome-base/nautilus-2.10 )
+ nsplugin? ( media-plugins/gst-plugins-soup )
+ python? (
+ >=dev-python/pygtk-2.12:2
+ dev-python/pyxdg
+ dev-python/gst-python
+ dev-python/dbus-python
+ dev-python/gconf-python )
+ tracker? ( >=app-misc/tracker-0.8.1 )
+ upnp? ( media-video/coherence )
+ youtube? (
+ >=dev-libs/libgdata-0.4
+ net-libs/libsoup:2.4
+ media-plugins/gst-plugins-soup )"
+# FIXME: freezes totem
+# zeroconf? ( >=net-libs/libepc-0.3 )
+DEPEND="${RDEPEND}
+ x11-proto/xproto
+ x11-proto/xextproto
+ x11-proto/xf86vidmodeproto
+ app-text/scrollkeeper
+ >=app-text/gnome-doc-utils-0.20.3
+ >=dev-util/intltool-0.40
+ >=dev-util/pkgconfig-0.20
+ app-text/docbook-xml-dtd:4.5
+ gnome-base/gnome-common
+ dev-util/gtk-doc-am
+ doc? ( >=dev-util/gtk-doc-1.11 )"
+# eautoreconf needs:
+# gnome-base/gnome-common
+# dev-util/gtk-doc-am
+
+# docbook-xml-dtd is needed for user doc
+
+pkg_setup() {
+ DOCS="AUTHORS ChangeLog NEWS README TODO"
+ G2CONF="${G2CONF}
+ --disable-scrollkeeper
+ --disable-schemas-install
+ --disable-static
+ --disable-vala
+ --with-dbus
+ --with-smclient
+ --enable-easy-codec-installation
+ $(use_enable nsplugin browser-plugins)"
+
+ # Plugin configuration
+ G2CONF="${G2CONF}
+ BROWSER_PLUGIN_DIR=/usr/$(get_libdir)/nsbrowser/plugins
+ PLUGINDIR=/usr/$(get_libdir)/totem/plugins"
+
+ local plugins="properties,thumbnail,screensaver,ontop,gromit,media-player-keys,skipto,brasero-disc-recorder,screenshot,chapters"
+ use bluetooth && plugins="${plugins},bemused"
+ use galago && plugins="${plugins},galago"
+ use iplayer && plugins="${plugins},iplayer"
+ use lirc && plugins="${plugins},lirc"
+ use python && plugins="${plugins},opensubtitles,jamendo,pythonconsole,dbus-service"
+ use tracker && plugins="${plugins},tracker"
+ use upnp && plugins="${plugins},coherence_upnp"
+ use youtube && plugins="${plugins},youtube"
+ #use zeroconf && plugins="${plugins},publish"
+
+ G2CONF="${G2CONF} --with-plugins=${plugins}"
+
+ G2CONF="${G2CONF}
+ $(use_enable debug)
+ $(use_enable nautilus)
+ $(use_enable python)"
+
+ python_set_active_version 2
+}
+
+src_prepare() {
+ gnome2_src_prepare
+
+ # Use fixed gnome-doc-utils.make, bug #348403 (can be dropped in next bump)
+ cp -f /usr/share/gnome-doc-utils/gnome-doc-utils.make . || die
+
+ # Fix broken smclient option passing
+ epatch "${FILESDIR}/${PN}-2.32.0-smclient-target-detection.patch"
+
+ # Fix XML validation
+ epatch "${FILESDIR}/${PN}-2.32.0-fix-xml-validation.patch"
+
+ intltoolize --force --copy --automake || die "intltoolize failed"
+ eautoreconf
+
+ # disable pyc compiling
+ mv py-compile py-compile.orig
+ ln -s $(type -P true) py-compile
+}
+
+src_configure() {
+ # FIXME: why does it need write access here, probably need to set up a fake
+ # home in /var/tmp like other pkgs do
+
+ addpredict "$(unset HOME; echo ~)/.gconf"
+ addpredict "$(unset HOME; echo ~)/.gconfd"
+ addpredict "$(unset HOME; echo ~)/.gnome2"
+
+ gnome2_src_configure
+}
+
+src_install() {
+ gnome2_src_install
+ # Installed for plugins, but they're dlopen()-ed
+ # firefox, totem as well as nautilus
+ find "${ED}" -name "*.la" -delete || die "remove of la files failed"
+
+ # Fix python script shebangs
+ python_convert_shebangs 2 "${ED}"/usr/libexec/totem/totem-bugreport.py
+}
+
+pkg_postinst() {
+ gnome2_pkg_postinst
+ if use python; then
+ python_need_rebuild
+ python_mod_optimize /usr/$(get_libdir)/totem/plugins
+ fi
+
+ ewarn
+ ewarn "If totem doesn't play some video format, please check your"
+ ewarn "USE flags on media-plugins/gst-plugins-meta"
+ ewarn
+}
+
+pkg_postrm() {
+ gnome2_pkg_postrm
+ python_mod_cleanup /usr/$(get_libdir)/totem/plugins
+}