Gentoo Archives: gentoo-commits

From: Viorel Munteanu <ceamac@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-misc/anki-bin/
Date: Mon, 30 Jan 2023 10:29:36
Message-Id: 1675021116.e3a6f2a5327e8e5c3879b439f44ad89e484044e3.ceamac@gentoo
1 commit: e3a6f2a5327e8e5c3879b439f44ad89e484044e3
2 Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
3 AuthorDate: Sun Jan 29 19:33:31 2023 +0000
4 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 19:38:36 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e3a6f2a5
7
8 app-misc/anki-bin: add 2.1.57
9
10 Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
11
12 app-misc/anki-bin/Manifest | 5 +++
13 app-misc/anki-bin/anki-bin-2.1.57.ebuild | 68 ++++++++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/app-misc/anki-bin/Manifest b/app-misc/anki-bin/Manifest
17 index 2276ffe15..6d4ea3831 100644
18 --- a/app-misc/anki-bin/Manifest
19 +++ b/app-misc/anki-bin/Manifest
20 @@ -6,5 +6,10 @@ DIST anki-bin-2.1.56.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75d
21 DIST anki-bin-2.1.56.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220
22 DIST anki-bin-2.1.56.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7
23 DIST anki-bin-2.1.56.zip 11902907 BLAKE2B bb65bcc1dc2b926d35698f5cf66cda485c79a3cf875ceeee5755b06060971a485da2d7327d95477cf7e10479e25a941104b347ab8d4227cd90c4f5dc74754768 SHA512 dee3867a782685c21b1962cd0eecf4217f0cefb9134904bd7da7d30294943da38cda473402738706530650dc041a83fe1dfd88420763f9324ae259bd0535daea
24 +DIST anki-bin-2.1.57.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05
25 +DIST anki-bin-2.1.57.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220
26 +DIST anki-bin-2.1.57.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7
27 +DIST anki-bin-2.1.57.zip 12827095 BLAKE2B 590c3767fdee4063e35d3b9e5cba1a08eee6ce11f3790aca7a207ee785599245b58cafee86a7045f0ecfe6dabab578b7c0d98b6f95650d2ad8dc05b139851090 SHA512 0d228af16a3b4dfd14f6ce4f46c0d984668eac0853596f039af6d701f5135f023ac9cb6688b6614ab23b81c960c9ffdb1f059fbebb950680291a9cb9ef73bc94
28 DIST aqt-2.1.54.zip 5245638 BLAKE2B 29d99cbc27ed07d71351ac3af546d376cf2bf94ce17a4a1e96f78d2cfeb49b8c750f02dc37da44d78ba83dfac41d9d241bf22f45f27fa4a1c4831be3534a9246 SHA512 7f915151a655a020fce5a6bbbe15adc37bfa0aaa33f588e7fb23a25e5ca6842efae6a9465e0b5c3f21ec806794ac723587fde46140a9469b5a7cabec1fc6bd64
29 DIST aqt-2.1.56.zip 6252046 BLAKE2B a4a6870aba14a91f49b82114d535ce00ff2e4dcd8893fa59c3a0749eba87bf0a4414b20aa98e1fe31b01a7a6515a5473e4f536dbe07b875112553ef61970dfcf SHA512 240f6e69582be929841f94c94d7be227b1301d212935dbad6164bec58eb399fe5a0a725609d43eb17ab9d0c1442d61f5e94badd8698a04e2f2d664384afe094d
30 +DIST aqt-2.1.57.zip 6269844 BLAKE2B a8863be1192180f34544df522a6bb69e96968525f0c839ba217cbb360aa06624cd2e0f4fc67559e77dfef4d0ad76c91352b6c210e4f2c39c33733a48785acc89 SHA512 6532a0c59ae2e3e041558c758a57e5b6b19ec11afb63755dda04cc55eb6a30a363d2ede88754e4825f3bddc4dd30b11be33155d5a99c4021d30d6d54d1b8c130
31
32 diff --git a/app-misc/anki-bin/anki-bin-2.1.57.ebuild b/app-misc/anki-bin/anki-bin-2.1.57.ebuild
33 new file mode 100644
34 index 000000000..1451071ca
35 --- /dev/null
36 +++ b/app-misc/anki-bin/anki-bin-2.1.57.ebuild
37 @@ -0,0 +1,68 @@
38 +# Copyright 2021-2022 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=8
42 +
43 +### A NOTE REGARDING PYTHON COMPATABILITY ###
44 +# Anki-bin downloads a python 3.9 wheel. However the wheel used has only one native library _rsbridge.so
45 +# that is not linked against libpython.
46 +# The configuration with Python 3.10 was tested on a limited number of machines and is not gurenteed to work.
47 +
48 +PYTHON_COMPAT=( python3_9 python3_10 )
49 +inherit python-single-r1 desktop xdg
50 +
51 +MY_PN=${PN%-bin}
52 +DESCRIPTION="A spaced-repetition memory training program (flash cards)"
53 +HOMEPAGE="https://apps.ankiweb.net/"
54 +SRC_URI="
55 + https://files.pythonhosted.org/packages/cp39/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}-cp39-abi3-manylinux_2_28_x86_64.whl -> ${P}.zip
56 + https://files.pythonhosted.org/packages/py3/a/aqt/aqt-${PV}-py3-none-any.whl -> aqt-${PV}.zip
57 + https://raw.githubusercontent.com/ankitects/${MY_PN}/${PV}/qt/bundle/lin/${MY_PN}.desktop -> ${P}.desktop
58 + https://raw.githubusercontent.com/ankitects/${MY_PN}/${PV}/qt/bundle/lin/${MY_PN}.png -> ${P}.png
59 + https://raw.githubusercontent.com/ankitects/${MY_PN}/${PV}/qt/bundle/lin/${MY_PN}.1 -> ${P}.1
60 +"
61 +
62 +LICENSE="AGPL-3"
63 +SLOT="0"
64 +KEYWORDS="~amd64"
65 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
66 +
67 +QA_PREBUILT="usr/lib/*"
68 +DEPEND="
69 +$(python_gen_cond_dep '
70 + dev-python/decorator[${PYTHON_USEDEP}]
71 + dev-python/protobuf-python[${PYTHON_USEDEP}]
72 + dev-python/distro[${PYTHON_USEDEP}]
73 + dev-python/beautifulsoup4[${PYTHON_USEDEP}]
74 + dev-python/requests[${PYTHON_USEDEP}]
75 + dev-python/flask[${PYTHON_USEDEP}]
76 + dev-python/waitress[${PYTHON_USEDEP}]
77 + dev-python/send2trash[${PYTHON_USEDEP}]
78 + dev-python/markdown[${PYTHON_USEDEP}]
79 + dev-python/jsonschema[${PYTHON_USEDEP}]
80 + dev-python/flask-cors[${PYTHON_USEDEP}]
81 + dev-python/PyQt5[${PYTHON_USEDEP}]
82 + dev-python/PyQtWebEngine[${PYTHON_USEDEP}]
83 + dev-python/stringcase[${PYTHON_USEDEP}]
84 + ')
85 +"
86 +RDEPEND="${DEPEND}
87 + ${PYTHON_DEPS}
88 + !app-misc/anki
89 +"
90 +BDEPEND="app-arch/unzip"
91 +
92 +S="${WORKDIR}"
93 +
94 +src_install() {
95 + python_domodule anki anki-${PV}.dist-info _aqt aqt aqt-${PV}.dist-info
96 + printf "#!/usr/bin/python3\nimport sys;from aqt import run;sys.exit(run())" > runanki
97 + python_newscript runanki anki
98 + newicon "${DISTDIR}"/${P}.png ${MY_PN}.png
99 + newmenu "${DISTDIR}"/${P}.desktop ${MY_PN}.desktop
100 + newman "${DISTDIR}"/${P}.1 ${MY_PN}.1
101 +}
102 +
103 +pkg_postinst() {
104 + xdg_pkg_postinst
105 +}