Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/anki/
Date: Fri, 01 Jan 2021 00:47:07
Message-Id: 1609461961.6c9e5e8acc36790009fa589de371c9404863cc3a.mgorny@gentoo
1 commit: 6c9e5e8acc36790009fa589de371c9404863cc3a
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 1 00:42:41 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 1 00:46:01 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c9e5e8a
7
8 app-misc/anki: Remove old (py3.6)
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 app-misc/anki/Manifest | 2 -
13 app-misc/anki/anki-2.1.0_beta27.ebuild | 99 ----------------------------------
14 app-misc/anki/anki-2.1.13-r1.ebuild | 98 ---------------------------------
15 app-misc/anki/metadata.xml | 8 ---
16 4 files changed, 207 deletions(-)
17
18 diff --git a/app-misc/anki/Manifest b/app-misc/anki/Manifest
19 index d013dc23f14..fcec57bd07d 100644
20 --- a/app-misc/anki/Manifest
21 +++ b/app-misc/anki/Manifest
22 @@ -1,3 +1 @@
23 -DIST anki-2.1.0_beta27.tgz 4127906 BLAKE2B b4f83cc30dc3e89f3ca17c03ba8dcfc9a487de43d8ac564d5dc83488e286c302816c8a8140aa764b596404194c5f3727218deec303ef201ccaef38b945d8b32d SHA512 50b4ece1361ecafdfe08dad04e9b622b1e8ba2224bfef7e4660c95f81cb8f525d892170548d741ff53bc19ff4c13863f488a71c31c8328511fea3203d2c345f1
24 -DIST anki-2.1.13.tgz 4248906 BLAKE2B 82a2a9a556cbf3596af22a73a2865815561cdd408b249443fc7e144734fdc2b62317120db71475afd7b0d4027f19e53c47437132028ef78b158ec3624f54a33f SHA512 921ef48b16c0c8c83b85523aa0a5b828210b210cd51fa471f57e9aa6777a1aced30c7e24084ef0c2f14c9d846a19091923d13faaff7ed9075860fc23f8ba1cd3
25 DIST anki-2.1.15.tgz 4269571 BLAKE2B 00b351f5ffacb363642e02bf806bcd7c0d9446c9815a75328e7fa37c848b271b135510de17cc012e8cc96d8a52a183a49de84b6f85f562a370255bd36c6f866e SHA512 f3acfa6ff62d43fa461efddd81a8570304ada53b97bd494fdbbe0a0439700d7a52aa62ead31cbaed731be0df96a6cc845a7cf92dcf65f3080dc63282fe5941c3
26
27 diff --git a/app-misc/anki/anki-2.1.0_beta27.ebuild b/app-misc/anki/anki-2.1.0_beta27.ebuild
28 deleted file mode 100644
29 index 9b0a46164d6..00000000000
30 --- a/app-misc/anki/anki-2.1.0_beta27.ebuild
31 +++ /dev/null
32 @@ -1,99 +0,0 @@
33 -# Copyright 1999-2020 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -PYTHON_COMPAT=( python3_6 )
39 -PYTHON_REQ_USE="sqlite"
40 -
41 -inherit eutils python-single-r1 xdg
42 -
43 -DESCRIPTION="A spaced-repetition memory training program (flash cards)"
44 -HOMEPAGE="https://apps.ankiweb.net"
45 -
46 -MY_P="${P/_/}"
47 -SRC_URI="https://apps.ankiweb.net/downloads/beta/${MY_P}-source.tgz -> ${P}.tgz"
48 -S="${WORKDIR}/${MY_P}"
49 -
50 -LICENSE="GPL-3"
51 -SLOT="0"
52 -KEYWORDS="~amd64 ~x86"
53 -IUSE="latex +recording +sound test"
54 -RESTRICT="!test? ( test )"
55 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
56 -
57 -RDEPEND="${PYTHON_DEPS}
58 - $(python_gen_cond_dep '
59 - || (
60 - (
61 - >=dev-python/PyQt5-5.12[gui,svg,widgets,${PYTHON_MULTI_USEDEP}]
62 - dev-python/PyQtWebEngine[${PYTHON_MULTI_USEDEP}]
63 - )
64 - <dev-python/PyQt5-5.12[gui,svg,webengine,widgets,${PYTHON_MULTI_USEDEP}]
65 - )
66 - >=dev-python/httplib2-0.7.4[${PYTHON_MULTI_USEDEP}]
67 - dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}]
68 - dev-python/decorator[${PYTHON_MULTI_USEDEP}]
69 - dev-python/markdown[${PYTHON_MULTI_USEDEP}]
70 - dev-python/requests[${PYTHON_MULTI_USEDEP}]
71 - dev-python/send2trash[${PYTHON_MULTI_USEDEP}]
72 - recording? (
73 - media-sound/lame
74 - >=dev-python/pyaudio-0.2.4[${PYTHON_MULTI_USEDEP}]
75 - )
76 - ')
77 - sound? ( media-video/mplayer )
78 - latex? (
79 - app-text/texlive
80 - app-text/dvipng
81 - )
82 -"
83 -DEPEND="${RDEPEND}
84 - test? (
85 - $(python_gen_cond_dep '
86 - dev-python/nose[${PYTHON_MULTI_USEDEP}]
87 - ')
88 - )
89 -"
90 -
91 -PATCHES=( "${FILESDIR}"/${PN}-2.1.0_beta25-web-folder.patch )
92 -
93 -pkg_setup() {
94 - python-single-r1_pkg_setup
95 -}
96 -
97 -src_prepare() {
98 - default
99 - sed -i -e "s/updates=True/updates=False/" \
100 - aqt/profiles.py || die
101 -}
102 -
103 -src_compile() {
104 - :;
105 -}
106 -
107 -src_test() {
108 - sed -e "s:nosetests:${EPYTHON} ${EROOT}usr/bin/nosetests:" \
109 - -i tools/tests.sh || die
110 - ./tools/tests.sh || die
111 -}
112 -
113 -src_install() {
114 - cp tools/runanki.system tools/anki
115 - doicon ${PN}.png
116 - domenu ${PN}.desktop
117 - doman ${PN}.1
118 -
119 - dodoc README.md README.development
120 - python_domodule aqt anki
121 - python_doscript tools/anki
122 -
123 - # Localization files go into the anki directory:
124 - python_moduleinto anki
125 - python_domodule locale
126 -
127 - # not sure if this is correct, but
128 - # site-packages/aqt/mediasrv.py wants the directory
129 - insinto /usr/share/anki
130 - doins -r web
131 -}
132
133 diff --git a/app-misc/anki/anki-2.1.13-r1.ebuild b/app-misc/anki/anki-2.1.13-r1.ebuild
134 deleted file mode 100644
135 index 9c1a33eea45..00000000000
136 --- a/app-misc/anki/anki-2.1.13-r1.ebuild
137 +++ /dev/null
138 @@ -1,98 +0,0 @@
139 -# Copyright 1999-2020 Gentoo Authors
140 -# Distributed under the terms of the GNU General Public License v2
141 -
142 -EAPI=6
143 -
144 -PYTHON_COMPAT=( python3_6 )
145 -PYTHON_REQ_USE="sqlite"
146 -
147 -inherit eutils python-single-r1 xdg
148 -
149 -DESCRIPTION="A spaced-repetition memory training program (flash cards)"
150 -HOMEPAGE="https://apps.ankiweb.net"
151 -SRC_URI="https://apps.ankiweb.net/downloads/current/${P}-source.tgz -> ${P}.tgz"
152 -
153 -S="${WORKDIR}/${P}"
154 -
155 -LICENSE="GPL-3"
156 -SLOT="0"
157 -KEYWORDS="~amd64 ~x86"
158 -IUSE="latex +recording +sound test"
159 -RESTRICT="!test? ( test )"
160 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
161 -
162 -RDEPEND="${PYTHON_DEPS}
163 - $(python_gen_cond_dep '
164 - || (
165 - (
166 - >=dev-python/PyQt5-5.12[gui,svg,widgets,${PYTHON_MULTI_USEDEP}]
167 - dev-python/PyQtWebEngine[${PYTHON_MULTI_USEDEP}]
168 - )
169 - <dev-python/PyQt5-5.12[gui,svg,webengine,widgets,${PYTHON_MULTI_USEDEP}]
170 - )
171 - >=dev-python/httplib2-0.7.4[${PYTHON_MULTI_USEDEP}]
172 - dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}]
173 - dev-python/decorator[${PYTHON_MULTI_USEDEP}]
174 - dev-python/markdown[${PYTHON_MULTI_USEDEP}]
175 - dev-python/requests[${PYTHON_MULTI_USEDEP}]
176 - dev-python/send2trash[${PYTHON_MULTI_USEDEP}]
177 - ')
178 - recording? ( media-sound/lame )
179 - sound? ( media-video/mpv )
180 - latex? (
181 - app-text/texlive
182 - app-text/dvipng
183 - )
184 -"
185 -DEPEND="${RDEPEND}
186 - test? (
187 - $(python_gen_cond_dep '
188 - dev-python/nose[${PYTHON_MULTI_USEDEP}]
189 - ')
190 - )
191 -"
192 -
193 -PATCHES=( "${FILESDIR}"/${PN}-2.1.0_beta25-web-folder.patch )
194 -
195 -pkg_setup() {
196 - python-single-r1_pkg_setup
197 -}
198 -
199 -src_prepare() {
200 - default
201 - sed -i -e "s/updates=True/updates=False/" \
202 - aqt/profiles.py || die
203 -}
204 -
205 -src_compile() {
206 - :;
207 -}
208 -
209 -src_test() {
210 - sed -e "s:nose=nosetests$:nose=\"${EPYTHON} ${EROOT}usr/bin/nosetests\":" \
211 - -i tools/tests.sh || die
212 - sed -e "s:nose=nosetests3$:nose=\"${EPYTHON} ${EROOT}usr/bin/nosetests3\":" \
213 - -i tools/tests.sh || die
214 - sed -e "s:which nosetests3:which ${EROOT}usr/bin/nosetests3:" \
215 - -i tools/tests.sh || die
216 - ./tools/tests.sh || die
217 -}
218 -
219 -src_install() {
220 - doicon ${PN}.png
221 - domenu ${PN}.desktop
222 - doman ${PN}.1
223 -
224 - dodoc README.md README.development
225 - python_domodule aqt anki
226 - python_newscript runanki anki
227 -
228 - # Localization files go into the anki directory:
229 - python_moduleinto anki
230 - python_domodule locale
231 -
232 - # not sure if this is correct, but
233 - # site-packages/aqt/mediasrv.py wants the directory
234 - insinto /usr/share/anki
235 - doins -r web
236 -}
237
238 diff --git a/app-misc/anki/metadata.xml b/app-misc/anki/metadata.xml
239 index b4fe64e7501..1126ffd44c5 100644
240 --- a/app-misc/anki/metadata.xml
241 +++ b/app-misc/anki/metadata.xml
242 @@ -10,12 +10,4 @@
243 (such as words and phrases in a foreign language) as
244 quickly, easily and efficiently as possible.
245 </longdescription>
246 - <use>
247 - <flag name="recording">
248 - Enable support for audio recording
249 - </flag>
250 - <flag name="sound">
251 - Enable support for adding sound to cards
252 - </flag>
253 - </use>
254 </pkgmetadata>