1 |
commit: dfd6428e99c7828fc05827469cc01f578817a975 |
2 |
Author: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Sep 24 11:57:08 2021 +0000 |
4 |
Commit: Nicola Smaniotto <smaniotto.nicola <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Sep 24 11:58:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dfd6428e |
7 |
|
8 |
dev-python/srt: bump to 3.5.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Nicola Smaniotto <smaniotto.nicola <AT> gmail.com> |
12 |
|
13 |
dev-python/srt/Manifest | 1 + |
14 |
dev-python/srt/srt-3.5.0.ebuild | 38 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 39 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/srt/Manifest b/dev-python/srt/Manifest |
18 |
index 57a8d4a7d..96f53df9c 100644 |
19 |
--- a/dev-python/srt/Manifest |
20 |
+++ b/dev-python/srt/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST srt-3.4.1.tar.gz 23723 BLAKE2B 33445cb969db64e89978c06fcb0b8145047a1f40082500f507b8c70d42489dc083f7b2972868bf08a9f5fcb1b9a279df279f034455d0b326f3c03da086bd59c5 SHA512 bb214935203b4d3a8bc1dc7968ed318ed55709b880046dd070c3547e5c5e7df6d12f445e3be83a2e938096655008705a76461c404494a1c8eccee36f2ff465cd |
23 |
+DIST srt-3.5.0.tar.gz 24678 BLAKE2B c50704f7811e271116ab6531f4f63eb579b2e34c48e9ab81179d41d08ef803266f3ce7fb0332a9158591326f8a428dda80e3e641db3b4b73cec690cb93af404f SHA512 f5dac7995ce0eddb4da56084b1125200c861a0b21d5b4c8a75c4179a0ce840143abb75f306855ed68170d8c4ab913792c577e21e258ba18bac366c630803a7a5 |
24 |
|
25 |
diff --git a/dev-python/srt/srt-3.5.0.ebuild b/dev-python/srt/srt-3.5.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..b6159b07a |
28 |
--- /dev/null |
29 |
+++ b/dev-python/srt/srt-3.5.0.ebuild |
30 |
@@ -0,0 +1,38 @@ |
31 |
+# Copyright 2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..9} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="A tiny library for parsing, modifying, and composing SRT files" |
41 |
+HOMEPAGE="https://github.com/cdown/srt" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="public-domain" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+ |
48 |
+distutils_enable_tests pytest |
49 |
+ |
50 |
+DEPEND=" |
51 |
+ test? ( |
52 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
53 |
+ ) |
54 |
+ " |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ |
59 |
+ mv "${S}"/srt_tools/srt "${S}"/srt_tools/srt-cdown || die "Cannot rename the file" |
60 |
+ sed -e 's|"srt_tools/srt"|"srt_tools/srt-cdown"|' \ |
61 |
+ -i "${S}"/setup.py || die "Cannot update setup.py" |
62 |
+ |
63 |
+} |
64 |
+ |
65 |
+pkg_postinst() { |
66 |
+ ewarn "To avoid conflict with dev-python/pysrt::gentoo the binary has been" |
67 |
+ ewarn "renamed /usr/bin/srt-cdown. The python module is still called srt." |
68 |
+} |