From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-855844-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 984E71388BF
	for <garchives@archives.gentoo.org>; Thu,  7 Jan 2016 23:08:30 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B5210E07DA;
	Thu,  7 Jan 2016 23:08:28 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 389C1E07DA
	for <gentoo-commits@lists.gentoo.org>; Thu,  7 Jan 2016 23:08:28 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id C9200340A1E
	for <gentoo-commits@lists.gentoo.org>; Thu,  7 Jan 2016 23:08:26 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 4E603CEE
	for <gentoo-commits@lists.gentoo.org>; Thu,  7 Jan 2016 23:08:25 +0000 (UTC)
From: "Daniel Campbell" <zlg@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Daniel Campbell" <zlg@gentoo.org>
Message-ID: <1452208102.aa16226385f83f4317270d6c2d54251f80682e3d.zlg@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/smtube/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-video/smtube/Manifest media-video/smtube/metadata.xml media-video/smtube/smtube-16.1.0.ebuild
X-VCS-Directories: media-video/smtube/
X-VCS-Committer: zlg
X-VCS-Committer-Name: Daniel Campbell
X-VCS-Revision: aa16226385f83f4317270d6c2d54251f80682e3d
X-VCS-Branch: master
Date: Thu,  7 Jan 2016 23:08:25 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: ae92c451-ea9f-4f1d-b0e0-399ae226b235
X-Archives-Hash: 068503503ddd6f5d132da589c80be87a

commit:     aa16226385f83f4317270d6c2d54251f80682e3d
Author:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  7 23:07:27 2016 +0000
Commit:     Daniel Campbell <zlg <AT> gentoo <DOT> org>
CommitDate: Thu Jan  7 23:08:22 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa162263

media-video/smtube: version bump to 16.1.0

Also added upstream maintainer information to metadata.xml

Package-Manager: portage-2.2.26

 media-video/smtube/Manifest             |  1 +
 media-video/smtube/metadata.xml         |  4 +++
 media-video/smtube/smtube-16.1.0.ebuild | 57 +++++++++++++++++++++++++++++++++
 3 files changed, 62 insertions(+)

diff --git a/media-video/smtube/Manifest b/media-video/smtube/Manifest
index 94109e8..4fd50bb 100644
--- a/media-video/smtube/Manifest
+++ b/media-video/smtube/Manifest
@@ -1 +1,2 @@
 DIST smtube-15.11.0.tar.bz2 670236 SHA256 dedef3dc634624e8252c5806e2cb09b1c2b8a363c29bea2b6dfa79610868f38e SHA512 b66026b69c36f2ade0797ab50c7df458b9508509574563079ca22af63bc842b317f9b8853220860527f100aa97f1c35a39b00ee588957e1939cffd54b244e9b2 WHIRLPOOL 17409b7ac1058ad9ba5919db5fd7e161e8e677eda7bf794ad101791c7131e611515da9340ccf367d2b55cade58918fbdacd6b807eb32240145ab851bc7157e6d
+DIST smtube-16.1.0.tar.bz2 670383 SHA256 9948596342b94b152cc5ab62e9600bd06d066b12f32bf7ca4088bb5be43b56fa SHA512 dd844d181864b62a872f65fb1aad96e9cc1edb2d91a5ce5c1b2cc67ba99fa052f5e0e9439d61bfb9f4a8438fe745ad408763b2bd5020f10e3efc559119cf13f1 WHIRLPOOL 7b5fa5663ff0117a4dcebae813fd7ac16d2abd5cdaf95bd2551c75f4a94c770a132e47961dc7e19d0cd5ce0b6b4e2a4aa0ef430fe8f0224d14cbe764daeabba0

diff --git a/media-video/smtube/metadata.xml b/media-video/smtube/metadata.xml
index 62d4337..383f490 100644
--- a/media-video/smtube/metadata.xml
+++ b/media-video/smtube/metadata.xml
@@ -10,6 +10,10 @@
 		that allows you to play videos directly in a variety of media players.
 	</longdescription>
 	<upstream>
+		<maintainer status="active">
+			<email>ricardo@smplayer.info</email>
+			<name>Ricardo Villalba</name>
+		</maintainer>
 		<remote-id type="sourceforge">smtube</remote-id>
 	</upstream>
 	<use>

diff --git a/media-video/smtube/smtube-16.1.0.ebuild b/media-video/smtube/smtube-16.1.0.ebuild
new file mode 100644
index 0000000..93ba1bf
--- /dev/null
+++ b/media-video/smtube/smtube-16.1.0.ebuild
@@ -0,0 +1,57 @@
+# 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"
+
+# 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 dev-qt/qtscript:5 )
+		!qt5? ( dev-qt/qtcore:4 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
+}