1 |
commit: 5a26469094ee85325f48fd129ffb630dd8a4df60 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 31 14:13:10 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 31 14:13:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a264690 |
7 |
|
8 |
media-video/subliminal: cleanup old |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
media-video/subliminal/subliminal-2.1.0.ebuild | 100 ------------------------- |
14 |
1 file changed, 100 deletions(-) |
15 |
|
16 |
diff --git a/media-video/subliminal/subliminal-2.1.0.ebuild b/media-video/subliminal/subliminal-2.1.0.ebuild |
17 |
deleted file mode 100644 |
18 |
index c5d5ae29caa..00000000000 |
19 |
--- a/media-video/subliminal/subliminal-2.1.0.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,100 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-PYTHON_COMPAT=( python3_{6,7} ) |
28 |
-PYTHON_REQ_USE='xml(+)' |
29 |
-DISTUTILS_USE_SETUPTOOLS=rdepend |
30 |
- |
31 |
-inherit distutils-r1 |
32 |
- |
33 |
-SRC_URI="" |
34 |
- |
35 |
-if [[ ${PV} == 9999 ]] ; then |
36 |
- inherit git-r3 |
37 |
- EGIT_REPO_URI="https://github.com/Diaoul/${PN}.git" |
38 |
- EGIT_BRANCH="develop" |
39 |
-else |
40 |
- SRC_URI="https://github.com/Diaoul/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
-fi |
42 |
- |
43 |
-DESCRIPTION="Python library to search and download subtitles" |
44 |
-HOMEPAGE="https://github.com/Diaoul/subliminal https://pypi.org/project/subliminal/" |
45 |
-SRC_URI+=" test? ( mirror://sourceforge/matroska/test_files/matroska_test_w1_1.zip )" |
46 |
- |
47 |
-LICENSE="MIT" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="amd64 ~x86" |
50 |
-IUSE="test" |
51 |
-RESTRICT="!test? ( test )" |
52 |
- |
53 |
-RDEPEND=" |
54 |
- >=dev-python/appdirs-1.3[${PYTHON_USEDEP}] |
55 |
- >=dev-python/babelfish-0.5.2[${PYTHON_USEDEP}] |
56 |
- >=dev-python/beautifulsoup-4.4.0:4[${PYTHON_USEDEP}] |
57 |
- >=dev-python/chardet-2.3.0[${PYTHON_USEDEP}] |
58 |
- >=dev-python/click-4.0[${PYTHON_USEDEP}] |
59 |
- dev-python/decorator[${PYTHON_USEDEP}] |
60 |
- >=dev-python/dogpile-cache-0.6.0[${PYTHON_USEDEP}] |
61 |
- >=dev-python/enzyme-0.4.1[${PYTHON_USEDEP}] |
62 |
- >=dev-python/guessit-2.0.1[${PYTHON_USEDEP}] |
63 |
- >=dev-python/pysrt-1.0.1[${PYTHON_USEDEP}] |
64 |
- >=dev-python/pytz-2012c[${PYTHON_USEDEP}] |
65 |
- >=dev-python/rarfile-2.7[compressed,${PYTHON_USEDEP}] |
66 |
- >=dev-python/requests-2.0[${PYTHON_USEDEP}] |
67 |
- >=dev-python/six-1.9.0[${PYTHON_USEDEP}] |
68 |
- >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}] |
69 |
-" |
70 |
-BDEPEND=" |
71 |
- test? ( |
72 |
- app-arch/unzip |
73 |
- dev-python/sympy[${PYTHON_USEDEP}] |
74 |
- >=dev-python/vcrpy-1.6.1[${PYTHON_USEDEP}] |
75 |
- ) |
76 |
-" |
77 |
- |
78 |
-PATCHES=( |
79 |
- "${FILESDIR}/${P}-fix-pytest-warning.patch" |
80 |
-) |
81 |
- |
82 |
-distutils_enable_tests pytest |
83 |
- |
84 |
-src_unpack() { |
85 |
- # Needed to unpack the test data |
86 |
- default |
87 |
- |
88 |
- if [[ ${PV} == 9999 ]] ; then |
89 |
- git-r3_src_unpack |
90 |
- fi |
91 |
-} |
92 |
- |
93 |
-python_prepare_all() { |
94 |
- # Disable code checkers as they require unavailable dependencies. |
95 |
- sed -i -e 's/--\(pep8\|flakes\)//g' pytest.ini || die |
96 |
- |
97 |
- # Disable unconditional dependency on dev-python/pytest-runner. |
98 |
- sed -i -e "s|'pytest-runner'||g" setup.py || die |
99 |
- |
100 |
- if use test ; then |
101 |
- mkdir -p tests/data/mkv || die |
102 |
- ln -s "${WORKDIR}"/test*.mkv tests/data/mkv/ || die |
103 |
- fi |
104 |
- |
105 |
- distutils-r1_python_prepare_all |
106 |
-} |
107 |
- |
108 |
-python_test() { |
109 |
- local skipped_tests=( |
110 |
- tests/test_core.py::test_scan_archive_with_one_video |
111 |
- tests/test_core.py::test_scan_archive_with_multiple_videos |
112 |
- tests/test_core.py::test_scan_archive_with_no_video |
113 |
- tests/test_core.py::test_scan_password_protected_archive |
114 |
- ) |
115 |
- |
116 |
- # Two tests that list providers rely on entry points |
117 |
- # so they need the package to be installed |
118 |
- distutils_install_for_testing |
119 |
- pytest -vv --ignore ${PN}/test/test_core.py ${skipped_tests[@]/#/--deselect } \ |
120 |
- || die "Tests fail with ${EPYTHON}" |
121 |
-} |