summaryrefslogtreecommitdiff
path: root/media-sound/qtscrobbler
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/qtscrobbler
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/qtscrobbler')
-rw-r--r--media-sound/qtscrobbler/Manifest7
-rw-r--r--media-sound/qtscrobbler/files/qtscrobbler-0.10-Makefile.patch46
-rw-r--r--media-sound/qtscrobbler/files/qtscrobbler-0.10-free.patch16
-rw-r--r--media-sound/qtscrobbler/metadata.xml14
-rw-r--r--media-sound/qtscrobbler/qtscrobbler-0.10.ebuild71
5 files changed, 154 insertions, 0 deletions
diff --git a/media-sound/qtscrobbler/Manifest b/media-sound/qtscrobbler/Manifest
new file mode 100644
index 000000000000..1b378813d708
--- /dev/null
+++ b/media-sound/qtscrobbler/Manifest
@@ -0,0 +1,7 @@
+AUX qtscrobbler-0.10-Makefile.patch 1359 SHA256 3f7437b4ebdfb7085b5575e8aece347304b56647082500f950b8e4f0a2b45dda SHA512 13c6256dc3121fad8b52e479a4700c807229dd8b29f4d8f79492df9e1c2e06e9d28ab50cbccc73a706f2ec3cbd9be7ffc2274bc015862afa4ea1297a73a6d004 WHIRLPOOL a9bde94e9dd3c6506d22794f256b18210eb19ac6c64421baf5bfd0b8ff5dc53b9346516a44e3185d667583d156dd1f602323139b75aad2f0e80d5d0d2e739e43
+AUX qtscrobbler-0.10-free.patch 623 SHA256 522fe173f6cb6d147398b6679f1f9c4af7e3518e4840e8322ef055c6da23c0d2 SHA512 42d4093e033883fd2dda4313a2c731d418fbbf6ae70a2d79003622f917791560eedf9ea185029bca25416b34ac51bbc1b7e78bb597a33d89b92e6abab89f4226 WHIRLPOOL c2ecfa3c6fe53b14f0fab6dffc499e7bafabe5129d7e224b53193d9c555746c383b367d8da2f085d31336335967263ba0654f9aa4f3137d6c02c6fdfa897063d
+DIST qtscrob-0.10.tar.bz2 132507 SHA256 b77451625d4943a1e19e4418616417944091339db7b31983c593f4bf7d73ee7b SHA512 d743976ef26c4f61402187930ac2cfba71bc4d7079e1166bdb34115196c99d3e0093a4df06d4b0eda24ab4f0f6fcce840812fd2d1dff847dc905adc9a74127c5 WHIRLPOOL 0905d7741a5b77949abad0cf963d6ef87ec59b05993fe1539ade6d78022514e6f134912791a4d0ddc687ea5ac9cc13d3ab5f3138dc9148d083d6b15595078569
+EBUILD qtscrobbler-0.10.ebuild 1403 SHA256 61d3f672b90e6e48970906da3f9790dca309f3ecdae3de44fcc082ffed10f654 SHA512 37d29012f2666a44ebb8ecca08b65d5563c9ca3bf7c6b0404315c989159af5ac2818b046f7ab8da674b329fff066361099ea6489ab71ce756f866a8679f8d6ff WHIRLPOOL 1dd367950f1de813c8551ab6b95ca3bad25e9ee7c8f7d897afdf0c5fd819ec2a730d51d279c2459cb699d97caacf2c5f8439bc7130c2568b44f0835a1387f6d9
+MISC ChangeLog 2518 SHA256 42320d674add698e9031edb1e98754ff42cb885b725f2a4bfb1f248cdf5d60d9 SHA512 958b162d0bb3df0b1ac00d20dab930d3fa421769796ef71fc0cf5c68e3bdc5102cb56db55d62ed0e49c382f4807cf624d12cc659261bc870744c45ff8025505e WHIRLPOOL 49bc815361073e82aba3d7777cad0a225c7c47f3564d051ea6660cbeceb9ec9facec090e125a8e905dc5ccbb2b05b54893be4591ca0cdd6fa49576cf2637f8da
+MISC ChangeLog-2015 1919 SHA256 8eb47628ce6ae17a3ea40358560c94381072e57bb3c724c196a3a5c590444f71 SHA512 62d57985772d64908bfbba21decfb5cff31164d5a2b098df8b2463fced64671fcbdf9387fcb3553d53307a788bc8d76dd5378e669858fdba991857bc30d75b08 WHIRLPOOL 13caa46d33588d247910deb746a2124068ad3099e239d2e5e9d46ca525f9e64dcfb870ab4a31049808cf32146c0a0cfad3ea4e87d09c9b9d414a152e4ea01d04
+MISC metadata.xml 410 SHA256 e05a610d5f437b34aeeb53a221559ed5517c1b568046e814fcb8e52ed1f31d79 SHA512 66998d7596e0dabf7b01af9fa59bd2b4b9d74b5cdd6e902ecbabf81683ff5f84ebf0d4d3dd876d19e510c886ceff741f9ebe163a5214c7f845f256b73601a401 WHIRLPOOL 6583dfef919975cfdf811802e6553090723a10dcbbff6e1f848eb78e4ebc4bae6002fceda320216ee4c70518c571f8bccf2f1c20d6cf2e9ad9f19278c0efd82b
diff --git a/media-sound/qtscrobbler/files/qtscrobbler-0.10-Makefile.patch b/media-sound/qtscrobbler/files/qtscrobbler-0.10-Makefile.patch
new file mode 100644
index 000000000000..0558b72c9bf5
--- /dev/null
+++ b/media-sound/qtscrobbler/files/qtscrobbler-0.10-Makefile.patch
@@ -0,0 +1,46 @@
+--- src/cli/Makefile
++++ src/cli/Makefile
+@@ -1,4 +1,4 @@
+-CC = g++
++CXX ?= g++
+ mingw = false
+ WINDRES =
+ RES =
+@@ -27,7 +27,7 @@
+ LINKOBJ = scrobble-cli.o libscrobble.o md5.o ConvertUTF.o mtp.o $(RES)
+ endif
+
+-CFLAGS = -Wall -O2 -g $(INCLUDE) $(CURL_FLAGS) $(MTP_FLAGS)
++CXXFLAGS += -Wall $(INCLUDE) $(CURL_FLAGS) $(MTP_FLAGS)
+
+ .PHONY: all all-before all-after clean clean-custom
+
+@@ -37,22 +37,22 @@
+ rm -f *.o *~ *.d $(BIN) $(BIN).exe
+
+ $(BIN): $(OBJ)
+- $(CC) $(LINKOBJ) -o $(BIN) $(LIBS)
++ $(CXX) $(LDFLAGS) $(LINKOBJ) -o $(BIN) $(LIBS)
+
+ scrobble-cli.o: scrobble-cli.cpp
+- $(CC) -c scrobble-cli.cpp -o scrobble-cli.o $(CFLAGS)
++ $(CXX) -c scrobble-cli.cpp -o scrobble-cli.o $(CXXFLAGS)
+
+ libscrobble.o: ../lib/libscrobble.cpp
+- $(CC) -c ../lib/libscrobble.cpp -o libscrobble.o $(CFLAGS)
++ $(CXX) -c ../lib/libscrobble.cpp -o libscrobble.o $(CXXFLAGS)
+
+ md5.o: ../lib/md5.c
+- $(CC) -c ../lib/md5.c -o md5.o $(CFLAGS)
++ $(CXX) -c ../lib/md5.c -o md5.o $(CXXFLAGS)
+
+ ConvertUTF.o: ../lib/ConvertUTF.c
+- $(CC) -c ../lib/ConvertUTF.c -o ConvertUTF.o $(CFLAGS)
++ $(CXX) -c ../lib/ConvertUTF.c -o ConvertUTF.o $(CXXFLAGS)
+
+ mtp.o: ../lib/mtp-libmtp.cpp
+- $(CC) -c ../lib/mtp-libmtp.cpp -o mtp.o $(CFLAGS)
++ $(CXX) -c ../lib/mtp-libmtp.cpp -o mtp.o $(CXXFLAGS)
+
+ install:
+ install -D -m 755 scrobble-cli -p $(DESTDIR)$(bindir)/scrobble-cli
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/metadata.xml b/media-sound/qtscrobbler/metadata.xml
new file mode 100644
index 000000000000..2ef2af033cb1
--- /dev/null
+++ b/media-sound/qtscrobbler/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+ <use>
+ <flag name="cli">Build commandline client</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">qtscrob</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild b/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild
new file mode 100644
index 000000000000..c03b41f39d2b
--- /dev/null
+++ b/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils gnome2-utils qt4-r2 toolchain-funcs
+
+MY_PN=qtscrob
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Updates a last.fm profile using information from a supported portable music player"
+HOMEPAGE="http://qtscrob.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="cli +qt4"
+
+RDEPEND=">=media-libs/libmtp-1.1.0
+ net-misc/curl
+ dev-qt/qtgui:4"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-Makefile.patch \
+ "${FILESDIR}"/${P}-free.patch
+}
+
+src_configure() {
+ if use qt4; then
+ pushd src/qt >/dev/null
+ eqmake4 ${MY_PN}.pro
+ popd >/dev/null
+ fi
+}
+
+src_compile() {
+ if use cli; then
+ tc-export CXX
+ emake -C src/cli
+ fi
+
+ if use qt4; then
+ emake -C src/qt
+ fi
+}
+
+src_install() {
+ if use cli; then
+ newbin src/cli/scrobble-cli qtscrobbler-cli
+ fi
+
+ if use qt4; then
+ pushd src/qt >/dev/null
+ newbin qtscrob qtscrobbler
+ 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; }