[arch-commits] Commit in totem/trunk (PKGBUILD bugreport.patch)

Jan Steffens heftig at nymeria.archlinux.org
Tue May 14 08:09:18 EDT 2013


    Date: Tuesday, May 14, 2013 @ 14:09:17
  Author: heftig
Revision: 185505

python fixes

Added:
  totem/trunk/bugreport.patch
Modified:
  totem/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   26 +++++++++++++++-----------
 bugreport.patch |   22 ++++++++++++++++++++++
 2 files changed, 37 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-14 12:01:48 UTC (rev 185504)
+++ PKGBUILD	2013-05-14 12:09:17 UTC (rev 185505)
@@ -12,15 +12,24 @@
 license=(GPL2 custom)
 depends=(gst-plugins-base gst-plugins-good totem-plparser desktop-file-utils iso-codes libpeas
          hicolor-icon-theme gnome-icon-theme gsettings-desktop-schemas dconf clutter-gst
-         clutter-gtk python2-gobject gst-plugins-bad)
+         clutter-gtk python-gobject python-xdg gst-plugins-bad)
 makedepends=(intltool libnautilus-extension lirc-utils vala grilo dbus-glib libzeitgeist
-             itstool docbook-xsl python2-pylint)
+             itstool docbook-xsl python-pylint)
 options=('!libtool' '!emptydirs')
 source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver%.*}/$pkgbase-$pkgver.tar.xz
-        browser-plugins.ini)
+        browser-plugins.ini bugreport.patch)
 sha256sums=('eda9e0a016bb2ac14f7cd7c8c03b8ee1ab3f1b3ba6558f65c64514e5d2583e01'
-            'a50a3bbf35f0535f7e8e20af1893446a2e5711015484f9ae6d1ff91af3b23c4e')
+            'a50a3bbf35f0535f7e8e20af1893446a2e5711015484f9ae6d1ff91af3b23c4e'
+            '30481dab7e21b66257e3238f5a8b708e1a5c4797d7da904f7ebaba4c2c2ef167')
 
+
+prepare() {
+  cd "$pkgbase-$pkgver"
+
+  # Make compatible with Python 3 and Gstreamer 1.0
+  patch -Np1 -i ../bugreport.patch
+}
+
 build() {
   cd "$pkgbase-$pkgver"
   ./configure --prefix=/usr \
@@ -29,8 +38,7 @@
     --localstatedir=/var \
     --disable-static \
     --enable-python \
-    --enable-nautilus \
-    PYLINT=/usr/bin/pylint2
+    --enable-nautilus
   make
 }
 
@@ -41,7 +49,6 @@
               'gst-libav: Extra media codecs'
               'lirc-utils: Infrared Remote Control plugin'
               'grilo-plugins: Browse sidebar (remote media)'
-              'pyxdg: opensubtitles plugin'
               'libzeitgeist: Zeitgeist plugin')
 
   cd "$pkgbase-$pkgver"
@@ -50,9 +57,6 @@
   rm -r "$pkgdir/usr/lib/mozilla"
   rm "$pkgdir/usr/lib/totem/totem-plugin-viewer"
 
-  sed -i "s|#!/usr/bin/python$|#!/usr/bin/python2|" \
-    $pkgdir/usr/lib/totem/totem/totem-bugreport.py
-
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/totem/COPYING"
 }
 
@@ -66,7 +70,7 @@
     plugindir=/usr/lib/mozilla/plugins \
     xptdir=/usr/lib/mozilla/plugins \
     DESTDIR="$pkgdir" install
-  
+
   install -Dm644 ../browser-plugins.ini "$pkgdir/etc/totem/browser-plugins.ini"
 
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/totem-plugin/COPYING"

Added: bugreport.patch
===================================================================
--- bugreport.patch	                        (rev 0)
+++ bugreport.patch	2013-05-14 12:09:17 UTC (rev 185505)
@@ -0,0 +1,22 @@
+diff -u -r totem-3.8.2/data/totem-bugreport.py totem-3.8.2-bugreport/data/totem-bugreport.py
+--- totem-3.8.2/data/totem-bugreport.py	2013-03-13 16:34:44.000000000 +0100
++++ totem-3.8.2-bugreport/data/totem-bugreport.py	2013-05-14 13:54:04.243699665 +0200
+@@ -4,7 +4,7 @@
+ from gi.repository import Gtk
+ 
+ # Get the GStreamer version
+-if os.system ('gst-typefind-0.10 --version') == 0:
++if os.system ('gst-typefind-1.0 --version') == 0:
+ 	# List the formats of the last files played
+ 	last_visited = 0
+ 	recent_manager = Gtk.RecentManager.get_default ()
+@@ -15,7 +15,7 @@
+ 				last = recent.get_uri_display ()
+ 
+ 	if last != None:
+-		file_handle = os.popen ('gst-typefind-0.10 "%s"' % (last))
++		file_handle = os.popen ('gst-typefind-1.0 "%s"' % (last))
+ 		parts = file_handle.read ().split (' ')
+ 		date = datetime.fromtimestamp (last_visited)
+-		print 'Listened to a "%s" file on %s' % (parts.pop ().strip (), date.isoformat ())
++		print('Listened to a "%s" file on %s' % (parts.pop ().strip (), date.isoformat ()))



More information about the arch-commits mailing list