1 |
commit: 0dfbac25955f80ee265aca894ff63f0aa1e7752a |
2 |
Author: Shaoyu Tseng <shaoyu0209 <AT> tuta <DOT> io> |
3 |
AuthorDate: Thu Jul 29 11:41:21 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 29 11:41:21 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0dfbac25 |
7 |
|
8 |
app-misc/anki-bin: new package |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Shaoyu Tseng <shaoyu0209 <AT> tuta.io> |
12 |
|
13 |
app-misc/anki-bin/Manifest | 3 ++ |
14 |
app-misc/anki-bin/anki-bin-2.1.44.ebuild | 59 ++++++++++++++++++++++++++++++++ |
15 |
app-misc/anki-bin/metadata.xml | 12 +++++++ |
16 |
3 files changed, 74 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/anki-bin/Manifest b/app-misc/anki-bin/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..10dac22b7 |
21 |
--- /dev/null |
22 |
+++ b/app-misc/anki-bin/Manifest |
23 |
@@ -0,0 +1,3 @@ |
24 |
+DIST anki-bin-2.1.44.zip 8421027 BLAKE2B 56ac58ac7a8a10487e28124512e31687cfda98899ba3ac23152155f8a478326be23974f1efe576c973096cbe063c8143129ac4a886265cb39545f67193d2cc37 SHA512 73a3bf5760830c622914d9da76f8c772ab4ef97bfd784d726b16cdbbfd1f0ed41724f6b9611bc365b44d656269d63c0254e062ad589b13261a9d9a0553211620 |
25 |
+DIST anki.png 110645 BLAKE2B 77fe1612016dcb6079c5d33e0c8124c9e3a07a7297f27d0ea16923628a687f14386173721eb87c60efd3d70b442984b297794c924e019602cf1810d6079811d0 SHA512 daf63cb585a080350f6eee9c447d13cae1e576341df8843810279a3cabb442ab2d69ad409a138f8b5ace9c1485e373ed40d30230e9b8696a0e7e4e6fd43ce8dc |
26 |
+DIST aqt-2.1.44.zip 1609295 BLAKE2B f0930dd6dc9d7e0ecbbda8d81b13cb6f4225e867826d30ae6662dbe9491fdd2b4824a184c95ea9ac7bdc26df0004e72e627a2fce8cc5bfcd2fc7f01d828aae46 SHA512 e6e967659043d02935ead51d51c4bba8346c0855c076863ed050761a5657b1f2e19a4fe0452cec8eba9460762b001d45add50ee4facb450d2a83355ce1fc1d25 |
27 |
|
28 |
diff --git a/app-misc/anki-bin/anki-bin-2.1.44.ebuild b/app-misc/anki-bin/anki-bin-2.1.44.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000..8239276ea |
31 |
--- /dev/null |
32 |
+++ b/app-misc/anki-bin/anki-bin-2.1.44.ebuild |
33 |
@@ -0,0 +1,59 @@ |
34 |
+# Copyright 2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{8,9} ) |
40 |
+inherit python-single-r1 desktop xdg |
41 |
+ |
42 |
+DESCRIPTION="A spaced-repetition memory training program (flash cards)" |
43 |
+HOMEPAGE="https://apps.ankiweb.net/" |
44 |
+SRC_URI=" |
45 |
+ https://files.pythonhosted.org/packages/1d/da/199c378dd483bea4b38e94c2951bbb903dae8be023484577ba41b9c75ada/anki-2.1.44-cp38-abi3-manylinux2014_x86_64.whl -> ${P}.zip |
46 |
+ https://files.pythonhosted.org/packages/25/1a/7b94d38b897c942c206258b7b1c758586250ebeb4804a33a4191a047fb2a/aqt-2.1.44-py3-none-any.whl -> aqt-${PV}.zip |
47 |
+ https://github.com/ankitects/anki/blob/2.1.44/qt/linux/anki.png |
48 |
+" |
49 |
+ |
50 |
+LICENSE="AGPL-3" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64" |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ dev-python/decorator |
56 |
+ dev-python/protobuf-python |
57 |
+ dev-python/orjson-bin |
58 |
+ dev-python/distro |
59 |
+ dev-python/beautifulsoup |
60 |
+ dev-python/requests |
61 |
+ dev-python/flask |
62 |
+ dev-python/waitress |
63 |
+ dev-python/send2trash |
64 |
+ dev-python/markdown |
65 |
+ dev-python/jsonschema |
66 |
+ dev-python/flask-cors |
67 |
+ dev-python/PyQt5 |
68 |
+ dev-python/PyQtWebEngine |
69 |
+" |
70 |
+RDEPEND=" |
71 |
+ ${DEPEND} |
72 |
+ !appmisc/anki |
73 |
+" |
74 |
+BDEPEND="app-arch/unzip |
75 |
+${PYTHON_DEPS}" |
76 |
+ |
77 |
+S="${WORKDIR}" |
78 |
+ |
79 |
+src_unpack() { |
80 |
+ default |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ python_domodule anki |
85 |
+ python_domodule anki-2.1.44.dist-info |
86 |
+ python_domodule aqt |
87 |
+ python_domodule aqt-${PV}.dist-info |
88 |
+ printf "#!/usr/bin/python3\nimport sys;from aqt import run;sys.exit(run())" > runanki |
89 |
+ python_newscript runanki anki |
90 |
+ doicon "${DISTDIR}"/anki.png |
91 |
+ make_desktop_entry /usr/bin/anki Anki anki Education |
92 |
+} |
93 |
|
94 |
diff --git a/app-misc/anki-bin/metadata.xml b/app-misc/anki-bin/metadata.xml |
95 |
new file mode 100644 |
96 |
index 000000000..a266aaf9b |
97 |
--- /dev/null |
98 |
+++ b/app-misc/anki-bin/metadata.xml |
99 |
@@ -0,0 +1,12 @@ |
100 |
+<?xml version="1.0" encoding="UTF-8"?> |
101 |
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'> |
102 |
+<pkgmetadata> |
103 |
+ <maintainer type="person"> |
104 |
+ <email>shaoyu0209@××××.io</email> |
105 |
+ <name>Shaoyu Tseng</name> |
106 |
+ </maintainer> |
107 |
+ <upstream> |
108 |
+ <remote-id type="pypi">anki</remote-id> |
109 |
+ <remote-id type="github">ankitects/anki</remote-id> |
110 |
+ </upstream> |
111 |
+</pkgmetadata> |