app-misc/anki-bin: new package

Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Shaoyu Tseng <shaoyu0209@tuta.io>
This commit is contained in:
Shaoyu Tseng
2021-07-29 19:41:21 +08:00
parent 9c308e990a
commit 0dfbac2595
3 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
DIST anki-bin-2.1.44.zip 8421027 BLAKE2B 56ac58ac7a8a10487e28124512e31687cfda98899ba3ac23152155f8a478326be23974f1efe576c973096cbe063c8143129ac4a886265cb39545f67193d2cc37 SHA512 73a3bf5760830c622914d9da76f8c772ab4ef97bfd784d726b16cdbbfd1f0ed41724f6b9611bc365b44d656269d63c0254e062ad589b13261a9d9a0553211620
DIST anki.png 110645 BLAKE2B 77fe1612016dcb6079c5d33e0c8124c9e3a07a7297f27d0ea16923628a687f14386173721eb87c60efd3d70b442984b297794c924e019602cf1810d6079811d0 SHA512 daf63cb585a080350f6eee9c447d13cae1e576341df8843810279a3cabb442ab2d69ad409a138f8b5ace9c1485e373ed40d30230e9b8696a0e7e4e6fd43ce8dc
DIST aqt-2.1.44.zip 1609295 BLAKE2B f0930dd6dc9d7e0ecbbda8d81b13cb6f4225e867826d30ae6662dbe9491fdd2b4824a184c95ea9ac7bdc26df0004e72e627a2fce8cc5bfcd2fc7f01d828aae46 SHA512 e6e967659043d02935ead51d51c4bba8346c0855c076863ed050761a5657b1f2e19a4fe0452cec8eba9460762b001d45add50ee4facb450d2a83355ce1fc1d25

View File

@@ -0,0 +1,59 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8,9} )
inherit python-single-r1 desktop xdg
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
HOMEPAGE="https://apps.ankiweb.net/"
SRC_URI="
https://files.pythonhosted.org/packages/1d/da/199c378dd483bea4b38e94c2951bbb903dae8be023484577ba41b9c75ada/anki-2.1.44-cp38-abi3-manylinux2014_x86_64.whl -> ${P}.zip
https://files.pythonhosted.org/packages/25/1a/7b94d38b897c942c206258b7b1c758586250ebeb4804a33a4191a047fb2a/aqt-2.1.44-py3-none-any.whl -> aqt-${PV}.zip
https://github.com/ankitects/anki/blob/2.1.44/qt/linux/anki.png
"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
dev-python/decorator
dev-python/protobuf-python
dev-python/orjson-bin
dev-python/distro
dev-python/beautifulsoup
dev-python/requests
dev-python/flask
dev-python/waitress
dev-python/send2trash
dev-python/markdown
dev-python/jsonschema
dev-python/flask-cors
dev-python/PyQt5
dev-python/PyQtWebEngine
"
RDEPEND="
${DEPEND}
!appmisc/anki
"
BDEPEND="app-arch/unzip
${PYTHON_DEPS}"
S="${WORKDIR}"
src_unpack() {
default
}
src_install() {
python_domodule anki
python_domodule anki-2.1.44.dist-info
python_domodule aqt
python_domodule aqt-${PV}.dist-info
printf "#!/usr/bin/python3\nimport sys;from aqt import run;sys.exit(run())" > runanki
python_newscript runanki anki
doicon "${DISTDIR}"/anki.png
make_desktop_entry /usr/bin/anki Anki anki Education
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
<pkgmetadata>
<maintainer type="person">
<email>shaoyu0209@tuta.io</email>
<name>Shaoyu Tseng</name>
</maintainer>
<upstream>
<remote-id type="pypi">anki</remote-id>
<remote-id type="github">ankitects/anki</remote-id>
</upstream>
</pkgmetadata>