From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 94081138335 for ; Sun, 1 Sep 2019 07:32:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B6057E09E6; Sun, 1 Sep 2019 07:32:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 80B2EE09E6 for ; Sun, 1 Sep 2019 07:32:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4951034A7E4 for ; Sun, 1 Sep 2019 07:32:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C566F774 for ; Sun, 1 Sep 2019 07:32:31 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1567323142.55f217134fcddb8fb2180f0a814da5070a529241.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/yle-dl/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/yle-dl/Manifest media-video/yle-dl/metadata.xml media-video/yle-dl/yle-dl-20190614.ebuild X-VCS-Directories: media-video/yle-dl/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 55f217134fcddb8fb2180f0a814da5070a529241 X-VCS-Branch: master Date: Sun, 1 Sep 2019 07:32:31 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b6c90336-be7b-4341-8a77-0a740bdbc4b2 X-Archives-Hash: 9df249df8d44a83890a29a943921622d commit: 55f217134fcddb8fb2180f0a814da5070a529241 Author: Joonas Niilola gentoo org> AuthorDate: Sun Sep 1 07:32:07 2019 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sun Sep 1 07:32:22 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55f21713 media-video/yle-dl: new package Download media files from Yle Areena. Package-Manager: Portage-2.3.74, Repoman-2.3.17 Signed-off-by: Joonas Niilola gentoo.org> media-video/yle-dl/Manifest | 1 + media-video/yle-dl/metadata.xml | 12 ++++++ media-video/yle-dl/yle-dl-20190614.ebuild | 68 +++++++++++++++++++++++++++++++ 3 files changed, 81 insertions(+) diff --git a/media-video/yle-dl/Manifest b/media-video/yle-dl/Manifest new file mode 100644 index 00000000000..495895597be --- /dev/null +++ b/media-video/yle-dl/Manifest @@ -0,0 +1 @@ +DIST yle-dl-20190614.tar.gz 83579 BLAKE2B 9117ab32d3e037f22cc209d3686e23d14802438f77203f08e102901d825c06e7c332d1f6ca33bce3af3d4042e9c543fec60e261153be8ab738b038cc1cf4069b SHA512 6a4bfdb93229f48580d8acf742e1e253aa3da79f84ecc3886c32757ddc46608795c58cd02cb0aaa2f7d42188456eac50a243b815baa3752ac6a1b12b9632109c diff --git a/media-video/yle-dl/metadata.xml b/media-video/yle-dl/metadata.xml new file mode 100644 index 00000000000..025d4dde75d --- /dev/null +++ b/media-video/yle-dl/metadata.xml @@ -0,0 +1,12 @@ + + + + + juippis@gentoo.org + Joonas Niilola + + + Use a PHP script as download backend + Use youtube-dl script as a download backend + + diff --git a/media-video/yle-dl/yle-dl-20190614.ebuild b/media-video/yle-dl/yle-dl-20190614.ebuild new file mode 100644 index 00000000000..ecd14071a70 --- /dev/null +++ b/media-video/yle-dl/yle-dl-20190614.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 python3_{5..6} ) + +inherit distutils-r1 + +DESCRIPTION="Download media files from Yle Areena" +HOMEPAGE="http://aajanki.github.io/yle-dl/" +SRC_URI="https://github.com/aajanki/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="libav php test +youtube-dl" + +# Requires an active internet connection during tests +RESTRICT="test" + +RDEPEND=" + !libav? ( media-video/ffmpeg ) + >=dev-python/attrs-18.1.0[${PYTHON_USEDEP}] + =dev-python/configargparse-0.13.0[${PYTHON_USEDEP}] + dev-python/future[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/mini-amf[${PYTHON_USEDEP}] + dev-python/progress[${PYTHON_USEDEP}] + dev-python/pycryptodome[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + net-misc/wget + php? ( + dev-lang/php:*[bcmath,cli,curl,simplexml] + >=dev-libs/openssl-1.0.2:0= + media-video/rtmpdump + ) + youtube-dl? ( net-misc/youtube-dl[${PYTHON_USEDEP}] ) +" +DEPEND=" + test? ( + ${RDEPEND} + dev-python/pytest-runner[${PYTHON_USEDEP}] + ) +" + +DOCS=( COPYING ChangeLog README.fi README.md yledl.conf.sample ) + +src_prepare() { + default + + # Gentoo doesn't ship pycryptodomex with pycryptodome + sed -i 's/pycryptodomex/pycryptodome/g' setup.py || die +} + +python_test() { + # For tests to run succesfully, you need to disable network stricting + # feature first. + # FEATURES="-network-sandbox test" emerge -a yle-dl + esetup.py test +} + +pkg_postinst() { + einfo "Sample configuration file has been installed in " + einfo " /usr/share/doc/yle-dl-2.37/yledl.conf.sample.bz2" +}