summaryrefslogtreecommitdiff
path: root/media-sound/qmpdclient
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/qmpdclient
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/qmpdclient')
-rw-r--r--media-sound/qmpdclient/Manifest6
-rw-r--r--media-sound/qmpdclient/files/qmpdclient-1.2.2-qt48.patch40
-rw-r--r--media-sound/qmpdclient/metadata.xml11
-rw-r--r--media-sound/qmpdclient/qmpdclient-1.2.2-r3.ebuild42
4 files changed, 99 insertions, 0 deletions
diff --git a/media-sound/qmpdclient/Manifest b/media-sound/qmpdclient/Manifest
new file mode 100644
index 000000000000..5b22240c2d01
--- /dev/null
+++ b/media-sound/qmpdclient/Manifest
@@ -0,0 +1,6 @@
+AUX qmpdclient-1.2.2-qt48.patch 1484 SHA256 36cbccd5058fcf8a4f23d5e49f8638bf173465fd6c3bf39c00db617abb5270f3 SHA512 5674b1de888f9ed03eb83be471b2f03ccf7a5e463c9c0056d1b276f7ed7bec73a3d4340131cb10a03f8f5cbbfe0b40694c213b6a3d8e90bb6da96c829ea03394 WHIRLPOOL a0ab1b846f1286f7a3c969d528bc0b86a2401db6e03c42774802cebfdb046b1efe52f866971c0257aa30ed23f51af38afd1afce0eda56ff59a5dfa5f9c4773c1
+DIST qmpdclient-1.2.2.tar.bz2 271565 SHA256 ed65705eaae8fb10fdce34ce20e010757a87423c2874479e1466e4368a866289 SHA512 2ae8a2235640c0c644f32290a9d39bcef6f041bb7eca1d269b54433975578c31067f2e5a28d9d679c229075962523b6b20e779b1ed23af7c47129ff4b63e5735 WHIRLPOOL e52e5b99892cc7b475f1c1b26a514b8125d704c83fef02b140307536acad45a94bdc4fe59adbec289d379cd599f4748452f17c5345b166ab443defbfcfeb0460
+EBUILD qmpdclient-1.2.2-r3.ebuild 892 SHA256 48dd6d75f6e78c241997488e19ece826d82ee3ab262512745f3c601a0c2d38c6 SHA512 7a2d64bae3e1566685581fbda231d8e52c650f7eb8a122f7075becfaf8f7b58910cf89f688ea2568ce8540a65d9fcb1ad03a3d06ae1e84a6c96fe1c5216bc60e WHIRLPOOL 198e3604138ef36d8b276c83a0fa8d3554a28148a5d2c67a774839f37ad2fb57e47f12fbb25d98c0edcf9c41bffa4d473ee0e409f59be648bfe792412487a199
+MISC ChangeLog 2604 SHA256 bb4d6ffaab43847f39ae761343560a38bcc17143176ca1f89757e3b0f81de948 SHA512 bbca8b54885bcbec0561de4b5bdc0a9a083e5d7205264ed5d03ba4c3b1be02b4139ddb26c92f003a88f7a07e9563153d597a3c1c74a6c75d70119c6af0ccd59e WHIRLPOOL 9c91762b3047a9ca4e80d4c13f6d9dc78e0111d1072c8d043239b5b4b40f7364a3f6be63c1ae3a4522ce047da859c03c9f9b3cdad6fc95039309a198d0ec617b
+MISC ChangeLog-2015 14452 SHA256 f36fffe04088bca82e078052d8f63fb269ed1607efe51a6e0f39e71962e26188 SHA512 7c75fe9185c0b8787d3b1cb2a309a1928ee0c86b967ded482aced26dda628a74c739284317b9de1aa630bea062328cee0a7de64578c2209b1af233e46a457acd WHIRLPOOL 933ae6a0bb8817d37fd5285be0baea86f9227958133a5d198fa2c936753cbc360d342d04ee05662eb2a9b3e4cca3c625b63ccc83978c7d47a8cc7f09a2986137
+MISC metadata.xml 352 SHA256 122cdcd98a7afc160784dd295d9770c078f830fb9ba30171a0ac30b737554688 SHA512 0344118bc0ba6bb6997dc9476d5f8ab3dd8e53d09767c0e4bf050dcc394d11810e6b437fb114c6f3e83a7cabcd7ef16852d34012390126328773159b51a2a5a2 WHIRLPOOL b447e1b12215f86acf4d263519292bbcf348fc5e6671f36f5c5d702a78996008f6dd0ee0accfacd4356e944ca8b91d954d3e9105698be1cf97aee307765101b6
diff --git a/media-sound/qmpdclient/files/qmpdclient-1.2.2-qt48.patch b/media-sound/qmpdclient/files/qmpdclient-1.2.2-qt48.patch
new file mode 100644
index 000000000000..2eac669c092c
--- /dev/null
+++ b/media-sound/qmpdclient/files/qmpdclient-1.2.2-qt48.patch
@@ -0,0 +1,40 @@
+From 20edef54b109882632f58549d181123b9985d65b Mon Sep 17 00:00:00 2001
+From: Kent Fredric <kentfredric@gmail.com>
+Date: Fri, 1 Jun 2012 21:54:10 +1200
+Subject: [PATCH] First attempt at fixing lastfm scrobbling
+
+---
+ src/lastfmsubmitter.cpp | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/src/lastfmsubmitter.cpp b/src/lastfmsubmitter.cpp
+index cff94bc..a9b6ea9 100644
+--- a/src/lastfmsubmitter.cpp
++++ b/src/lastfmsubmitter.cpp
+@@ -112,7 +112,10 @@ void LastFmSubmitter::scrobbleNp(MPDSong & s) {
+ data += QString("l=%1&").arg(s.secs() >0 ? QString::number(s.secs()) : "100");
+ data += QString("n=%1").arg(QString(QUrl::toPercentEncoding(s.track())));
+ //qDebug() << data;
+- m_netAccess->post(QNetworkRequest(QUrl(m_npUrl)), data.toAscii());
++ QUrl url(m_npUrl);
++ QNetworkRequest request(url);
++ request.setRawHeader("Content-Type", "application/x-www-form-urlencoded");
++ m_netAccess->post(request, data.toAscii());
+ }
+
+ void LastFmSubmitter::scrobbleCurrent() {
+@@ -152,7 +155,10 @@ void LastFmSubmitter::scrobbleQueued() {
+ if (i>0) {
+ //qDebug() << "sending scrobble to " << m_subUrl.toAscii();
+ //qDebug() << "data: " << data.toAscii();
+- m_netAccess->post(QNetworkRequest(QUrl(m_subUrl)), data.toAscii());
++ QUrl url(m_subUrl);
++ QNetworkRequest request(url);
++ request.setRawHeader("Content-Type", "application/x-www-form-urlencoded");
++ m_netAccess->post(request, data.toAscii());
+ m_awaitingScrob = true;
+ }
+ }
+--
+1.7.9.4
+
diff --git a/media-sound/qmpdclient/metadata.xml b/media-sound/qmpdclient/metadata.xml
new file mode 100644
index 000000000000..28569ac4e913
--- /dev/null
+++ b/media-sound/qmpdclient/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+ <longdescription lang="en">
+ QMPDClient is an easy to use Qt4 client for MPD
+ </longdescription>
+</pkgmetadata>
diff --git a/media-sound/qmpdclient/qmpdclient-1.2.2-r3.ebuild b/media-sound/qmpdclient/qmpdclient-1.2.2-r3.ebuild
new file mode 100644
index 000000000000..014cca271ad6
--- /dev/null
+++ b/media-sound/qmpdclient/qmpdclient-1.2.2-r3.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit fdo-mime cmake-utils
+
+DESCRIPTION="QMPDClient with NBL additions, such as lyrics' display"
+HOMEPAGE="http://bitcheese.net/wiki/QMPDClient"
+SRC_URI="http://dump.bitcheese.net/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="debug"
+
+DEPEND="
+ dev-qt/qtdbus:4
+ dev-qt/qtgui:4
+ dev-qt/qtxmlpatterns:4
+ x11-libs/libX11
+"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+DOCS=( AUTHORS README THANKSTO )
+
+PATCHES=( "${FILESDIR}"/${P}-qt48.patch )
+
+src_prepare() {
+ sed -i -e "/^Categories/s/Network/AudioVideo/" ${PN}.desktop || die
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=( "-DVERSION=${PV}" )
+ cmake-utils_src_configure
+}
+
+pkg_postinst() { fdo-mime_desktop_database_update; }
+pkg_postrm() { fdo-mime_desktop_database_update; }