Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=85e3510ec78e41b005d4f6c66e2e832ff3b0fdfb
commit 85e3510ec78e41b005d4f6c66e2e832ff3b0fdfb Author: bouleetbil <[email protected]> Date: Sun Dec 21 00:45:57 2008 +0100 esperanza-0.4.0-3-i686 *rebuild with xmms2-libs-c++>=0.5 *added patch for xmms2-0.5 diff --git a/source/xmultimedia-extra/esperanza/Fix_xmms-0.5.diff b/source/xmultimedia-extra/esperanza/Fix_xmms-0.5.diff new file mode 100644 index 0000000..9460b4c --- /dev/null +++ b/source/xmultimedia-extra/esperanza/Fix_xmms-0.5.diff @@ -0,0 +1,54 @@ +--- esperanza-0.4.0.orig/src/lib/playlistmodel.h ++++ esperanza-0.4.0/src/lib/playlistmodel.h +@@ -128,7 +128,11 @@ + private: + bool handle_list (const Xmms::List< unsigned int > &list); + bool handle_change (const Xmms::Dict &chg); ++#if (XMMS_IPC_PROTOCOL_VERSION > 10) ++ bool handle_update_pos (const Xmms::Dict &pos); ++#else + bool handle_update_pos (const unsigned int &pos); ++#endif + bool handle_pls_loaded (const std::string &); + bool handle_current_pls (const std::string &); + +--- esperanza-0.4.0.orig/src/lib/playlistmodel.cpp ++++ esperanza-0.4.0/src/lib/playlistmodel.cpp +@@ -27,6 +27,9 @@ + + #include "playlistmodel.h" + ++// Used to check for Protocolversion at compiletime ++#include <xmmsc/xmmsc_idnumbers.h> ++ + PlaylistModel::PlaylistModel (QObject *parent, XClient *client, const QString &name) : QAbstractItemModel (parent) + { + // m_columns.append ("#"); +@@ -108,6 +111,19 @@ + return true; + } + ++#if (XMMS_IPC_PROTOCOL_VERSION > 10) ++bool ++PlaylistModel::handle_update_pos (const Xmms::Dict &posdict) ++{ ++ QString changed_pl = XClient::stdToQ (posdict.get<std::string> ("name")); ++ if (changed_pl == m_name) { ++ uint32_t pos = posdict.get<uint32_t> ("position"); ++ m_current_pos = pos; ++ emit dataChanged(index (pos, 0), index (pos, m_columns.size ())); ++ } ++ return true; ++} ++#else + bool + PlaylistModel::handle_update_pos (const uint32_t &pos) + { +@@ -115,6 +131,7 @@ + emit dataChanged(index (pos, 0), index (pos, m_columns.size ())); + return true; + } ++#endif + + QList<QString> + PlaylistModel::columns () const diff --git a/source/xmultimedia-extra/esperanza/FrugalBuild b/source/xmultimedia-extra/esperanza/FrugalBuild index 7962244..a464541 100644 --- a/source/xmultimedia-extra/esperanza/FrugalBuild +++ b/source/xmultimedia-extra/esperanza/FrugalBuild @@ -3,17 +3,18 @@ pkgname=esperanza pkgver=0.4.0 -pkgrel=2 +pkgrel=3 pkgdesc="Esperanza is a client xmms2" url="http://wiki.xmms2.xmms.se/index.php/Client:Esperanza" -depends=('xmms2-libs-c++' 'qt4' 'libboost') +depends=('xmms2-libs-c++>=0.5' 'qt4' 'libboost') makedepends=('boost') groups=('xmultimedia-extra') archs=('i686' 'x86_64') options=('scriptlet') up2date="lynx -dump http://exodus.xmms.se/~tru/esperanza/0.4/ | Flasttar" -source=(http://exodus.xmms.se/~tru/esperanza/0.4/$pkgname-$pkgver.tar.gz) -sha1sums=('88cf26c0af2ede401e5a9145628d2883ee008dab') +source=(http://exodus.xmms.se/~tru/esperanza/0.4/$pkgname-$pkgver.tar.gz Fix_xmms-0.5.diff) +sha1sums=('88cf26c0af2ede401e5a9145628d2883ee008dab' \ + '192a691285f03843ec42d3937241efb372083e6c') Fconfopts="${fconfop...@]} --prefix=$Fdestdir/usr" _F_desktop_categories="AudioVideo;" _F_desktop_icon="$pkgname.png" _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
