diff options
author | Daniel Campbell <zlg@gentoo.org> | 2017-06-04 01:17:36 -0700 |
---|---|---|
committer | Daniel Campbell <zlg@gentoo.org> | 2017-06-04 01:18:08 -0700 |
commit | 61dbfd2cdd29094de8ebd2b5bf4d4a5c7ab4b771 (patch) | |
tree | 0d82ca091a1d31810e98899c023eebe0b1358a0b /media-video/smtube | |
parent | sci-chemistry/ball: remove bogus dev-qt/qtwebkit:4 dependency (diff) | |
download | gentoo-61dbfd2cdd29094de8ebd2b5bf4d4a5c7ab4b771.tar.gz gentoo-61dbfd2cdd29094de8ebd2b5bf4d4a5c7ab4b771.tar.bz2 gentoo-61dbfd2cdd29094de8ebd2b5bf4d4a5c7ab4b771.zip |
media-video/smtube: revbump wrt bug 620720
Gentoo-Bug: 620720
Gentoo-Bug-URL: https://bugs.gentoo.org/620720
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'media-video/smtube')
-rw-r--r-- | media-video/smtube/smtube-17.5.0-r1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/media-video/smtube/smtube-17.5.0-r1.ebuild b/media-video/smtube/smtube-17.5.0-r1.ebuild new file mode 100644 index 000000000000..36fd97f768d8 --- /dev/null +++ b/media-video/smtube/smtube-17.5.0-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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/smtube/${P}.tar.bz2" +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-2+" +SLOT="0" + +# Deps in makefile seemed to be -core, -network, -script, -gui, -webkit, but the +# given packages seem to be deprecated... +CDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwebkit:5 + dev-qt/qtscript:5 +" +DEPEND=" + ${CDEPEND} + dev-qt/linguist-tools:5 +" +RDEPEND=" + ${CDEPEND} + || ( media-video/smplayer[streaming] media-video/mpv media-video/mplayer media-video/vlc media-video/totem media-video/gnome-mplayer ) +" + +gen_translation() { + "$(qt5_get_bindir)"/lrelease ${PN}_${1}.ts + eend $? || die "failed to generate $1 translation" +} + +src_compile() { + eqmake5 src/${PN}.pro + 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 +} |