Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/qtscrobbler/files/, media-sound/qtscrobbler/
Date: Thu, 26 Apr 2018 03:32:10
Message-Id: 1524713372.dbee56a770dc191feeacad4d2d999ec5b8ce2379.asturm@gentoo
1 commit: dbee56a770dc191feeacad4d2d999ec5b8ce2379
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 25 19:34:48 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 26 03:29:32 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbee56a7
7
8 media-sound/qtscrobbler: Drop old Qt4-based
9
10 Bug: https://bugs.gentoo.org/641922
11 Package-Manager: Portage-2.3.31, Repoman-2.3.9
12
13 media-sound/qtscrobbler/Manifest | 1 -
14 .../files/qtscrobbler-0.10-Makefile.patch | 46 --------------
15 .../qtscrobbler/files/qtscrobbler-0.10-free.patch | 16 -----
16 media-sound/qtscrobbler/metadata.xml | 3 -
17 media-sound/qtscrobbler/qtscrobbler-0.10.ebuild | 71 ----------------------
18 5 files changed, 137 deletions(-)
19
20 diff --git a/media-sound/qtscrobbler/Manifest b/media-sound/qtscrobbler/Manifest
21 index 6dcf57b924a..282a1a2e861 100644
22 --- a/media-sound/qtscrobbler/Manifest
23 +++ b/media-sound/qtscrobbler/Manifest
24 @@ -1,2 +1 @@
25 -DIST qtscrob-0.10.tar.bz2 132507 BLAKE2B 168bc3747bb48e7c5fedbaeb66cf12c4d7230fb240fb9b034b576f739ef55c497cdb6d8383bace8a00ad54890882134598777acc826d8ced195488b932123e92 SHA512 d743976ef26c4f61402187930ac2cfba71bc4d7079e1166bdb34115196c99d3e0093a4df06d4b0eda24ab4f0f6fcce840812fd2d1dff847dc905adc9a74127c5
26 DIST qtscrobbler-0.11_pre20130123.zip 298519 BLAKE2B 36d3c3fdf59aa7fd9127c0200b03a6427f6fa27cb40e144f10041a25ba977e40fc5f63547596cf93f797d94e741a4a159c5e1aa48f8742d7738d1c113b22aae8 SHA512 24de4a45d4b31fb3c544b963b97b8716b8472a0dfde1bd2fd6bf101785f22ef07ff34fcd9ce7028fe231b215538bb8e4c3248c234feb870a3adeb4c0b259d646
27
28 diff --git a/media-sound/qtscrobbler/files/qtscrobbler-0.10-Makefile.patch b/media-sound/qtscrobbler/files/qtscrobbler-0.10-Makefile.patch
29 deleted file mode 100644
30 index 0558b72c9bf..00000000000
31 --- a/media-sound/qtscrobbler/files/qtscrobbler-0.10-Makefile.patch
32 +++ /dev/null
33 @@ -1,46 +0,0 @@
34 ---- src/cli/Makefile
35 -+++ src/cli/Makefile
36 -@@ -1,4 +1,4 @@
37 --CC = g++
38 -+CXX ?= g++
39 - mingw = false
40 - WINDRES =
41 - RES =
42 -@@ -27,7 +27,7 @@
43 - LINKOBJ = scrobble-cli.o libscrobble.o md5.o ConvertUTF.o mtp.o $(RES)
44 - endif
45 -
46 --CFLAGS = -Wall -O2 -g $(INCLUDE) $(CURL_FLAGS) $(MTP_FLAGS)
47 -+CXXFLAGS += -Wall $(INCLUDE) $(CURL_FLAGS) $(MTP_FLAGS)
48 -
49 - .PHONY: all all-before all-after clean clean-custom
50 -
51 -@@ -37,22 +37,22 @@
52 - rm -f *.o *~ *.d $(BIN) $(BIN).exe
53 -
54 - $(BIN): $(OBJ)
55 -- $(CC) $(LINKOBJ) -o $(BIN) $(LIBS)
56 -+ $(CXX) $(LDFLAGS) $(LINKOBJ) -o $(BIN) $(LIBS)
57 -
58 - scrobble-cli.o: scrobble-cli.cpp
59 -- $(CC) -c scrobble-cli.cpp -o scrobble-cli.o $(CFLAGS)
60 -+ $(CXX) -c scrobble-cli.cpp -o scrobble-cli.o $(CXXFLAGS)
61 -
62 - libscrobble.o: ../lib/libscrobble.cpp
63 -- $(CC) -c ../lib/libscrobble.cpp -o libscrobble.o $(CFLAGS)
64 -+ $(CXX) -c ../lib/libscrobble.cpp -o libscrobble.o $(CXXFLAGS)
65 -
66 - md5.o: ../lib/md5.c
67 -- $(CC) -c ../lib/md5.c -o md5.o $(CFLAGS)
68 -+ $(CXX) -c ../lib/md5.c -o md5.o $(CXXFLAGS)
69 -
70 - ConvertUTF.o: ../lib/ConvertUTF.c
71 -- $(CC) -c ../lib/ConvertUTF.c -o ConvertUTF.o $(CFLAGS)
72 -+ $(CXX) -c ../lib/ConvertUTF.c -o ConvertUTF.o $(CXXFLAGS)
73 -
74 - mtp.o: ../lib/mtp-libmtp.cpp
75 -- $(CC) -c ../lib/mtp-libmtp.cpp -o mtp.o $(CFLAGS)
76 -+ $(CXX) -c ../lib/mtp-libmtp.cpp -o mtp.o $(CXXFLAGS)
77 -
78 - install:
79 - install -D -m 755 scrobble-cli -p $(DESTDIR)$(bindir)/scrobble-cli
80
81 diff --git a/media-sound/qtscrobbler/files/qtscrobbler-0.10-free.patch b/media-sound/qtscrobbler/files/qtscrobbler-0.10-free.patch
82 deleted file mode 100644
83 index d6802751f0e..00000000000
84 --- a/media-sound/qtscrobbler/files/qtscrobbler-0.10-free.patch
85 +++ /dev/null
86 @@ -1,16 +0,0 @@
87 -g++ -c ../lib/mtp-libmtp.cpp -o mtp.o -Wall -I../lib `curl-config --cflags` `pkg-config --cflags libmtp` -DHAVE_LIBMTP
88 -../lib/mtp-libmtp.cpp: In member function ‘void Scrobble::mtp_iterate(bool)’:
89 -../lib/mtp-libmtp.cpp:104:30: error: ‘free’ was not declared in this scope
90 -
91 -http://bugs.gentoo.org/405667
92 -
93 ---- src/lib/mtp-libmtp.cpp
94 -+++ src/lib/mtp-libmtp.cpp
95 -@@ -16,6 +16,7 @@
96 - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
97 - ***************************************************************************/
98 -
99 -+#include <cstdlib> /* free */
100 - #include <iostream>
101 - #include "libscrobble.h"
102 -
103
104 diff --git a/media-sound/qtscrobbler/metadata.xml b/media-sound/qtscrobbler/metadata.xml
105 index 2ef2af033cb..ad4d7db42b1 100644
106 --- a/media-sound/qtscrobbler/metadata.xml
107 +++ b/media-sound/qtscrobbler/metadata.xml
108 @@ -5,9 +5,6 @@
109 <email>sound@g.o</email>
110 <name>Gentoo Sound project</name>
111 </maintainer>
112 - <use>
113 - <flag name="cli">Build commandline client</flag>
114 - </use>
115 <upstream>
116 <remote-id type="sourceforge">qtscrob</remote-id>
117 </upstream>
118
119 diff --git a/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild b/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild
120 deleted file mode 100644
121 index c03b41f39d2..00000000000
122 --- a/media-sound/qtscrobbler/qtscrobbler-0.10.ebuild
123 +++ /dev/null
124 @@ -1,71 +0,0 @@
125 -# Copyright 1999-2013 Gentoo Foundation
126 -# Distributed under the terms of the GNU General Public License v2
127 -
128 -EAPI=4
129 -inherit eutils gnome2-utils qt4-r2 toolchain-funcs
130 -
131 -MY_PN=qtscrob
132 -MY_P=${MY_PN}-${PV}
133 -
134 -DESCRIPTION="Updates a last.fm profile using information from a supported portable music player"
135 -HOMEPAGE="http://qtscrob.sourceforge.net/"
136 -SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
137 -
138 -LICENSE="GPL-2"
139 -SLOT="0"
140 -KEYWORDS="amd64 x86"
141 -IUSE="cli +qt4"
142 -
143 -RDEPEND=">=media-libs/libmtp-1.1.0
144 - net-misc/curl
145 - dev-qt/qtgui:4"
146 -DEPEND="${RDEPEND}
147 - virtual/pkgconfig"
148 -
149 -S=${WORKDIR}/${MY_P}
150 -
151 -src_prepare() {
152 - epatch \
153 - "${FILESDIR}"/${P}-Makefile.patch \
154 - "${FILESDIR}"/${P}-free.patch
155 -}
156 -
157 -src_configure() {
158 - if use qt4; then
159 - pushd src/qt >/dev/null
160 - eqmake4 ${MY_PN}.pro
161 - popd >/dev/null
162 - fi
163 -}
164 -
165 -src_compile() {
166 - if use cli; then
167 - tc-export CXX
168 - emake -C src/cli
169 - fi
170 -
171 - if use qt4; then
172 - emake -C src/qt
173 - fi
174 -}
175 -
176 -src_install() {
177 - if use cli; then
178 - newbin src/cli/scrobble-cli qtscrobbler-cli
179 - fi
180 -
181 - if use qt4; then
182 - pushd src/qt >/dev/null
183 - newbin qtscrob qtscrobbler
184 - insinto /usr/share/icons/hicolor/128x128/apps
185 - newins resources/icons/128.png qtscrobbler.png
186 - make_desktop_entry qtscrobbler QtScrobbler
187 - popd >/dev/null
188 - fi
189 -
190 - dodoc AUTHORS CHANGELOG README
191 -}
192 -
193 -pkg_preinst() { gnome2_icon_savelist; }
194 -pkg_postinst() { gnome2_icon_cache_update; }
195 -pkg_postrm() { gnome2_icon_cache_update; }