summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-sound/qtscrobbler/ChangeLog9
-rw-r--r--media-sound/qtscrobbler/files/qtscrobbler-0.10-free.patch16
-rw-r--r--media-sound/qtscrobbler/qtscrobbler-0.10.ebuild25
3 files changed, 40 insertions, 10 deletions
diff --git a/media-sound/qtscrobbler/ChangeLog b/media-sound/qtscrobbler/ChangeLog
index da70319c8a73..82566c69ff42 100644
--- a/media-sound/qtscrobbler/ChangeLog
+++ b/media-sound/qtscrobbler/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-sound/qtscrobbler
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/ChangeLog,v 1.9 2012/05/05 08:47:47 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/ChangeLog,v 1.10 2012/05/24 03:02:06 ssuominen Exp $
+
+ 24 May 2012; Samuli Suominen <ssuominen@gentoo.org> qtscrobbler-0.10.ebuild,
+ +files/qtscrobbler-0.10-free.patch:
+ Fix building with recent toolchain (missing #include <cstdlib> for function
+ "free") wrt #405667 by Piotr Szymaniak and Krzysztof Kundzicz. Install
+ 128x128 icon to hicolor directory instead of legacy pixmaps and update icon
+ cache.
05 May 2012; Michał Górny <mgorny@gentoo.org> qtscrobbler-0.10.ebuild:
dev-util/pkgconfig -> virtual/pkgconfig
diff --git a/media-sound/qtscrobbler/files/qtscrobbler-0.10-free.patch b/media-sound/qtscrobbler/files/qtscrobbler-0.10-free.patch
new file mode 100644
index 000000000000..d6802751f0e0
--- /dev/null
+++ b/media-sound/qtscrobbler/files/qtscrobbler-0.10-free.patch
@@ -0,0 +1,16 @@
+g++ -c ../lib/mtp-libmtp.cpp -o mtp.o -Wall -I../lib `curl-config --cflags` `pkg-config --cflags libmtp` -DHAVE_LIBMTP
+../lib/mtp-libmtp.cpp: In member function ‘void Scrobble::mtp_iterate(bool)’:
+../lib/mtp-libmtp.cpp:104:30: error: ‘free’ was not declared in this scope
+
+http://bugs.gentoo.org/405667
+
+--- src/lib/mtp-libmtp.cpp
++++ src/lib/mtp-libmtp.cpp
+@@ -16,6 +16,7 @@
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
+ ***************************************************************************/
+
++#include <cstdlib> /* free */
+ #include <iostream>
+ #include "libscrobble.h"
+
diff --git a/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild b/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild
index bd89db26e6bd..0aaa56c98f14 100644
--- a/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild
+++ b/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild,v 1.5 2012/05/05 08:47:47 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild,v 1.6 2012/05/24 03:02:06 ssuominen Exp $
-EAPI=2
-inherit eutils qt4-r2 toolchain-funcs
+EAPI=4
+inherit eutils gnome2-utils qt4-r2 toolchain-funcs
MY_PN=qtscrob
MY_P=${MY_PN}-${PV}
@@ -17,7 +17,7 @@ SLOT="0"
KEYWORDS="amd64 x86"
IUSE="cli +qt4"
-RDEPEND="media-libs/libmtp
+RDEPEND=">=media-libs/libmtp-1.1.0
net-misc/curl
x11-libs/qt-gui:4"
DEPEND="${RDEPEND}
@@ -26,7 +26,9 @@ DEPEND="${RDEPEND}
S=${WORKDIR}/${MY_P}
src_prepare() {
- epatch "${FILESDIR}"/${P}-Makefile.patch
+ epatch \
+ "${FILESDIR}"/${P}-Makefile.patch \
+ "${FILESDIR}"/${P}-free.patch
}
src_configure() {
@@ -40,26 +42,31 @@ src_configure() {
src_compile() {
if use cli; then
tc-export CXX
- emake -C src/cli || die
+ emake -C src/cli
fi
if use qt4; then
- emake -C src/qt || die
+ emake -C src/qt
fi
}
src_install() {
if use cli; then
- newbin src/cli/scrobble-cli qtscrobbler-cli || die
+ newbin src/cli/scrobble-cli qtscrobbler-cli
fi
if use qt4; then
pushd src/qt >/dev/null
newbin qtscrob qtscrobbler
- newicon resources/icons/128.png qtscrobbler.png
+ insinto /usr/share/icons/hicolor/128x128/apps
+ newins resources/icons/128.png qtscrobbler.png
make_desktop_entry qtscrobbler QtScrobbler
popd >/dev/null
fi
dodoc AUTHORS CHANGELOG README
}
+
+pkg_preinst() { gnome2_icon_savelist; }
+pkg_postinst() { gnome2_icon_cache_update; }
+pkg_postrm() { gnome2_icon_cache_update; }