mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-video/yle-dl: bump to 20210212 release
- add a note about pytest --geoblocked, - drop dev-python/future dep. Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST yle-dl-20201022.tar.gz 63423 BLAKE2B af79aa27528b9cfafcf297497fe5711d7c9260c5fd245bb556ff340bad3938bf48dac74e1875ae2013346c546d3dc745b2c552b1c32c15cc47106183a6d8cb82 SHA512 14d1bb7e814355dad48a02c240103baec39d831de9a08fb8f1eecdeb13522fd55d891bc519d8303dc156f2b0e300a7c8c4a42feba29b3d7c80c906edc9aadc89
|
||||
DIST yle-dl-20210212.tar.gz 64609 BLAKE2B 1cffaadd6c5628e0d2b2a02cda2c6a98939c0c92e9efda7a6fd0dc02c65f7e0b3a5de6d705143d4dbd1507bc8733d13dd9b0547592c86f6168de63d0fb73463a SHA512 cdef7ff929d3dacd8b599644b46d784412b232f64e3ba2f1d6d2338c8350d38e0ae089e2a79bf12a1d39311daff60a062432b945292c1728b310af3b3a68a98b
|
||||
|
||||
55
media-video/yle-dl/yle-dl-20210212.ebuild
Normal file
55
media-video/yle-dl/yle-dl-20210212.ebuild
Normal file
@@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{7..9} )
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
|
||||
inherit distutils-r1 optfeature
|
||||
|
||||
DESCRIPTION="Download media files from Yle Areena"
|
||||
HOMEPAGE="https://aajanki.github.io/yle-dl/ https://github.com/aajanki/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="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# Requires an active internet connection during tests,
|
||||
# FEATURES="-network-sandbox" to test.
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="media-video/ffmpeg
|
||||
net-misc/wget
|
||||
>=dev-python/attrs-18.1.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/configargparse-0.13.0[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/progress[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]"
|
||||
BDEPEND="test? (
|
||||
${RDEPEND}
|
||||
media-video/ffmpeg[gnutls]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
# Use 'pytest --geoblocked' to only test using non-geo restricted videos.
|
||||
distutils_enable_tests setup.py
|
||||
|
||||
DOCS=( COPYING ChangeLog README.fi README.md yledl.conf.sample )
|
||||
|
||||
src_install() {
|
||||
docompress -x "/usr/share/doc/${PF}/yledl.conf.sample"
|
||||
distutils-r1_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "Sample configuration file has been installed to "
|
||||
elog " /usr/share/doc/yle-dl-${PV}/yledl.conf.sample"
|
||||
elog ""
|
||||
elog "Optional download engines: "
|
||||
optfeature "youtube-dl download engine" net-misc/youtube-dl
|
||||
}
|
||||
Reference in New Issue
Block a user