summaryrefslogtreecommitdiff
path: root/media-video/minitube
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/minitube')
-rw-r--r--media-video/minitube/Manifest6
-rw-r--r--media-video/minitube/files/minitube-2.5.1-disable-updates.patch11
-rw-r--r--media-video/minitube/metadata.xml18
-rw-r--r--media-video/minitube/minitube-2.5.2-r1.ebuild88
4 files changed, 123 insertions, 0 deletions
diff --git a/media-video/minitube/Manifest b/media-video/minitube/Manifest
new file mode 100644
index 000000000000..2017a1462d3b
--- /dev/null
+++ b/media-video/minitube/Manifest
@@ -0,0 +1,6 @@
+AUX minitube-2.5.1-disable-updates.patch 205 SHA256 0e9d70bc88017bf1c71b9467371d99223c56a88ce94eb2fe7597d4f41201b809 SHA512 9b257652feea431d6ee115fab3ba89f07fd85163290782610b504fa7d556d03a547554d1ede10edd670b98b4b0f042d67cbf546bfcc6e07a8028de42a58b3384 WHIRLPOOL 29fd9a3d646e4cded2ab0560521e297407d84f55fcadb3458ba399e9a61299471bb940ef2c37c0a3e9f8de71615d84e2db9da81f9fcbb1beaacece4848af20b5
+DIST minitube-2.5.2.tar.gz 1063794 SHA256 63678bf153e77e8cdaf6b43bb9a7bf2c5694c62698c3236f1a1133494362d6b5 SHA512 4001ea95e6d3b541e9a8a2555830238f6e3a0b4749566dfd67ae48fdc6102ec77a38e162e04fb2637cc5ff2b3dccdca541119531302332ffa3b90d9db8809284 WHIRLPOOL affb33b2a2b1dea771452c33b4167e0e250a4f5869080b6c4426c372303d62e1f220f62fc64f0d087a75940869042712678a523224cf250247de2bbda46b4248
+EBUILD minitube-2.5.2-r1.ebuild 2526 SHA256 cb5429da21ae4d7c07cd12a4c8b7f74a69c4722e1bb0151b928c7d58ffe2534e SHA512 aca169730389b992cf93a196510ada5e9eb9d4b3a8f8db71f0fdc5583fbd82fdccb381d4302c71ac33b710e30e2f2f0646f345d6c6584aba5fcc95e10b6539e5 WHIRLPOOL ffc7f572955e361939b27990b0f241fa889c482ca9e8b7bad1a61db770efd05ef046800d0cfb6e88e143f3b7fbb09406152590bae26cfedfb27f9fea59ec66d3
+MISC ChangeLog 4002 SHA256 f35984e68ea2bcc06bcd8a3cbc59c049bdbc6b35378612c633a696ce404821d8 SHA512 cee7295e9036909d72677065b54ec43cac9d5e4627cbfc66c5ad23abbe3d555809343ddda33c0d1b2fd9fc8d992f8f0c5c7b663671589f908e27d892c02b95c6 WHIRLPOOL 21c35f1c331ba6182d0d315c3ca2d60b51f85b48e825b19b444addb7cc5467a8e1220f0cf5176209ef1dde3b54bcefdb4c98517bbb7c2f813608bfb7966b2622
+MISC ChangeLog-2015 15090 SHA256 fe486025ef7a386b82e7d4d5198edeb97195751cfb27ae41d8fc297df6d85ec4 SHA512 b9b23c1c55865b57b7acb3c74ff00d33fb66fd092e31492fcfe023aeb4b8c2d10298683fe1ec6ebd222cb6f6900d91587deea15ef3b4e00ab1fc37bcc4c2658b WHIRLPOOL 5229b29587dc03df29ffdf50e188eeb9f445fe7106eebe8cc9b4e1522d7163e95b4475b9269b24ba2a70a8244a7b03f83280b04de18537c3216e6bc818916e7a
+MISC metadata.xml 546 SHA256 6d2120aea5d7d9ba6d6a13ffb582b93f00cf5c8b697443261040a9da2c772ec8 SHA512 b4b597d562b7cd43306a61e871cc853af153f17acf2e69cdbc148dbb4672648e86e1d4869ae098f91f133aacc6206df6c0f4f9a4d47220c39b39b6746929268b WHIRLPOOL d559d3c712dd4e82903747c776d6608dec38e7c7fba545e0ecde6ed71baddcea6b1893fa4dc37ff686cdaea4c8593a13b54bfa22802cae312858bafdcc925ae8
diff --git a/media-video/minitube/files/minitube-2.5.1-disable-updates.patch b/media-video/minitube/files/minitube-2.5.1-disable-updates.patch
new file mode 100644
index 000000000000..a5f496e92b2d
--- /dev/null
+++ b/media-video/minitube/files/minitube-2.5.1-disable-updates.patch
@@ -0,0 +1,11 @@
+--- minitube-2.5.1.orig/src/mainwindow.cpp
++++ minitube-2.5.1/src/mainwindow.cpp
+@@ -232,8 +232,6 @@
+
+ ChannelAggregator::instance()->start();
+
+- checkForUpdate();
+-
+ initialized = true;
+ }
+
diff --git a/media-video/minitube/metadata.xml b/media-video/minitube/metadata.xml
new file mode 100644
index 000000000000..bb2aac781b2e
--- /dev/null
+++ b/media-video/minitube/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>media-video@gentoo.org</email>
+ <name>Gentoo Video project</name>
+ </maintainer>
+ <use>
+ <flag name="download">Enable support for downloading YouTube videos</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">flaviotordini/minitube</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/media-video/minitube/minitube-2.5.2-r1.ebuild b/media-video/minitube/minitube-2.5.2-r1.ebuild
new file mode 100644
index 000000000000..3f45b976481e
--- /dev/null
+++ b/media-video/minitube/minitube-2.5.2-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PLOCALES="ar ca ca_ES da de_DE el en es es_AR es_ES fi fi_FI fr he_IL hr hu
+ia it jv nl pl pl_PL pt_BR ro ru sk sl tr zh_CN"
+PLOCALE_BACKUP="en"
+
+inherit l10n qmake-utils
+
+DESCRIPTION="Qt5 YouTube Client"
+HOMEPAGE="http://flavio.tordini.org/minitube"
+SRC_URI="https://github.com/flaviotordini/${PN}/archive/${PV}.tar.gz ->
+${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug download"
+
+DEPEND="dev-qt/qtgui:5[accessibility]
+ dev-qt/qtdbus:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtscript:5
+ dev-qt/qtsql:5[sqlite]
+ dev-qt/qtwidgets:5
+ dev-qt/qtsingleapplication[qt5(+),X]
+ media-libs/phonon[qt5(+)]
+"
+RDEPEND="${DEPEND}"
+
+DOCS="AUTHORS CHANGES TODO"
+
+#455976
+PATCHES=( "${FILESDIR}"/${PN}-2.5.1-disable-updates.patch )
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+
+ # Remove unneeded translations
+ local trans=
+ for x in $(l10n_get_locales); do
+ trans+="${x}.ts "
+ done
+ if [[ -n ${trans} ]]; then
+ sed -i -e "/^TRANSLATIONS/s/+=.*/+=${trans}/" locale/locale.pri || die
+ fi
+ sed -i \
+ 's|include(src/qtsingleapplication/qtsingleapplication.pri)|CONFIG += qtsingleapplication|g' \
+ ${PN}.pro || die "Failed to unbundle qtsingleapplication"
+
+ # Enable video downloads. Bug #491344
+ use download && { echo "DEFINES += APP_DOWNLOADS" >> ${PN}.pro; }
+ echo "DEFINES += APP_GOOGLE_API_KEY=${MINITUBE_GOOGLE_API_KEY}" >> ${PN}.pro
+
+ epatch_user
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+ newicon images/app.png minitube.png
+}
+
+pkg_postinst() {
+ elog ""
+ elog "Since version 2.4, you need to generate a Google API Key to use"
+ elog "with this application. Please head over to"
+ elog "https://console.developers.google.com/ and"
+ elog "https://github.com/flaviotordini/minitube/blob/master/README.md"
+ elog "for more information. Once you have generated your key,"
+ elog "please put it in QSettings key \"googleApiKey\", e.g.:"
+ elog "# echo 'googleApiKey=YourKeyHere' >> \"\${HOME}/.config/Flavio Tordini/Minitube.conf\""
+ elog ""
+
+ if use download; then
+ elog "You activated the 'download' USE flag. This allows you to"
+ elog "download videos from youtube, which might violate the youtube"
+ elog "terms-of-service (TOS) in some legislations. If downloading"
+ elog "youtube-videos is not allowed in your legislation, please"
+ elog "disable the 'download' use flag. For details on the youtube TOS,"
+ elog "see http://www.youtube.com/t/terms"
+ fi
+}