summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2023-06-13 15:44:50 +0300
committerJoonas Niilola <juippis@gentoo.org>2023-06-13 15:48:41 +0300
commit8c81325fd4d144054d5b11aa5fd0d06426297f58 (patch)
treebe36bf50faac9b2e7caaa58fb824c4b752ea893a /media-video/yle-dl
parentdev-libs/dqlite: add 1.15.0 (diff)
downloadgentoo-8c81325fd4d144054d5b11aa5fd0d06426297f58.tar.gz
gentoo-8c81325fd4d144054d5b11aa5fd0d06426297f58.tar.bz2
gentoo-8c81325fd4d144054d5b11aa5fd0d06426297f58.zip
media-video/yle-dl: add 20230611
Closes: https://bugs.gentoo.org/908028 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-20230611.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/media-video/yle-dl/Manifest b/media-video/yle-dl/Manifest
index d52e551198dc..e754f4daffa5 100644
--- a/media-video/yle-dl/Manifest
+++ b/media-video/yle-dl/Manifest
@@ -1 +1,2 @@
DIST yle-dl-20221231.tar.gz 75559 BLAKE2B 940a7107851ccfee0a93e24fccbac1f58d23a5cd3d6dbdbd5536b2d2c1d797468959453c1727700ae4bbced169e58565384cfbc976b9f89f662447fd51e38daf SHA512 9a08cbbb757cd75a8e2ee61b5c340b9e1bd91f8479f98d434a5e5f716926bfde135f925b5f65a9d043881f6a4e598c4c059aafb1618e5490c46f0f3c6a6dbf2b
+DIST yle-dl-20230611.tar.gz 75718 BLAKE2B 5be5b3bde4290f0799e4d2e15e779798467162e7316be4cd5bae463c798fbfac228614c8a1f4e222e045b70aca3584df428d85e6e12b6f208a6e4265199a6310 SHA512 9027a00f7a3b383187ae1de3bcf2145c64b0f618680ec3fe224397ac23cbb43d0f181f64c8cd7f21b9dbbdfd5ea0045458fb6858fd6be2c4b5b04d5df2747f79
diff --git a/media-video/yle-dl/yle-dl-20230611.ebuild b/media-video/yle-dl/yle-dl-20230611.ebuild
new file mode 100644
index 000000000000..028b9855367a
--- /dev/null
+++ b/media-video/yle-dl/yle-dl-20230611.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_{10..12} )
+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/yt-dlp
+}