diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/listen |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/listen')
-rw-r--r-- | community/listen/PKGBUILD | 47 | ||||
-rw-r--r-- | community/listen/listen-fix-dbus.diff | 49 | ||||
-rw-r--r-- | community/listen/listen-fix-encoding.diff | 16 |
3 files changed, 112 insertions, 0 deletions
diff --git a/community/listen/PKGBUILD b/community/listen/PKGBUILD new file mode 100644 index 000000000..ca594fa72 --- /dev/null +++ b/community/listen/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us> +# Contributor: Evangelos Foutras <foutrelis@gmail.com> +# Contributor: Hugo Doria <hugodoria@gmail.com> + +pkgname=listen +pkgver=0.6.5 +pkgrel=6 +pkgdesc="Music player and management for GNOME" +arch=('i686' 'x86_64') +url="http://www.listen-project.org/" +license=('GPL2') +depends=('python2-egg' 'python2-libgnome' 'mutagen' + 'gnome-icon-theme' 'gstreamer0.10-python' 'notification-daemon' 'pyxdg' + 'pywebkitgtk' 'pyinotify' 'gstreamer0.10-good-plugins' 'dbus-python') +makedepends=('gettext' 'pkgconfig' 'intltool' 'docbook2x' 'docbook-xml') +optdepends=('python-musicbrainz2: musicbrainz & cd support' + 'libgpod: iPod support' + 'hal: hal support' + 'python-daap: DAAP support' + 'tunepimp: tagging support') +source=("http://download.listen-project.org/0.6/${pkgname}-${pkgver}.tar.gz") +md5sums=('76cd9ad2fc9c600dbdf4808c15aeccf1') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + chmod +x mmkeys/setup.py + + # Fix command name + sed -i 's/docbook2x-man/docbook2man/' Makefile + + # Point Python scripts to the python2 binary + sed -i -e 's/python -/python2 -/' \ + -e 's/PYTHON = python$/\02/' \ + Makefile + sed -i 's/env python$/env python2/' mmkeys/setup.py + + make CHECK_DEPENDS=0 PREFIX=/usr +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} PREFIX=/usr install +} + +# vim:set ts=2 sw=2 et: diff --git a/community/listen/listen-fix-dbus.diff b/community/listen/listen-fix-dbus.diff new file mode 100644 index 000000000..5953352f1 --- /dev/null +++ b/community/listen/listen-fix-dbus.diff @@ -0,0 +1,49 @@ +Index: src/dbus_manager.py +=================================================================== +--- src/dbus_manager.py (revision 670) ++++ src/dbus_manager.py (working copy) +@@ -30,9 +30,18 @@ + import dbus + import dbus.service + #Try connection du message bus +- dbus.SessionBus() +- if getattr(dbus, 'version', (0,0,0)) >= (0,41,0): ++ dbus_version = getattr(dbus, 'version',(0,0,0)) ++ if dbus_version >= (0,41,0) and dbus_version < (0,80,0): ++ dbus.SessionBus() + import dbus.glib ++ elif dbus_version >= (0,80,0): ++ from dbus.mainloop.glib import DBusGMainLoop ++ DBusGMainLoop(set_as_default=True) ++ dbus.SessionBus() ++ else: ++ pass ++ ++ + except: dbus_imported = False + else: dbus_imported=True + +@@ -41,14 +50,14 @@ + + if not dbus_imported: + class ListenDBus: +- def __init__(self,win,player,object_path="/org/gnome/listen/"): ++ def __init__(self,win,player,object_path="/org/gnome/listen"): + self.player = player + self.win = win + print "No dbus support" + else: + + class ListenDBus(dbus.service.Object): +- def __init__(self,win,player,object_path="/org/gnome/listen/"): ++ def __init__(self,win,player,object_path="/org/gnome/listen"): + self.player = player + self.win = win + self.bus = dbus.SessionBus() +@@ -105,4 +114,4 @@ + song = self.player.song + return str( song.get_str("title")+ " - ("+song.get_str("album")+" - "+song.get_str("artist")+")") + else: +- return "" +\ No newline at end of file ++ return "" diff --git a/community/listen/listen-fix-encoding.diff b/community/listen/listen-fix-encoding.diff new file mode 100644 index 000000000..9c29e155c --- /dev/null +++ b/community/listen/listen-fix-encoding.diff @@ -0,0 +1,16 @@ +diff -Naur listen-0.5-orig/src/const.py listen-0.5/src/const.py +--- listen-0.5-orig/src/const.py 2007-03-19 20:52:43.000000000 -0400 ++++ listen-0.5/src/const.py 2007-03-19 20:53:41.000000000 -0400 +@@ -1,3 +1,4 @@ ++# coding=utf-8 + # vim: ts=4 + ### + # +diff -Naur listen-0.5-orig/src/song.py listen-0.5/src/song.py +--- listen-0.5-orig/src/song.py 2007-03-19 20:52:43.000000000 -0400 ++++ listen-0.5/src/song.py 2007-03-19 20:53:58.000000000 -0400 +@@ -1,3 +1,4 @@ ++# coding=utf-8 + # vim: ts=4 + ### + # |