From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2B3961384B4 for ; Fri, 27 Nov 2015 08:55:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DF90921C01B; Fri, 27 Nov 2015 08:55:08 +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 6061021C01B for ; Fri, 27 Nov 2015 08:55:08 +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 A359433BE2F for ; Fri, 27 Nov 2015 08:55:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 255CA612 for ; Fri, 27 Nov 2015 08:55:01 +0000 (UTC) From: "Daniel Campbell" 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" Message-ID: <1448614464.b00190062009b1815683fa8e7242f1b3ee53c11c.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-15.11.0.ebuild X-VCS-Directories: media-video/smtube/ X-VCS-Committer: zlg X-VCS-Committer-Name: Daniel Campbell X-VCS-Revision: b00190062009b1815683fa8e7242f1b3ee53c11c X-VCS-Branch: master Date: Fri, 27 Nov 2015 08:55:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b35e2e68-0439-4f1d-8fee-d0b052fa2fde X-Archives-Hash: 97997a0670b1b45ec28812b4a5aee7f2 commit: b00190062009b1815683fa8e7242f1b3ee53c11c Author: Daniel Campbell gentoo org> AuthorDate: Fri Nov 27 08:54:24 2015 +0000 Commit: Daniel Campbell gentoo org> CommitDate: Fri Nov 27 08:54:24 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0019006 media-video/smtube: New ebuild Gentoo-Bug: 407199 Package-Manager: portage-2.2.26 media-video/smtube/Manifest | 1 + media-video/smtube/metadata.xml | 18 ++++++++++ media-video/smtube/smtube-15.11.0.ebuild | 56 ++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+) diff --git a/media-video/smtube/Manifest b/media-video/smtube/Manifest new file mode 100644 index 0000000..94109e8 --- /dev/null +++ b/media-video/smtube/Manifest @@ -0,0 +1 @@ +DIST smtube-15.11.0.tar.bz2 670236 SHA256 dedef3dc634624e8252c5806e2cb09b1c2b8a363c29bea2b6dfa79610868f38e SHA512 b66026b69c36f2ade0797ab50c7df458b9508509574563079ca22af63bc842b317f9b8853220860527f100aa97f1c35a39b00ee588957e1939cffd54b244e9b2 WHIRLPOOL 17409b7ac1058ad9ba5919db5fd7e161e8e677eda7bf794ad101791c7131e611515da9340ccf367d2b55cade58918fbdacd6b807eb32240145ab851bc7157e6d diff --git a/media-video/smtube/metadata.xml b/media-video/smtube/metadata.xml new file mode 100644 index 0000000..f01a649 --- /dev/null +++ b/media-video/smtube/metadata.xml @@ -0,0 +1,18 @@ + + + + + dlcampbell@gmx.com + Daniel Campbell + + + SMTube is a Qt-based frontend to Youtube and other video services + that allows you to play videos directly in a variety of media players. + + + smtube + + + Build using Qt 5 instead of Qt 4 + + diff --git a/media-video/smtube/smtube-15.11.0.ebuild b/media-video/smtube/smtube-15.11.0.ebuild new file mode 100644 index 0000000..2a78a1e --- /dev/null +++ b/media-video/smtube/smtube-15.11.0.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="el en es eu gl hu ja lt pl pt ru_RU zh_CN" +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 +}