FreeBSD Bugzilla – Attachment 95937 Details for
Bug 134441
audio/esperanza: update to 0.4.0 and unbreak
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 4.72 KB, created by
Max Brazhnikov
on 2009-05-10 22:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Max Brazhnikov
Created:
2009-05-10 22:10:01 UTC
Size:
4.72 KB
patch
obsolete
>Index: ports/audio/esperanza/Makefile >=================================================================== >RCS file: /home/pcvs/ports/audio/esperanza/Makefile,v >retrieving revision 1.7 >diff -u -r1.7 Makefile >--- ports/audio/esperanza/Makefile 9 Aug 2008 14:03:12 -0000 1.7 >+++ ports/audio/esperanza/Makefile 10 May 2009 20:58:44 -0000 >@@ -6,28 +6,24 @@ > # > > PORTNAME= esperanza >-PORTVERSION= 0.3 >-PORTREVISION= 2 >+PORTVERSION= 0.4.0 > CATEGORIES= audio >-MASTER_SITES= http://xmms2.xmms.se/~tru/esperanza/0.3/ >+MASTER_SITES= http://exodus.xmms.se/~tru/esperanza/0.4/ > > MAINTAINER= alexbl@FreeBSD.org > COMMENT= Advanced QT4 XMMS2 client > >-BUILD_DEPENDS= ${LOCALBASE}/lib/libxmmsclient++.so.3:${PORTSDIR}/audio/cpp-xmms2 >-RUN_DEPENDS= ${LOCALBASE}/lib/libxmmsclient++.so.3:${PORTSDIR}/audio/cpp-xmms2 >- >-BROKEN= does not build >+LIB_DEPENDS= xmmsclient++.3:${PORTSDIR}/audio/cpp-xmms2 > > USE_QT_VER= 4 >-QT_COMPONENTS= gui moc qmake rcc uic xml network imageformats >+QT_COMPONENTS= gui xml network imageformats_run \ >+ qmake_build moc_build rcc_build uic_build > HAS_CONFIGURE= yes >+QT_NONSTANDARD= yes > USE_GMAKE= yes >+CONFIGURE_ARGS+=--prefix=${PREFIX} --disable-growl >+MAKE_JOBS_SAFE= yes > > PLIST_FILES= bin/esperanza > >-do-configure: >- @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ >- ${QMAKE} -unix PREFIX=${PREFIX} esperanza.pro >- > .include <bsd.port.mk> >Index: ports/audio/esperanza/distinfo >=================================================================== >RCS file: /home/pcvs/ports/audio/esperanza/distinfo,v >retrieving revision 1.2 >diff -u -r1.2 distinfo >--- ports/audio/esperanza/distinfo 27 May 2007 22:58:32 -0000 1.2 >+++ ports/audio/esperanza/distinfo 10 May 2009 15:22:11 -0000 >@@ -1,3 +1,3 @@ >-MD5 (esperanza-0.3.tar.gz) = 4a6c23d2e4f73af2d2143e1e0f5ea766 >-SHA256 (esperanza-0.3.tar.gz) = c365c22c0154f15a83951e287068faf0b862ae017a7b402ed34e0ca85cde3ae6 >-SIZE (esperanza-0.3.tar.gz) = 211618 >+MD5 (esperanza-0.4.0.tar.gz) = 0b97576cee5d89a58aef9a6754d3fb00 >+SHA256 (esperanza-0.4.0.tar.gz) = 81402074e03160cf2f093a31565b040bf2206f0c8e89b8d4088d1ecbcf519359 >+SIZE (esperanza-0.4.0.tar.gz) = 238337 >Index: ports/audio/esperanza/files/patch-src_lib_playlistmodel.cpp >=================================================================== >RCS file: ports/audio/esperanza/files/patch-src_lib_playlistmodel.cpp >diff -N ports/audio/esperanza/files/patch-src_lib_playlistmodel.cpp >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ ports/audio/esperanza/files/patch-src_lib_playlistmodel.cpp 10 May 2009 20:52:22 -0000 >@@ -0,0 +1,42 @@ >+diff --git a/src/lib/playlistmodel.cpp b/src/lib/playlistmodel.cpp >+index 69a8d46..dab4967 100644 >+--- ./src/lib/playlistmodel.cpp >++++ ./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 @@ PlaylistModel::handle_pls_loaded (const std::string &name) >+ 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 @@ PlaylistModel::handle_update_pos (const uint32_t &pos) >+ emit dataChanged(index (pos, 0), index (pos, m_columns.size ())); >+ return true; >+ } >++#endif >+ >+ QList<QString> >+ PlaylistModel::columns () const >Index: ports/audio/esperanza/files/patch-src_lib_playlistmodel.h >=================================================================== >RCS file: ports/audio/esperanza/files/patch-src_lib_playlistmodel.h >diff -N ports/audio/esperanza/files/patch-src_lib_playlistmodel.h >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ ports/audio/esperanza/files/patch-src_lib_playlistmodel.h 10 May 2009 20:52:17 -0000 >@@ -0,0 +1,16 @@ >+diff --git a/src/lib/playlistmodel.h b/src/lib/playlistmodel.h >+index d4f6860..eb54660 100644 >+--- ./src/lib/playlistmodel.h >++++ ./src/lib/playlistmodel.h >+@@ -128,7 +128,11 @@ class PlaylistModel : public QAbstractItemModel >+ 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 &); >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 134441
: 95937