1 |
commit: 9d8f40dfd384081f6bfd768bc10147e9c6632de0 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 9 14:41:52 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 9 15:19:21 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d8f40df |
7 |
|
8 |
media-video/minitube: Disable optional gstreamer:0.10 support (#594882) |
9 |
|
10 |
Package-Manager: portage-2.3.1 |
11 |
|
12 |
media-video/minitube/minitube-2.5.2-r1.ebuild | 89 +++++++++++++++++++++++++++ |
13 |
1 file changed, 89 insertions(+) |
14 |
|
15 |
diff --git a/media-video/minitube/minitube-2.5.2-r1.ebuild b/media-video/minitube/minitube-2.5.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..7e4078f |
18 |
--- /dev/null |
19 |
+++ b/media-video/minitube/minitube-2.5.2-r1.ebuild |
20 |
@@ -0,0 +1,89 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+PLOCALES="ar ca ca_ES da de_DE el en es es_AR es_ES fi fi_FI fr he_IL hr hu |
27 |
+ia it jv nl pl pl_PL pt_BR ro ru sk sl tr zh_CN" |
28 |
+PLOCALE_BACKUP="en" |
29 |
+ |
30 |
+inherit l10n qmake-utils |
31 |
+ |
32 |
+DESCRIPTION="Qt5 YouTube Client" |
33 |
+HOMEPAGE="http://flavio.tordini.org/minitube" |
34 |
+SRC_URI="https://github.com/flaviotordini/${PN}/archive/${PV}.tar.gz -> |
35 |
+${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="GPL-3" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~x86" |
40 |
+IUSE="debug download" |
41 |
+ |
42 |
+DEPEND="dev-qt/qtgui:5[accessibility] |
43 |
+ dev-qt/qtdbus:5 |
44 |
+ dev-qt/qtnetwork:5 |
45 |
+ dev-qt/qtscript:5 |
46 |
+ dev-qt/qtsql:5[sqlite] |
47 |
+ dev-qt/qtwidgets:5 |
48 |
+ dev-qt/qtsingleapplication[qt5(+),X] |
49 |
+ media-libs/phonon[qt5] |
50 |
+" |
51 |
+RDEPEND="${DEPEND}" |
52 |
+ |
53 |
+DOCS="AUTHORS CHANGES TODO" |
54 |
+ |
55 |
+#455976 |
56 |
+PATCHES=( "${FILESDIR}"/${PN}-2.5.1-disable-updates.patch ) |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ epatch "${PATCHES[@]}" |
60 |
+ |
61 |
+ # Remove unneeded translations |
62 |
+ local trans= |
63 |
+ for x in $(l10n_get_locales); do |
64 |
+ trans+="${x}.ts " |
65 |
+ done |
66 |
+ if [[ -n ${trans} ]]; then |
67 |
+ sed -i -e "/^TRANSLATIONS/s/+=.*/+=${trans}/" locale/locale.pri || die |
68 |
+ fi |
69 |
+ sed -i \ |
70 |
+ 's|include(src/qtsingleapplication/qtsingleapplication.pri)|CONFIG += qtsingleapplication|g' \ |
71 |
+ ${PN}.pro || die "Failed to unbundle qtsingleapplication" |
72 |
+ |
73 |
+ # Enable video downloads. Bug #491344 |
74 |
+ use download && { echo "DEFINES += APP_DOWNLOADS" >> ${PN}.pro; } |
75 |
+ echo "DEFINES += APP_GOOGLE_API_KEY=${MINITUBE_GOOGLE_API_KEY}" >> ${PN}.pro |
76 |
+ |
77 |
+ epatch_user |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ eqmake5 |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ emake INSTALL_ROOT="${D}" install |
86 |
+ einstalldocs |
87 |
+ newicon images/app.png minitube.png |
88 |
+} |
89 |
+ |
90 |
+pkg_postinst() { |
91 |
+ elog "" |
92 |
+ elog "Since version 2.4, you need to generate a Google API Key to use" |
93 |
+ elog "with this application. Please head over to" |
94 |
+ elog "https://console.developers.google.com/ and" |
95 |
+ elog "https://github.com/flaviotordini/minitube/blob/master/README.md" |
96 |
+ elog "for more information. Once you have generated your key," |
97 |
+ elog "please put it in QSettings key \"googleApiKey\", e.g.:" |
98 |
+ elog "# echo 'googleApiKey=YourKeyHere' >> \"\${HOME}/.config/Flavio Tordini/Minitube.conf\"" |
99 |
+ elog "" |
100 |
+ |
101 |
+ if use download; then |
102 |
+ elog "You activated the 'download' USE flag. This allows you to" |
103 |
+ elog "download videos from youtube, which might violate the youtube" |
104 |
+ elog "terms-of-service (TOS) in some legislations. If downloading" |
105 |
+ elog "youtube-videos is not allowed in your legislation, please" |
106 |
+ elog "disable the 'download' use flag. For details on the youtube TOS," |
107 |
+ elog "see http://www.youtube.com/t/terms" |
108 |
+ fi |
109 |
+} |