diff options
author | Daniel Campbell <zlg@gentoo.org> | 2016-07-14 23:32:23 -0700 |
---|---|---|
committer | Daniel Campbell <zlg@gentoo.org> | 2016-07-14 23:32:23 -0700 |
commit | b2db914e787513f0accf40c39d38051a9584cc57 (patch) | |
tree | e96a4e5490909ff4bf27a8890389ec4c4870863c /media-video | |
parent | kde-apps/kde4-l10n: Remove unused file (diff) | |
download | gentoo-b2db914e787513f0accf40c39d38051a9584cc57.tar.gz gentoo-b2db914e787513f0accf40c39d38051a9584cc57.tar.bz2 gentoo-b2db914e787513f0accf40c39d38051a9584cc57.zip |
media-video/smtube: Correct dependency on USE=ssl
Dependencies now reflect reliance on USE=ssl, as needed.
Gentoo-Bug: 588046
Gentoo-Bug-URL: https://bugs.gentoo.org/588046
Package-Manager: portage-2.3.0
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/smtube/smtube-16.6.0-r1.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/media-video/smtube/smtube-16.6.0-r1.ebuild b/media-video/smtube/smtube-16.6.0-r1.ebuild new file mode 100644 index 000000000000..fb7a687ebd7f --- /dev/null +++ b/media-video/smtube/smtube-16.6.0-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PLOCALES="bg cs da de en_GB en es eu fr gl he_IL hr hu it ja ko ms nn_NO pl pt_BR pt ru sq sr tr uk zh_CN zh_TW" +PLOCALE_BACKUP="en" + +inherit l10n qmake-utils + +DESCRIPTION="YouTube Browser for SMPlayer" +HOMEPAGE="http://smplayer.sourceforge.net/smtube" +SRC_URI="mirror://sourceforge/smplayer/${P}.tar.bz2" +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-2+" +SLOT="0" +IUSE="qt5" + +# Some deps are deprecated, but the replacements (such as qtnetwork) +# are not API compatible, so we'll do what we can here. +DEPEND="qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwebkit:5 + dev-qt/qtnetwork:5[ssl] + dev-qt/qtscript:5 + ) + !qt5? ( + dev-qt/qtcore:4[ssl] + dev-qt/qtgui:4 + dev-qt/qtwebkit:4 + dev-qt/qtscript:4 + )" +RDEPEND="${DEPEND} + || ( media-video/smplayer[streaming] media-video/mpv media-video/mplayer media-video/vlc media-video/totem media-video/gnome-mplayer )" + +gen_translation() { + lrelease ${PN}_${1}.ts + eend $? || die "failed to generate $1 translation" +} + +src_compile() { + if use qt5; then + eqmake5 src/${PN}.pro + else + eqmake4 src/${PN}.pro + fi + emake + + cd "${S}"/src/translations + l10n_for_each_locale_do gen_translation +} + +install_locale() { + insinto /usr/share/${PN}/translations + doins "${S}"/src/translations/${PN}_${1}.qm + eend $? || die "failed to install $1 translation" +} + +src_install() { + dobin ${PN} + domenu ${PN}.desktop + newicon icons/${PN}_64.png ${PN}.png + dodoc Changelog + + l10n_for_each_locale_do install_locale +} |