Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/minitube/, media-video/minitube/files/
Date: Sun, 04 Dec 2016 11:50:42
Message-Id: 1480847873.496dad02a26292e868a98d98422fd739e6ff30d2.pacho@gentoo
1 commit: 496dad02a26292e868a98d98422fd739e6ff30d2
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 4 10:37:53 2016 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 4 10:37:53 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=496dad02
7
8 media-video/minitube: Drop old
9
10 Package-Manager: portage-2.3.2
11
12 media-video/minitube/Manifest | 2 -
13 .../minitube/files/minitube-1.9-gcc47.patch | 12 ---
14 .../files/minitube-2.0-disable-updates.patch | 16 ----
15 .../files/minitube-2.4-disable-updates.patch | 13 ---
16 media-video/minitube/minitube-2.0.ebuild | 60 --------------
17 media-video/minitube/minitube-2.4.ebuild | 92 ---------------------
18 media-video/minitube/minitube-2.5.2.ebuild | 96 ----------------------
19 7 files changed, 291 deletions(-)
20
21 diff --git a/media-video/minitube/Manifest b/media-video/minitube/Manifest
22 index 8e5a612..a064b3c 100644
23 --- a/media-video/minitube/Manifest
24 +++ b/media-video/minitube/Manifest
25 @@ -1,3 +1 @@
26 -DIST minitube-2.0.tar.gz 713577 SHA256 1ba1dd7725e6e0c92653fdee7bcfa4b833346d2ef4c091d94b181b60bb592554 SHA512 f08f49549486f22d6156aa4344fd0698e03b0fcf669530010a648467cd3da1edbe6ee9e7c7578c69c7f410a03afe2e5c25bb84e6e1dc70c6534210566789f81e WHIRLPOOL 415d5b17a0862aa74c09a4950be43cd78b5ab5f26c7d0bd5d4c4b78d97989b181ecdc86955f843348b52fc582346fbae32d664f43e5ba76fcc995a59c572776b
27 -DIST minitube-2.4.tar.gz 984265 SHA256 1d8a427a4120d623c689969d92904bf66bf7d3edafcb0f6f9eb7f24d6db39c7b SHA512 45a90322540a281b337511af5e52a25bb5d908d3e37b6d7d4a068a2cb0d598095b6a312f862c7043851ceeda63c66944213646ba154ae505229da7fbe48251dc WHIRLPOOL 932ebcbf2397ceba78af6823f6eeb56edbf9b4c58dfd15218d10572d6a47110867b969b4711a1bcc0a00d3d47361ddec3c98fea7f69d5b56db40b842dba57b97
28 DIST minitube-2.5.2.tar.gz 1063794 SHA256 63678bf153e77e8cdaf6b43bb9a7bf2c5694c62698c3236f1a1133494362d6b5 SHA512 4001ea95e6d3b541e9a8a2555830238f6e3a0b4749566dfd67ae48fdc6102ec77a38e162e04fb2637cc5ff2b3dccdca541119531302332ffa3b90d9db8809284 WHIRLPOOL affb33b2a2b1dea771452c33b4167e0e250a4f5869080b6c4426c372303d62e1f220f62fc64f0d087a75940869042712678a523224cf250247de2bbda46b4248
29
30 diff --git a/media-video/minitube/files/minitube-1.9-gcc47.patch b/media-video/minitube/files/minitube-1.9-gcc47.patch
31 deleted file mode 100644
32 index 4589eb5..00000000
33 --- a/media-video/minitube/files/minitube-1.9-gcc47.patch
34 +++ /dev/null
35 @@ -1,12 +0,0 @@
36 -Index: minitube/src/qtsingleapplication/qtlocalpeer.cpp
37 -===================================================================
38 ---- minitube.orig/src/qtsingleapplication/qtlocalpeer.cpp
39 -+++ minitube/src/qtsingleapplication/qtlocalpeer.cpp
40 -@@ -58,6 +58,7 @@ static PProcessIdToSessionId pProcessIdT
41 - #endif
42 - #if defined(Q_OS_UNIX)
43 - #include <time.h>
44 -+#include <unistd.h>
45 - #endif
46 -
47 - namespace QtLP_Private {
48
49 diff --git a/media-video/minitube/files/minitube-2.0-disable-updates.patch b/media-video/minitube/files/minitube-2.0-disable-updates.patch
50 deleted file mode 100644
51 index 0117fd9..00000000
52 --- a/media-video/minitube/files/minitube-2.0-disable-updates.patch
53 +++ /dev/null
54 @@ -1,16 +0,0 @@
55 -https://bugs.gentoo.org/show_bug.cgi?id=455976
56 -
57 -Index: minitube/src/mainwindow.cpp
58 -===================================================================
59 ---- minitube.orig/src/mainwindow.cpp
60 -+++ minitube/src/mainwindow.cpp
61 -@@ -145,9 +145,6 @@ MainWindow::MainWindow() :
62 - mouseTimer->setInterval(5000);
63 - mouseTimer->setSingleShot(true);
64 - connect(mouseTimer, SIGNAL(timeout()), SLOT(hideMouse()));
65 --
66 -- QTimer::singleShot(0, this, SLOT(checkForUpdate()));
67 --
68 - }
69 -
70 - MainWindow::~MainWindow() {
71
72 diff --git a/media-video/minitube/files/minitube-2.4-disable-updates.patch b/media-video/minitube/files/minitube-2.4-disable-updates.patch
73 deleted file mode 100644
74 index 0c18317..00000000
75 --- a/media-video/minitube/files/minitube-2.4-disable-updates.patch
76 +++ /dev/null
77 @@ -1,13 +0,0 @@
78 -Index: minitube-2.4/src/mainwindow.cpp
79 -===================================================================
80 ---- minitube-2.4.orig/src/mainwindow.cpp
81 -+++ minitube-2.4/src/mainwindow.cpp
82 -@@ -206,8 +206,6 @@ void MainWindow::lazyInit() {
83 - connect(mouseTimer, SIGNAL(timeout()), SLOT(hideMouse()));
84 -
85 - JsFunctions::instance();
86 --
87 -- checkForUpdate();
88 - }
89 -
90 - void MainWindow::changeEvent(QEvent* event) {
91
92 diff --git a/media-video/minitube/minitube-2.0.ebuild b/media-video/minitube/minitube-2.0.ebuild
93 deleted file mode 100644
94 index 5a2feb6..00000000
95 --- a/media-video/minitube/minitube-2.0.ebuild
96 +++ /dev/null
97 @@ -1,60 +0,0 @@
98 -# Copyright 1999-2014 Gentoo Foundation
99 -# Distributed under the terms of the GNU General Public License v2
100 -# $Id$
101 -
102 -EAPI=5
103 -PLOCALES="ar ca ca_ES da de_DE el en es es_AR es_ES fi fi_FI fr he_IL hr hu
104 -ia it jv nl pl pl_PL pt_BR ro ru sk sl tr zh_CN"
105 -
106 -inherit l10n qt4-r2
107 -
108 -DESCRIPTION="Qt4 YouTube Client"
109 -HOMEPAGE="http://flavio.tordini.org/minitube"
110 -SRC_URI="http://flavio.tordini.org/files/${PN}/${P}.tar.gz"
111 -
112 -LICENSE="GPL-3"
113 -SLOT="0"
114 -KEYWORDS="amd64 x86"
115 -IUSE="debug gstreamer kde"
116 -
117 -DEPEND=">=dev-qt/qtgui-4.6:4[accessibility,gtkstyle]
118 - >=dev-qt/qtdbus-4.6:4
119 - kde? ( || ( media-libs/phonon[gstreamer?,qt4] >=dev-qt/qtphonon-4.6:4 ) )
120 - !kde? ( || ( >=dev-qt/qtphonon-4.6:4 media-libs/phonon[gstreamer?,qt4] ) )
121 - gstreamer? (
122 - media-plugins/gst-plugins-soup:0.10
123 - media-plugins/gst-plugins-ffmpeg:0.10
124 - media-plugins/gst-plugins-faac:0.10
125 - media-plugins/gst-plugins-faad:0.10
126 - media-plugins/gst-plugins-theora
127 - )
128 -"
129 -RDEPEND="${DEPEND}"
130 -
131 -S=${WORKDIR}/${PN}
132 -
133 -DOCS="AUTHORS CHANGES TODO"
134 -
135 -#455976
136 -PATCHES=( "${FILESDIR}"/${P}-disable-updates.patch )
137 -
138 -src_prepare() {
139 - qt4-r2_src_prepare
140 -
141 - # Remove unneeded translations
142 - local trans=
143 - for x in $(l10n_get_locales); do
144 - trans+="${x}.ts "
145 - done
146 - if [[ -n ${trans} ]]; then
147 - sed -i -e "/^TRANSLATIONS/s/+=.*/+=${trans}/" locale/locale.pri || die
148 - fi
149 - # gcc-4.7. Bug #422977. Will probably be fixed
150 - # once ubuntu moves to gcc-4.7
151 - epatch "${FILESDIR}"/${PN}-1.9-gcc47.patch
152 -}
153 -
154 -src_install() {
155 - qt4-r2_src_install
156 - newicon images/app.png minitube.png
157 -}
158
159 diff --git a/media-video/minitube/minitube-2.4.ebuild b/media-video/minitube/minitube-2.4.ebuild
160 deleted file mode 100644
161 index b877304..00000000
162 --- a/media-video/minitube/minitube-2.4.ebuild
163 +++ /dev/null
164 @@ -1,92 +0,0 @@
165 -# Copyright 1999-2015 Gentoo Foundation
166 -# Distributed under the terms of the GNU General Public License v2
167 -# $Id$
168 -
169 -EAPI=5
170 -PLOCALES="ar ca ca_ES da de_DE el en es es_AR es_ES fi fi_FI fr he_IL hr hu
171 -ia it jv nl pl pl_PL pt_BR ro ru sk sl tr zh_CN"
172 -PLOCALE_BACKUP="en"
173 -
174 -inherit l10n qt4-r2
175 -
176 -DESCRIPTION="Qt4 YouTube Client"
177 -HOMEPAGE="http://flavio.tordini.org/minitube"
178 -SRC_URI="https://github.com/flaviotordini/${PN}/archive/${PV}.tar.gz ->
179 -${P}.tar.gz"
180 -
181 -LICENSE="GPL-3"
182 -SLOT="0"
183 -KEYWORDS="~amd64 ~x86"
184 -IUSE="debug download gstreamer kde"
185 -
186 -DEPEND=">=dev-qt/qtgui-4.8:4[accessibility]
187 - >=dev-qt/qtdbus-4.8:4
188 - >=dev-qt/qtsql-4.8:4
189 - dev-qt/qtsingleapplication[qt4(+),X]
190 - kde? ( || ( media-libs/phonon[gstreamer?,qt4] >=dev-qt/qtphonon-4.8:4 ) )
191 - !kde? ( || ( >=dev-qt/qtphonon-4.8:4 media-libs/phonon[gstreamer?,qt4] ) )
192 - gstreamer? (
193 - media-plugins/gst-plugins-soup:0.10
194 - media-plugins/gst-plugins-ffmpeg:0.10
195 - media-plugins/gst-plugins-faac:0.10
196 - media-plugins/gst-plugins-faad:0.10
197 - media-plugins/gst-plugins-theora
198 - )
199 -"
200 -RDEPEND="${DEPEND}"
201 -
202 -DOCS="AUTHORS CHANGES TODO"
203 -
204 -#455976
205 -PATCHES=( "${FILESDIR}"/${P}-disable-updates.patch )
206 -
207 -pkg_pretend() {
208 - if [[ -z ${MINITUBE_GOOGLE_API_KEY} ]]; then
209 - eerror ""
210 - eerror "Since version 2.4, you need to generate a Google API Key to use"
211 - eerror "with this application. Please head over to"
212 - eerror "https://console.developers.google.com/ and"
213 - eerror "https://github.com/flaviotordini/minitube/blob/master/README.md"
214 - eerror "for more information. Once you have generated your key,"
215 - eerror "please export it to your environment ie :"
216 - eerror "'export MINITUBE_GOOGLE_API_KEY=\"YourAPIKeyHere\""
217 - eerror "and then try to merge this package again"
218 - eerror ""
219 - die "MINITUBE_GOOGLE_API_KEY env variable not defined!"
220 - fi
221 -}
222 -
223 -src_prepare() {
224 - qt4-r2_src_prepare
225 -
226 - # Remove unneeded translations
227 - local trans=
228 - for x in $(l10n_get_locales); do
229 - trans+="${x}.ts "
230 - done
231 - if [[ -n ${trans} ]]; then
232 - sed -i -e "/^TRANSLATIONS/s/+=.*/+=${trans}/" locale/locale.pri || die
233 - fi
234 - sed -i \
235 - 's|include(src/qtsingleapplication/qtsingleapplication.pri)|CONFIG += qtsingleapplication|g' \
236 - ${PN}.pro || die "Failed to unbundle qtsingleapplication"
237 - # Enable video downloads. Bug #491344
238 - use download && { echo "DEFINES += APP_DOWNLOADS" >> ${PN}.pro; }
239 - echo "DEFINES += APP_GOOGLE_API_KEY=${MINITUBE_GOOGLE_API_KEY}" >> ${PN}.pro
240 -}
241 -
242 -src_install() {
243 - qt4-r2_src_install
244 - newicon images/app.png minitube.png
245 -}
246 -
247 -pkg_postinst() {
248 - if use download; then
249 - elog "You activated the 'download' USE flag. This allows you to"
250 - elog "download videos from youtube, which might violate the youtube"
251 - elog "terms-of-service (TOS) in some legislations. If downloading"
252 - elog "youtube-videos is not allowed in your legislation, please"
253 - elog "disable the 'download' use flag. For details on the youtube TOS,"
254 - elog "see http://www.youtube.com/t/terms"
255 - fi
256 -}
257
258 diff --git a/media-video/minitube/minitube-2.5.2.ebuild b/media-video/minitube/minitube-2.5.2.ebuild
259 deleted file mode 100644
260 index e99d679..00000000
261 --- a/media-video/minitube/minitube-2.5.2.ebuild
262 +++ /dev/null
263 @@ -1,96 +0,0 @@
264 -# Copyright 1999-2016 Gentoo Foundation
265 -# Distributed under the terms of the GNU General Public License v2
266 -# $Id$
267 -
268 -EAPI=5
269 -PLOCALES="ar ca ca_ES da de_DE el en es es_AR es_ES fi fi_FI fr he_IL hr hu
270 -ia it jv nl pl pl_PL pt_BR ro ru sk sl tr zh_CN"
271 -PLOCALE_BACKUP="en"
272 -
273 -inherit l10n qmake-utils
274 -
275 -DESCRIPTION="Qt5 YouTube Client"
276 -HOMEPAGE="http://flavio.tordini.org/minitube"
277 -SRC_URI="https://github.com/flaviotordini/${PN}/archive/${PV}.tar.gz ->
278 -${P}.tar.gz"
279 -
280 -LICENSE="GPL-3"
281 -SLOT="0"
282 -KEYWORDS="~amd64 ~x86"
283 -IUSE="debug download gstreamer"
284 -
285 -DEPEND="dev-qt/qtgui:5[accessibility]
286 - dev-qt/qtdbus:5
287 - dev-qt/qtnetwork:5
288 - dev-qt/qtscript:5
289 - dev-qt/qtsql:5[sqlite]
290 - dev-qt/qtwidgets:5
291 - dev-qt/qtsingleapplication[qt5(+),X]
292 - media-libs/phonon[gstreamer?,qt5]
293 - gstreamer? (
294 - media-plugins/gst-plugins-soup:0.10
295 - media-plugins/gst-plugins-ffmpeg:0.10
296 - media-plugins/gst-plugins-faac:0.10
297 - media-plugins/gst-plugins-faad:0.10
298 - media-plugins/gst-plugins-theora
299 - )
300 -"
301 -RDEPEND="${DEPEND}"
302 -
303 -DOCS="AUTHORS CHANGES TODO"
304 -
305 -#455976
306 -PATCHES=( "${FILESDIR}"/${PN}-2.5.1-disable-updates.patch )
307 -
308 -src_prepare() {
309 - epatch "${PATCHES[@]}"
310 -
311 - # Remove unneeded translations
312 - local trans=
313 - for x in $(l10n_get_locales); do
314 - trans+="${x}.ts "
315 - done
316 - if [[ -n ${trans} ]]; then
317 - sed -i -e "/^TRANSLATIONS/s/+=.*/+=${trans}/" locale/locale.pri || die
318 - fi
319 - sed -i \
320 - 's|include(src/qtsingleapplication/qtsingleapplication.pri)|CONFIG += qtsingleapplication|g' \
321 - ${PN}.pro || die "Failed to unbundle qtsingleapplication"
322 -
323 - # Enable video downloads. Bug #491344
324 - use download && { echo "DEFINES += APP_DOWNLOADS" >> ${PN}.pro; }
325 - echo "DEFINES += APP_GOOGLE_API_KEY=${MINITUBE_GOOGLE_API_KEY}" >> ${PN}.pro
326 -
327 - epatch_user
328 -}
329 -
330 -src_configure() {
331 - eqmake5
332 -}
333 -
334 -src_install() {
335 - emake INSTALL_ROOT="${D}" install
336 - einstalldocs
337 - newicon images/app.png minitube.png
338 -}
339 -
340 -pkg_postinst() {
341 - elog ""
342 - elog "Since version 2.4, you need to generate a Google API Key to use"
343 - elog "with this application. Please head over to"
344 - elog "https://console.developers.google.com/ and"
345 - elog "https://github.com/flaviotordini/minitube/blob/master/README.md"
346 - elog "for more information. Once you have generated your key,"
347 - elog "please put it in QSettings key \"googleApiKey\", e.g.:"
348 - elog "# echo 'googleApiKey=YourKeyHere' >> \"\${HOME}/.config/Flavio Tordini/Minitube.conf\""
349 - elog ""
350 -
351 - if use download; then
352 - elog "You activated the 'download' USE flag. This allows you to"
353 - elog "download videos from youtube, which might violate the youtube"
354 - elog "terms-of-service (TOS) in some legislations. If downloading"
355 - elog "youtube-videos is not allowed in your legislation, please"
356 - elog "disable the 'download' use flag. For details on the youtube TOS,"
357 - elog "see http://www.youtube.com/t/terms"
358 - fi
359 -}