summaryrefslogtreecommitdiff
path: root/media-video/smtube
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2015-07-09 22:37:11 +0100
committerV3n3RiX <venerix@rogentos.ro>2015-07-09 22:37:11 +0100
commit760bc8e27c3b4938db2cddd4231a30d647c71aa5 (patch)
tree323ff30b29df5840b81a14c3c47c4a4a52a03b1a /media-video/smtube
parent1dcb8f6287ead5caac2d67c71b449185c1f663f5 (diff)
drop mpv, gentoo version is newer and more stable && add working smtube
Diffstat (limited to 'media-video/smtube')
-rw-r--r--media-video/smtube/Manifest1
-rw-r--r--media-video/smtube/smtube-15.5.17.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/media-video/smtube/Manifest b/media-video/smtube/Manifest
new file mode 100644
index 00000000..38ffc75b
--- /dev/null
+++ b/media-video/smtube/Manifest
@@ -0,0 +1 @@
+DIST smtube-15.5.17.tar.bz2 652324 SHA256 cf2f5b0b978c31f0580bf67ea10c95f42c4475ad74fde5031a67856503997149 SHA512 5257f703f84140d70aea8073d0363ce8a1415364ce21b974adba08d86d2324de5600cde7f69bc8b7e3f2fc9650e81e884763524ef33fec139f6f4b16736d8566 WHIRLPOOL 06a8fc0313585e5d6374d3bea723efe913ac822ce446fe5d5d93d7f431eef9b3e97665e243ce7b8bd4cac4132f15d5ea1730403ec223b8823421d647ddc06388
diff --git a/media-video/smtube/smtube-15.5.17.ebuild b/media-video/smtube/smtube-15.5.17.ebuild
new file mode 100644
index 00000000..2cb42877
--- /dev/null
+++ b/media-video/smtube/smtube-15.5.17.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+#
+EAPI=5
+
+PLOCALES="en es de eu fr gl it ja ko pt pt_BR ru sr zh_TW"
+PLOCALE_BACKUP="en"
+
+inherit l10n qt4-r2
+
+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"
+IUSE=""
+
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+RDEPEND="${DEPEND}
+ || ( media-video/mpv media-video/smplayer media-video/mplayer media-video/vlc kde-base/dragon 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
+}