summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Campbell <zlg@gentoo.org>2015-12-06 23:48:03 -0800
committerDaniel Campbell <zlg@gentoo.org>2015-12-06 23:48:03 -0800
commitf61bc81b10cbc388bc998c05bcd0e64e6d102d0e (patch)
tree8e62ac5b1019c31076c4c9dcec5b2930cf89094c /media-video/smtube
parentsci-biology/phylip: Fix install path for libs (diff)
downloadgentoo-f61bc81b10cbc388bc998c05bcd0e64e6d102d0e.tar.gz
gentoo-f61bc81b10cbc388bc998c05bcd0e64e6d102d0e.tar.bz2
gentoo-f61bc81b10cbc388bc998c05bcd0e64e6d102d0e.zip
media-video/smtube: Correct translation locales
Thanks to Fat-Zer for the patch. Gentoo-Bug: 567142 Package-Manager: portage-2.2.26
Diffstat (limited to 'media-video/smtube')
-rw-r--r--media-video/smtube/metadata.xml2
-rw-r--r--media-video/smtube/smtube-15.11.0-r1.ebuild56
2 files changed, 57 insertions, 1 deletions
diff --git a/media-video/smtube/metadata.xml b/media-video/smtube/metadata.xml
index f01a6499c241..62d433775c13 100644
--- a/media-video/smtube/metadata.xml
+++ b/media-video/smtube/metadata.xml
@@ -2,7 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
- <email>dlcampbell@gmx.com</email>
+ <email>zlg@gentoo.org</email>
<name>Daniel Campbell</name>
</maintainer>
<longdescription lang="en">
diff --git a/media-video/smtube/smtube-15.11.0-r1.ebuild b/media-video/smtube/smtube-15.11.0-r1.ebuild
new file mode 100644
index 000000000000..09c86b89d61a
--- /dev/null
+++ b/media-video/smtube/smtube-15.11.0-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2015 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 qt4-r2
+
+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"
+
+# Deps in makefile seemed to be -core, -network, -script, -gui, -webkit, but the
+# given packages seem to be deprecated...
+DEPEND="qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtwebkit:5 )
+ !qt5? ( dev-qt/qtcore:4 dev-qt/qtgui:4 dev-qt/qtwebkit:4 )"
+RDEPEND="${DEPEND}
+ || ( media-video/smplayer[streaming] media-video/mpv media-video/mplayer media-video/vlc media-video/totem media-video/gnome-mplayer )"
+
+src_prepare() {
+ eqmake4 src/${PN}.pro
+}
+
+gen_translation() {
+ lrelease ${PN}_${1}.ts
+ eend $? || die "failed to generate $1 translation"
+}
+
+src_compile() {
+ 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
+}