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 CB745138247 for ; Tue, 19 Nov 2013 19:39:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A59F7E09DF; Tue, 19 Nov 2013 19:39:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3BE2EE09DF for ; Tue, 19 Nov 2013 19:39:21 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0C4E133F106 for ; Tue, 19 Nov 2013 19:39:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 764CDE5459 for ; Tue, 19 Nov 2013 19:39:17 +0000 (UTC) From: "Markos Chandras" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Markos Chandras" Message-ID: <1384889909.3324ec7f9e9cfb52ce158d614c933e512d8d4a0c.hwoarang@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: media-video/minitube/ X-VCS-Repository: proj/qt X-VCS-Files: media-video/minitube/metadata.xml media-video/minitube/minitube-9999.ebuild X-VCS-Directories: media-video/minitube/ X-VCS-Committer: hwoarang X-VCS-Committer-Name: Markos Chandras X-VCS-Revision: 3324ec7f9e9cfb52ce158d614c933e512d8d4a0c X-VCS-Branch: master Date: Tue, 19 Nov 2013 19:39:17 +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: 444839ed-846a-4a7c-93d8-f5be9cbaf0df X-Archives-Hash: e6578e7988b7dcf4b8cfd97d6e471183 commit: 3324ec7f9e9cfb52ce158d614c933e512d8d4a0c Author: Markos Chandras gentoo org> AuthorDate: Tue Nov 19 19:38:29 2013 +0000 Commit: Markos Chandras gentoo org> CommitDate: Tue Nov 19 19:38:29 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=3324ec7f media-video/minitube: Add support for downloading YouTube videos Backported from 2.1.3. Bug #491344 --- media-video/minitube/metadata.xml | 3 +++ media-video/minitube/minitube-9999.ebuild | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/media-video/minitube/metadata.xml b/media-video/minitube/metadata.xml index a1db186..0a5b314 100644 --- a/media-video/minitube/metadata.xml +++ b/media-video/minitube/metadata.xml @@ -7,4 +7,7 @@ hwoarang@gentoo.org Markos Chandras + +Enable support for downloading YouTube videos + diff --git a/media-video/minitube/minitube-9999.ebuild b/media-video/minitube/minitube-9999.ebuild index 1946cd6..86f2980 100644 --- a/media-video/minitube/minitube-9999.ebuild +++ b/media-video/minitube/minitube-9999.ebuild @@ -16,7 +16,7 @@ HOMEPAGE="http://flavio.tordini.org/minitube" LICENSE="GPL-3" SLOT="0" KEYWORDS="" -IUSE="debug gstreamer kde" +IUSE="debug download gstreamer kde" DEPEND=">=dev-qt/qtgui-4.8:4[accessibility] >=dev-qt/qtdbus-4.8:4 @@ -49,9 +49,22 @@ src_prepare() { fi # gcc-4.7. Bug #422977 epatch "${FILESDIR}"/${PN}-1.9-gcc47.patch + # Enable video downloads. Bug #491344 + use download && { echo "DEFINES += APP_DOWNLOADS" >> ${PN}.pro; } } src_install() { qt4-r2_src_install newicon images/app.png minitube.png } + +pkg_postinst() { + 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 +}