commit: 7d69200c89186c2ac5e5b517b0738be239dee4d2 Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> AuthorDate: Mon Nov 8 12:22:01 2021 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Mon Nov 8 12:22:01 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7d69200c
media-video/ffsubsync: bump to 0.4.19 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com> media-video/ffsubsync/Manifest | 1 + media-video/ffsubsync/ffsubsync-0.4.19.ebuild | 40 +++++ ...fsubsync-0.4.19-remove-future_annotations.patch | 176 +++++++++++++++++++++ 3 files changed, 217 insertions(+) diff --git a/media-video/ffsubsync/Manifest b/media-video/ffsubsync/Manifest index c439335e7..5efc8004f 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 000000000..ec84e2212 --- /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 000000000..c8e743adc --- /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 <dev-lang/python-3.7, using the __future__ module instead. +Patch by Nicola Smaniotto. + +diff --git a/ffsubsync/__init__.py b/ffsubsync/__init__.py +index 1ce6e51..965cb46 100644 +--- a/ffsubsync/__init__.py ++++ b/ffsubsync/__init__.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import logging + import sys + +diff --git a/ffsubsync/aligners.py b/ffsubsync/aligners.py +index 6c7afc7..d777eff 100644 +--- a/ffsubsync/aligners.py ++++ b/ffsubsync/aligners.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import logging + import math + from typing import TYPE_CHECKING +diff --git a/ffsubsync/constants.py b/ffsubsync/constants.py +index 99d08e9..176e786 100644 +--- a/ffsubsync/constants.py ++++ b/ffsubsync/constants.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + from typing import TYPE_CHECKING + + if TYPE_CHECKING: +diff --git a/ffsubsync/ffmpeg_utils.py b/ffsubsync/ffmpeg_utils.py +index ee96da3..10dd923 100644 +--- a/ffsubsync/ffmpeg_utils.py ++++ b/ffsubsync/ffmpeg_utils.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import logging + import os + import platform +diff --git a/ffsubsync/ffsubsync.py b/ffsubsync/ffsubsync.py +index d10e969..6005b5c 100755 +--- a/ffsubsync/ffsubsync.py ++++ b/ffsubsync/ffsubsync.py +@@ -1,5 +1,5 @@ + #!/usr/bin/env python +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import argparse + from datetime import datetime + import logging +diff --git a/ffsubsync/ffsubsync_gui.py b/ffsubsync/ffsubsync_gui.py +index a8c7ba1..b29607c 100755 +--- a/ffsubsync/ffsubsync_gui.py ++++ b/ffsubsync/ffsubsync_gui.py +@@ -1,5 +1,5 @@ + #!/usr/bin/env python +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import logging + import os + import sys +diff --git a/ffsubsync/file_utils.py b/ffsubsync/file_utils.py +index cfb3867..2aa7a9a 100644 +--- a/ffsubsync/file_utils.py ++++ b/ffsubsync/file_utils.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import six + import sys + +diff --git a/ffsubsync/generic_subtitles.py b/ffsubsync/generic_subtitles.py +index 65c3729..a293eab 100644 +--- a/ffsubsync/generic_subtitles.py ++++ b/ffsubsync/generic_subtitles.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import copy + from datetime import timedelta + import logging +diff --git a/ffsubsync/sklearn_shim.py b/ffsubsync/sklearn_shim.py +index d127e6a..f9d060d 100644 +--- a/ffsubsync/sklearn_shim.py ++++ b/ffsubsync/sklearn_shim.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + """ + This module borrows and adapts `Pipeline` from `sklearn.pipeline` and + `TransformerMixin` from `sklearn.base` in the scikit-learn framework +diff --git a/ffsubsync/speech_transformers.py b/ffsubsync/speech_transformers.py +index 21a042a..ead16de 100644 +--- a/ffsubsync/speech_transformers.py ++++ b/ffsubsync/speech_transformers.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + from contextlib import contextmanager + import logging + import io +diff --git a/ffsubsync/subtitle_parser.py b/ffsubsync/subtitle_parser.py +index 92a01db..74a7b5b 100755 +--- a/ffsubsync/subtitle_parser.py ++++ b/ffsubsync/subtitle_parser.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + from datetime import timedelta + import logging + from typing import TYPE_CHECKING +diff --git a/ffsubsync/subtitle_transformers.py b/ffsubsync/subtitle_transformers.py +index fbb498b..f18151d 100644 +--- a/ffsubsync/subtitle_transformers.py ++++ b/ffsubsync/subtitle_transformers.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + from datetime import timedelta + import logging + import numbers +diff --git a/ffsubsync/version.py b/ffsubsync/version.py +index fadd2c7..ef01e83 100644 +--- a/ffsubsync/version.py ++++ b/ffsubsync/version.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import os + from ffsubsync.constants import SUBSYNC_RESOURCES_ENV_MAGIC + from ffsubsync._version import get_versions +diff --git a/tests/test_alignment.py b/tests/test_alignment.py +index 13d60d0..9aa476e 100644 +--- a/tests/test_alignment.py ++++ b/tests/test_alignment.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import pytest + from ffsubsync.aligners import FFTAligner, MaxScoreAligner + +diff --git a/tests/test_integration.py b/tests/test_integration.py +index dd470a5..7f36769 100644 +--- a/tests/test_integration.py ++++ b/tests/test_integration.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + + import filecmp + import os +diff --git a/tests/test_misc.py b/tests/test_misc.py +index 135f4ae..3168493 100644 +--- a/tests/test_misc.py ++++ b/tests/test_misc.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import pytest + from ffsubsync.version import make_version_tuple + +diff --git a/tests/test_subtitles.py b/tests/test_subtitles.py +index ae6f42b..29ffa21 100644 +--- a/tests/test_subtitles.py ++++ b/tests/test_subtitles.py +@@ -1,4 +1,4 @@ +-# -*- coding: future_annotations -*- ++from __future__ import annotations + import itertools + from io import BytesIO + from datetime import timedelta