aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/plasma-applet-playwolf
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2010-03-10 06:45:13 +0800
committermiwi <miwi@FreeBSD.org>2010-03-10 06:45:13 +0800
commit5c9973954a0b75b3b78986fa3b3da85bbd79a303 (patch)
tree8e02d8edd45ef861e58ff1d8f29625e2343c79a2 /deskutils/plasma-applet-playwolf
parent889f4b7a4c1c5da8a6083042e4caf6bc6898c91b (diff)
downloadfreebsd-ports-gnome-5c9973954a0b75b3b78986fa3b3da85bbd79a303.tar.gz
freebsd-ports-gnome-5c9973954a0b75b3b78986fa3b3da85bbd79a303.tar.zst
freebsd-ports-gnome-5c9973954a0b75b3b78986fa3b3da85bbd79a303.zip
- Update to 0.8.1
PR: 144091 Submitted by: Jason E. Hale <bsdkaffee@gmail.com> (maintainer)
Diffstat (limited to 'deskutils/plasma-applet-playwolf')
-rw-r--r--deskutils/plasma-applet-playwolf/Makefile21
-rw-r--r--deskutils/plasma-applet-playwolf/distinfo6
-rw-r--r--deskutils/plasma-applet-playwolf/files/patch-infomanager.cpp24
3 files changed, 37 insertions, 14 deletions
diff --git a/deskutils/plasma-applet-playwolf/Makefile b/deskutils/plasma-applet-playwolf/Makefile
index 207ed6bff960..37f73b79dd61 100644
--- a/deskutils/plasma-applet-playwolf/Makefile
+++ b/deskutils/plasma-applet-playwolf/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= playwolf
-PORTVERSION= 0.7.2
-PORTREVISION= 3
+PORTVERSION= 0.8.1
CATEGORIES= deskutils kde
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX= plasma-applet-
@@ -19,7 +18,7 @@ USE_BZIP2= yes
USE_CMAKE= yes
USE_KDE4= automoc4 kdeprefix kdelibs
USE_QT_VER= 4
-QT_COMPONENTS= gui dbus network opengl svg webkit xml \
+QT_COMPONENTS= gui dbus network opengl phonon svg webkit xml xmlpatterns \
qmake_build moc_build rcc_build uic_build
MAKE_JOBS_SAFE= yes
@@ -28,17 +27,17 @@ PLIST_FILES= lib/kde4/plasma_applet_playwolf.so \
WRKSRC= ${WRKDIR}/${PORTNAME}
-ADD_NEWLINE_TO= flowlayout.cpp flowlayout.h playwolf.cpp playwolf.h \
- wolfbuttons.cpp wolflabel.h
-
-.include <bsd.port.pre.mk>
+ADD_NEWLINE_TO= flowlayout.cpp \
+ flowlayout.h \
+ lyricswidget.cpp \
+ playwolf.cpp \
+ playwolf.h \
+ wolfbuttons.cpp \
+ wolflabel.h
post-patch:
.for i in ${ADD_NEWLINE_TO}
${ECHO_CMD} >> ${WRKSRC}/${i}
.endfor
- cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|usr|${KDE4_PREFIX}|g' \
- infomanager.cpp wolflabel.cpp
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/deskutils/plasma-applet-playwolf/distinfo b/deskutils/plasma-applet-playwolf/distinfo
index 318ac4e5e187..ce147a1d4300 100644
--- a/deskutils/plasma-applet-playwolf/distinfo
+++ b/deskutils/plasma-applet-playwolf/distinfo
@@ -1,3 +1,3 @@
-MD5 (playwolf-0.7.2.tar.bz2) = 0f9f051aa5e1762ad5bbad0197d3bedf
-SHA256 (playwolf-0.7.2.tar.bz2) = 3978ac01cbe23bc701a1256d5c1538953d3339ade53d6a2255f514051a1dc424
-SIZE (playwolf-0.7.2.tar.bz2) = 22217
+MD5 (playwolf-0.8.1.tar.bz2) = 28ec4f7abfcc367c0dae67f4d423d569
+SHA256 (playwolf-0.8.1.tar.bz2) = f41a39f8f4078baa9a7e9fa44f0a81164f8b468eddfc06f5d73cf491a58dad04
+SIZE (playwolf-0.8.1.tar.bz2) = 22840
diff --git a/deskutils/plasma-applet-playwolf/files/patch-infomanager.cpp b/deskutils/plasma-applet-playwolf/files/patch-infomanager.cpp
new file mode 100644
index 000000000000..f4dd520615e4
--- /dev/null
+++ b/deskutils/plasma-applet-playwolf/files/patch-infomanager.cpp
@@ -0,0 +1,24 @@
+--- ./infomanager.cpp.orig 2010-01-13 16:32:23.000000000 -0500
++++ ./infomanager.cpp 2010-02-05 01:27:39.000000000 -0500
+@@ -22,6 +22,7 @@
+ #include <QtGui/QGraphicsWidget>
+
+ #include <KDebug>
++#include <KStandardDirs>
+
+ #include "playercontroller.h"
+
+@@ -105,9 +106,11 @@
+ if (metadata.value("arturl").toString() != QString()) {
+ emit updateCover(metadata.value("arturl").toString());
+ } else if (mode == QString("lastfm")) {
+- emit updateCover("file:///usr/share/apps/amarok/images/lastfm-default-cover.png");
++ QString lastfmcover = KGlobal::dirs()->findResource("data", QString("amarok/images/lastfm-default-cover.png"));
++ emit updateCover(lastfmcover);
+ } else {
+- emit updateCover("file:///usr/share/apps/amarok/images/nocover.png");
++ QString nocover = KGlobal::dirs()->findResource("data", QString("amarok/images/nocover.png"));
++ emit updateCover(nocover);
+ }
+
+ emit updateInfos(metadata.value("artist").toString(),