summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2021-02-13 15:35:12 +0200
committerJoonas Niilola <juippis@gentoo.org>2021-02-13 15:39:48 +0200
commite847ed7eecea06e94c727803895fc841feb14af4 (patch)
treee3ec8096e5ad752a265c7266dd9906a4076b6717 /media-video/yle-dl
parentgames-board/gmchess: Drop old 0.29.6-r2 (diff)
downloadgentoo-e847ed7eecea06e94c727803895fc841feb14af4.tar.gz
gentoo-e847ed7eecea06e94c727803895fc841feb14af4.tar.bz2
gentoo-e847ed7eecea06e94c727803895fc841feb14af4.zip
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>
Diffstat (limited to 'media-video/yle-dl')
-rw-r--r--media-video/yle-dl/Manifest1
-rw-r--r--media-video/yle-dl/yle-dl-20210212.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/media-video/yle-dl/Manifest b/media-video/yle-dl/Manifest
index 0159c87b2cff..d1688e8d45aa 100644
--- a/media-video/yle-dl/Manifest
+++ b/media-video/yle-dl/Manifest
@@ -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
diff --git a/media-video/yle-dl/yle-dl-20210212.ebuild b/media-video/yle-dl/yle-dl-20210212.ebuild
new file mode 100644
index 000000000000..fe8df8d34f55
--- /dev/null
+++ b/media-video/yle-dl/yle-dl-20210212.ebuild
@@ -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
+}