mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
media-video/yle-dl: add 20260716
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST yle-dl-20260624.tar.gz 84843 BLAKE2B 99595cd1710aaa4b5623e3097256607fef7f182e9ca6466740617419fc3c9296a8ddc6b33c3fd4fe0995767fbbc074c1435fad7e3f592e54b3f05774f400dc8e SHA512 0705fcee26b5d37a4b15c8a1b281f2f42448636713d3445280c86936e442ca766c0e383cbd4da8890ff0939de623623d137d1f05ea86e30777dfd84772034c19
|
||||
DIST yle-dl-20260716.tar.gz 85202 BLAKE2B 1c2ffd43e792c577609d1ead65bee0756c9950535078a0b55f9a56a8b05ccb1c4894a7dce486e5cfc046ae48ffc5fb18da52f46d767db4e358018827fcb3acac SHA512 1a125474533e4e67e28091cd753e46dccc8f04155fcb732cd798291ca17c36a6b4412c57761b1cfb9defc21228df2ebb4d51f661fe2a14c5588953e6fcb8fb2d
|
||||
|
||||
63
media-video/yle-dl/yle-dl-20260716.ebuild
Normal file
63
media-video/yle-dl/yle-dl-20260716.ebuild
Normal file
@@ -0,0 +1,63 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{13..14} )
|
||||
DISTUTILS_USE_PEP517=flit
|
||||
|
||||
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/yle-dl/archive/refs/tags/releases/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/${PN}-releases-${PV}"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
# Requires an active internet connection during tests to test-download different media formats
|
||||
# from Yle Areena.
|
||||
PROPERTIES="test_network"
|
||||
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]
|
||||
)"
|
||||
|
||||
EPYTEST_PLUGINS=( pip wheel )
|
||||
distutils_enable_tests pytest
|
||||
|
||||
DOCS=( COPYING ChangeLog README.fi.md README.sv.md README.md yledl.conf.sample )
|
||||
|
||||
python_test() {
|
||||
# By default the service is available only to Finnish IP addresses.
|
||||
epytest --geoblocked
|
||||
}
|
||||
|
||||
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-${PVR}/yledl.conf.sample"
|
||||
elog
|
||||
optfeature "automatically detect filesystems that require restricted character sets" dev-python/psutil
|
||||
optfeature "store metadata as extended file attributes" dev-python/pyxattr
|
||||
optfeature "youtube-dl download engine" net-misc/yt-dlp
|
||||
}
|
||||
Reference in New Issue
Block a user