summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-01-05 11:10:37 +0200
committerJoonas Niilola <juippis@gentoo.org>2023-01-05 11:23:27 +0200
commitf4ac2f68e13b3bebe087c0747db4ff59ad833633 (patch)
tree306b81e01d1e03fd80cf5a8b9f07084c1523a276 /media-video
parentsys-kernel/pf-sources: add 6.1-pf2 (diff)
downloadgentoo-f4ac2f68e13b3bebe087c0747db4ff59ad833633.tar.gz
gentoo-f4ac2f68e13b3bebe087c0747db4ff59ad833633.tar.bz2
gentoo-f4ac2f68e13b3bebe087c0747db4ff59ad833633.zip
media-video/yle-dl: add 20221231
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/yle-dl/Manifest1
-rw-r--r--media-video/yle-dl/yle-dl-20221231.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/media-video/yle-dl/Manifest b/media-video/yle-dl/Manifest
index 9640169779b8..07be25f2b99e 100644
--- a/media-video/yle-dl/Manifest
+++ b/media-video/yle-dl/Manifest
@@ -1 +1,2 @@
DIST yle-dl-20221111.tar.gz 74708 BLAKE2B ecd0913ee1f50901932cc1218864157612633dd6490d2a0ebf6dd42e796b0a2bfd5bb07043c6ecf1dcfb936c597ec954c3c2676e7d893b38b2e77c09145a24a8 SHA512 52d8219235d1d17b7f646213afcbda44051af7aec0f0ec05b8162e1e40b1b32ad939f63d45af4d9179f22e2003c9707e7b640099b14e1ec7f3cbc83a747a36d0
+DIST yle-dl-20221231.tar.gz 75559 BLAKE2B 940a7107851ccfee0a93e24fccbac1f58d23a5cd3d6dbdbd5536b2d2c1d797468959453c1727700ae4bbced169e58565384cfbc976b9f89f662447fd51e38daf SHA512 9a08cbbb757cd75a8e2ee61b5c340b9e1bd91f8479f98d434a5e5f716926bfde135f925b5f65a9d043881f6a4e598c4c059aafb1618e5490c46f0f3c6a6dbf2b
diff --git a/media-video/yle-dl/yle-dl-20221231.ebuild b/media-video/yle-dl/yle-dl-20221231.ebuild
new file mode 100644
index 000000000000..8fcd38123c16
--- /dev/null
+++ b/media-video/yle-dl/yle-dl-20221231.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+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/${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,
+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]
+ dev-python/pip[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/wheel[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_tests pytest
+
+DOCS=( COPYING ChangeLog README.fi.md 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-${PVR}/yledl.conf.sample"
+ elog
+ optfeature "youtube-dl download engine" net-misc/youtube-dl net-misc/yt-dlp
+}