diff --git a/media-video/ffsubsync/Manifest b/media-video/ffsubsync/Manifest index c439335e71..5efc8004f3 100644 --- a/media-video/ffsubsync/Manifest +++ b/media-video/ffsubsync/Manifest @@ -1 +1,2 @@ DIST ffsubsync-0.4.18.tar.gz 3821259 BLAKE2B 79c1d7ed1316b1c91f23de442988c0234c89f3f51a605f3982aa32c880f2bb33f0bd280906d3b2ea3c3f9de4b1453b0c053b16cd382ee55ea24f692f81b6cd04 SHA512 be3243b8a24c163509f519105e509a26e8fac76ba2305b07c413ade1c645043bc90f9d0c862f346d911e5897bc1b97f5c34d9c210146df0aab24345b0541204b +DIST ffsubsync-0.4.19.tar.gz 3821580 BLAKE2B 0e34ab0c4426dc6c0319cd3ccee9ade3b1ebef5bf807511d96cd08a9e492d3e2f7220eb4c3bf80815643b52b0f23d44c04d014f909685e9d999ca5df25cfca12 SHA512 48b1810afa4f081a08932d85cdebbfba46de2adc452085d3191576a3b34c921145e6911508d09e4485b31e8ddfceeb5e8b9aaf1ee24d23a46608b4cba09fd4a7 diff --git a/media-video/ffsubsync/ffsubsync-0.4.19.ebuild b/media-video/ffsubsync/ffsubsync-0.4.19.ebuild new file mode 100644 index 0000000000..ec84e22129 --- /dev/null +++ b/media-video/ffsubsync/ffsubsync-0.4.19.ebuild @@ -0,0 +1,40 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{8..9} ) + +inherit distutils-r1 + +DESCRIPTION="Automagically syncronize subtitles with video" +HOMEPAGE="https://github.com/smacke/ffsubsync" +SRC_URI="https://github.com/smacke/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/auditok[${PYTHON_USEDEP}] + dev-python/cchardet[${PYTHON_USEDEP}] + dev-python/ffmpeg-python[${PYTHON_USEDEP}] + dev-python/future[${PYTHON_USEDEP}] + >=dev-python/numpy-1.12.0[${PYTHON_USEDEP}] + >=dev-python/pysubs2-1.2.0[${PYTHON_USEDEP}] + dev-python/rich[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}] + >=dev-python/srt-3.0.0[${PYTHON_USEDEP}] + dev-python/tqdm[${PYTHON_USEDEP}] + dev-python/webrtcvad[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}"/"${P}"-remove-future_annotations.patch +) + +distutils_enable_tests pytest + +python_prepare_all() { + sed "/argparse/d" -i requirements.txt || die + distutils-r1_python_prepare_all +} diff --git a/media-video/ffsubsync/files/ffsubsync-0.4.19-remove-future_annotations.patch b/media-video/ffsubsync/files/ffsubsync-0.4.19-remove-future_annotations.patch new file mode 100644 index 0000000000..c8e743adc2 --- /dev/null +++ b/media-video/ffsubsync/files/ffsubsync-0.4.19-remove-future_annotations.patch @@ -0,0 +1,176 @@ +Removes the dependency from future-annotations, since the ebuild does +not support