Gentoo Archives: gentoo-commits

From: Nicola Smaniotto <smaniotto.nicola@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-video/ffsubsync/files/, media-video/ffsubsync/
Date: Mon, 08 Nov 2021 12:22:19
Message-Id: 1636374121.7d69200c89186c2ac5e5b517b0738be239dee4d2.smaniotto.nicola@gentoo
1 commit: 7d69200c89186c2ac5e5b517b0738be239dee4d2
2 Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
3 AuthorDate: Mon Nov 8 12:22:01 2021 +0000
4 Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com>
5 CommitDate: Mon Nov 8 12:22:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7d69200c
7
8 media-video/ffsubsync: bump to 0.4.19
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com>
12
13 media-video/ffsubsync/Manifest | 1 +
14 media-video/ffsubsync/ffsubsync-0.4.19.ebuild | 40 +++++
15 ...fsubsync-0.4.19-remove-future_annotations.patch | 176 +++++++++++++++++++++
16 3 files changed, 217 insertions(+)
17
18 diff --git a/media-video/ffsubsync/Manifest b/media-video/ffsubsync/Manifest
19 index c439335e7..5efc8004f 100644
20 --- a/media-video/ffsubsync/Manifest
21 +++ b/media-video/ffsubsync/Manifest
22 @@ -1 +1,2 @@
23 DIST ffsubsync-0.4.18.tar.gz 3821259 BLAKE2B 79c1d7ed1316b1c91f23de442988c0234c89f3f51a605f3982aa32c880f2bb33f0bd280906d3b2ea3c3f9de4b1453b0c053b16cd382ee55ea24f692f81b6cd04 SHA512 be3243b8a24c163509f519105e509a26e8fac76ba2305b07c413ade1c645043bc90f9d0c862f346d911e5897bc1b97f5c34d9c210146df0aab24345b0541204b
24 +DIST ffsubsync-0.4.19.tar.gz 3821580 BLAKE2B 0e34ab0c4426dc6c0319cd3ccee9ade3b1ebef5bf807511d96cd08a9e492d3e2f7220eb4c3bf80815643b52b0f23d44c04d014f909685e9d999ca5df25cfca12 SHA512 48b1810afa4f081a08932d85cdebbfba46de2adc452085d3191576a3b34c921145e6911508d09e4485b31e8ddfceeb5e8b9aaf1ee24d23a46608b4cba09fd4a7
25
26 diff --git a/media-video/ffsubsync/ffsubsync-0.4.19.ebuild b/media-video/ffsubsync/ffsubsync-0.4.19.ebuild
27 new file mode 100644
28 index 000000000..ec84e2212
29 --- /dev/null
30 +++ b/media-video/ffsubsync/ffsubsync-0.4.19.ebuild
31 @@ -0,0 +1,40 @@
32 +# Copyright 2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +PYTHON_COMPAT=( python3_{8..9} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Automagically syncronize subtitles with video"
41 +HOMEPAGE="https://github.com/smacke/ffsubsync"
42 +SRC_URI="https://github.com/smacke/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +
48 +RDEPEND="
49 + dev-python/auditok[${PYTHON_USEDEP}]
50 + dev-python/cchardet[${PYTHON_USEDEP}]
51 + dev-python/ffmpeg-python[${PYTHON_USEDEP}]
52 + dev-python/future[${PYTHON_USEDEP}]
53 + >=dev-python/numpy-1.12.0[${PYTHON_USEDEP}]
54 + >=dev-python/pysubs2-1.2.0[${PYTHON_USEDEP}]
55 + dev-python/rich[${PYTHON_USEDEP}]
56 + dev-python/six[${PYTHON_USEDEP}]
57 + >=dev-python/srt-3.0.0[${PYTHON_USEDEP}]
58 + dev-python/tqdm[${PYTHON_USEDEP}]
59 + dev-python/webrtcvad[${PYTHON_USEDEP}]
60 +"
61 +
62 +PATCHES=(
63 + "${FILESDIR}"/"${P}"-remove-future_annotations.patch
64 +)
65 +
66 +distutils_enable_tests pytest
67 +
68 +python_prepare_all() {
69 + sed "/argparse/d" -i requirements.txt || die
70 + distutils-r1_python_prepare_all
71 +}
72
73 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
74 new file mode 100644
75 index 000000000..c8e743adc
76 --- /dev/null
77 +++ b/media-video/ffsubsync/files/ffsubsync-0.4.19-remove-future_annotations.patch
78 @@ -0,0 +1,176 @@
79 +Removes the dependency from future-annotations, since the ebuild does
80 +not support <dev-lang/python-3.7, using the __future__ module instead.
81 +Patch by Nicola Smaniotto.
82 +
83 +diff --git a/ffsubsync/__init__.py b/ffsubsync/__init__.py
84 +index 1ce6e51..965cb46 100644
85 +--- a/ffsubsync/__init__.py
86 ++++ b/ffsubsync/__init__.py
87 +@@ -1,4 +1,4 @@
88 +-# -*- coding: future_annotations -*-
89 ++from __future__ import annotations
90 + import logging
91 + import sys
92 +
93 +diff --git a/ffsubsync/aligners.py b/ffsubsync/aligners.py
94 +index 6c7afc7..d777eff 100644
95 +--- a/ffsubsync/aligners.py
96 ++++ b/ffsubsync/aligners.py
97 +@@ -1,4 +1,4 @@
98 +-# -*- coding: future_annotations -*-
99 ++from __future__ import annotations
100 + import logging
101 + import math
102 + from typing import TYPE_CHECKING
103 +diff --git a/ffsubsync/constants.py b/ffsubsync/constants.py
104 +index 99d08e9..176e786 100644
105 +--- a/ffsubsync/constants.py
106 ++++ b/ffsubsync/constants.py
107 +@@ -1,4 +1,4 @@
108 +-# -*- coding: future_annotations -*-
109 ++from __future__ import annotations
110 + from typing import TYPE_CHECKING
111 +
112 + if TYPE_CHECKING:
113 +diff --git a/ffsubsync/ffmpeg_utils.py b/ffsubsync/ffmpeg_utils.py
114 +index ee96da3..10dd923 100644
115 +--- a/ffsubsync/ffmpeg_utils.py
116 ++++ b/ffsubsync/ffmpeg_utils.py
117 +@@ -1,4 +1,4 @@
118 +-# -*- coding: future_annotations -*-
119 ++from __future__ import annotations
120 + import logging
121 + import os
122 + import platform
123 +diff --git a/ffsubsync/ffsubsync.py b/ffsubsync/ffsubsync.py
124 +index d10e969..6005b5c 100755
125 +--- a/ffsubsync/ffsubsync.py
126 ++++ b/ffsubsync/ffsubsync.py
127 +@@ -1,5 +1,5 @@
128 + #!/usr/bin/env python
129 +-# -*- coding: future_annotations -*-
130 ++from __future__ import annotations
131 + import argparse
132 + from datetime import datetime
133 + import logging
134 +diff --git a/ffsubsync/ffsubsync_gui.py b/ffsubsync/ffsubsync_gui.py
135 +index a8c7ba1..b29607c 100755
136 +--- a/ffsubsync/ffsubsync_gui.py
137 ++++ b/ffsubsync/ffsubsync_gui.py
138 +@@ -1,5 +1,5 @@
139 + #!/usr/bin/env python
140 +-# -*- coding: future_annotations -*-
141 ++from __future__ import annotations
142 + import logging
143 + import os
144 + import sys
145 +diff --git a/ffsubsync/file_utils.py b/ffsubsync/file_utils.py
146 +index cfb3867..2aa7a9a 100644
147 +--- a/ffsubsync/file_utils.py
148 ++++ b/ffsubsync/file_utils.py
149 +@@ -1,4 +1,4 @@
150 +-# -*- coding: future_annotations -*-
151 ++from __future__ import annotations
152 + import six
153 + import sys
154 +
155 +diff --git a/ffsubsync/generic_subtitles.py b/ffsubsync/generic_subtitles.py
156 +index 65c3729..a293eab 100644
157 +--- a/ffsubsync/generic_subtitles.py
158 ++++ b/ffsubsync/generic_subtitles.py
159 +@@ -1,4 +1,4 @@
160 +-# -*- coding: future_annotations -*-
161 ++from __future__ import annotations
162 + import copy
163 + from datetime import timedelta
164 + import logging
165 +diff --git a/ffsubsync/sklearn_shim.py b/ffsubsync/sklearn_shim.py
166 +index d127e6a..f9d060d 100644
167 +--- a/ffsubsync/sklearn_shim.py
168 ++++ b/ffsubsync/sklearn_shim.py
169 +@@ -1,4 +1,4 @@
170 +-# -*- coding: future_annotations -*-
171 ++from __future__ import annotations
172 + """
173 + This module borrows and adapts `Pipeline` from `sklearn.pipeline` and
174 + `TransformerMixin` from `sklearn.base` in the scikit-learn framework
175 +diff --git a/ffsubsync/speech_transformers.py b/ffsubsync/speech_transformers.py
176 +index 21a042a..ead16de 100644
177 +--- a/ffsubsync/speech_transformers.py
178 ++++ b/ffsubsync/speech_transformers.py
179 +@@ -1,4 +1,4 @@
180 +-# -*- coding: future_annotations -*-
181 ++from __future__ import annotations
182 + from contextlib import contextmanager
183 + import logging
184 + import io
185 +diff --git a/ffsubsync/subtitle_parser.py b/ffsubsync/subtitle_parser.py
186 +index 92a01db..74a7b5b 100755
187 +--- a/ffsubsync/subtitle_parser.py
188 ++++ b/ffsubsync/subtitle_parser.py
189 +@@ -1,4 +1,4 @@
190 +-# -*- coding: future_annotations -*-
191 ++from __future__ import annotations
192 + from datetime import timedelta
193 + import logging
194 + from typing import TYPE_CHECKING
195 +diff --git a/ffsubsync/subtitle_transformers.py b/ffsubsync/subtitle_transformers.py
196 +index fbb498b..f18151d 100644
197 +--- a/ffsubsync/subtitle_transformers.py
198 ++++ b/ffsubsync/subtitle_transformers.py
199 +@@ -1,4 +1,4 @@
200 +-# -*- coding: future_annotations -*-
201 ++from __future__ import annotations
202 + from datetime import timedelta
203 + import logging
204 + import numbers
205 +diff --git a/ffsubsync/version.py b/ffsubsync/version.py
206 +index fadd2c7..ef01e83 100644
207 +--- a/ffsubsync/version.py
208 ++++ b/ffsubsync/version.py
209 +@@ -1,4 +1,4 @@
210 +-# -*- coding: future_annotations -*-
211 ++from __future__ import annotations
212 + import os
213 + from ffsubsync.constants import SUBSYNC_RESOURCES_ENV_MAGIC
214 + from ffsubsync._version import get_versions
215 +diff --git a/tests/test_alignment.py b/tests/test_alignment.py
216 +index 13d60d0..9aa476e 100644
217 +--- a/tests/test_alignment.py
218 ++++ b/tests/test_alignment.py
219 +@@ -1,4 +1,4 @@
220 +-# -*- coding: future_annotations -*-
221 ++from __future__ import annotations
222 + import pytest
223 + from ffsubsync.aligners import FFTAligner, MaxScoreAligner
224 +
225 +diff --git a/tests/test_integration.py b/tests/test_integration.py
226 +index dd470a5..7f36769 100644
227 +--- a/tests/test_integration.py
228 ++++ b/tests/test_integration.py
229 +@@ -1,4 +1,4 @@
230 +-# -*- coding: future_annotations -*-
231 ++from __future__ import annotations
232 +
233 + import filecmp
234 + import os
235 +diff --git a/tests/test_misc.py b/tests/test_misc.py
236 +index 135f4ae..3168493 100644
237 +--- a/tests/test_misc.py
238 ++++ b/tests/test_misc.py
239 +@@ -1,4 +1,4 @@
240 +-# -*- coding: future_annotations -*-
241 ++from __future__ import annotations
242 + import pytest
243 + from ffsubsync.version import make_version_tuple
244 +
245 +diff --git a/tests/test_subtitles.py b/tests/test_subtitles.py
246 +index ae6f42b..29ffa21 100644
247 +--- a/tests/test_subtitles.py
248 ++++ b/tests/test_subtitles.py
249 +@@ -1,4 +1,4 @@
250 +-# -*- coding: future_annotations -*-
251 ++from __future__ import annotations
252 + import itertools
253 + from io import BytesIO
254 + from datetime import timedelta