1 |
# Copyright 1999-2014 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-video/minitube/minitube-2.1.6.ebuild,v 1.2 2014/12/31 13:31:12 kensington Exp $ |
4 |
|
5 |
EAPI=5 |
6 |
PLOCALES="ar ca ca_ES da de_DE el en es es_AR es_ES fi fi_FI fr he_IL hr hu |
7 |
ia it jv nl pl pl_PL pt_BR ro ru sk sl tr zh_CN" |
8 |
PLOCALE_BACKUP="en" |
9 |
|
10 |
inherit l10n qt4-r2 |
11 |
|
12 |
DESCRIPTION="Qt4 YouTube Client" |
13 |
HOMEPAGE="http://flavio.tordini.org/minitube" |
14 |
# As usual, upstream never releases proper tarballs |
15 |
SRC_URI="http://dev.gentoo.org/~hwoarang/distfiles/${P}.tar.gz" |
16 |
|
17 |
LICENSE="GPL-3" |
18 |
SLOT="0" |
19 |
KEYWORDS="~amd64 ~x86" |
20 |
IUSE="debug download gstreamer kde" |
21 |
|
22 |
DEPEND=">=dev-qt/qtgui-4.8:4[accessibility] |
23 |
>=dev-qt/qtdbus-4.8:4 |
24 |
>=dev-qt/qtsql-4.8:4 |
25 |
kde? ( || ( media-libs/phonon[gstreamer?,qt4] >=dev-qt/qtphonon-4.8:4 ) ) |
26 |
!kde? ( || ( >=dev-qt/qtphonon-4.8:4 media-libs/phonon[gstreamer?,qt4] ) ) |
27 |
gstreamer? ( |
28 |
media-plugins/gst-plugins-soup:0.10 |
29 |
media-plugins/gst-plugins-ffmpeg:0.10 |
30 |
media-plugins/gst-plugins-faac:0.10 |
31 |
media-plugins/gst-plugins-faad:0.10 |
32 |
media-plugins/gst-plugins-theora |
33 |
) |
34 |
" |
35 |
RDEPEND="${DEPEND}" |
36 |
|
37 |
S=${WORKDIR}/${PN} |
38 |
|
39 |
DOCS="AUTHORS CHANGES TODO" |
40 |
|
41 |
#455976 |
42 |
PATCHES=( "${FILESDIR}"/${PN}-2.1.3-disable-updates.patch ) |
43 |
|
44 |
src_prepare() { |
45 |
qt4-r2_src_prepare |
46 |
|
47 |
# Remove unneeded translations |
48 |
local trans= |
49 |
for x in $(l10n_get_locales); do |
50 |
trans+="${x}.ts " |
51 |
done |
52 |
if [[ -n ${trans} ]]; then |
53 |
sed -i -e "/^TRANSLATIONS/s/+=.*/+=${trans}/" locale/locale.pri || die |
54 |
fi |
55 |
# gcc-4.7. Bug #422977. Will probably be fixed |
56 |
# once ubuntu moves to gcc-4.7 |
57 |
epatch "${FILESDIR}"/${PN}-1.9-gcc47.patch |
58 |
# Enable video downloads. Bug #491344 |
59 |
use download && { echo "DEFINES += APP_DOWNLOADS" >> ${PN}.pro; } |
60 |
} |
61 |
|
62 |
src_install() { |
63 |
qt4-r2_src_install |
64 |
newicon images/app.png minitube.png |
65 |
} |
66 |
|
67 |
pkg_postinst() { |
68 |
if use download; then |
69 |
elog "You activated the 'download' USE flag. This allows you to" |
70 |
elog "download videos from youtube, which might violate the youtube" |
71 |
elog "terms-of-service (TOS) in some legislations. If downloading" |
72 |
elog "youtube-videos is not allowed in your legislation, please" |
73 |
elog "disable the 'download' use flag. For details on the youtube TOS," |
74 |
elog "see http://www.youtube.com/t/terms" |
75 |
fi |
76 |
} |