app-misc/anki-bin: add 2.1.66

Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
This commit is contained in:
Lucio Sauer
2023-08-24 22:01:28 +02:00
parent 4114ebaee8
commit 1cc9822e4f
2 changed files with 92 additions and 0 deletions

View File

@@ -1,5 +1,10 @@
DIST anki-2.1.65-cp39-abi3-manylinux_2_28_x86_64.whl.zip 13044229 BLAKE2B 0eeaaca8b9b11edbb04d049cbebc10b4fa2d017ee12b152c630df638ee224160a1d12510d49ab30c2b703c1094ead1fd10f9f419e7ab6ed9f72e7e82de2e6e8a SHA512 16f981d111ea3b309f93dc06a70d8df477cfb71ae399aed0423fbca01e1893981408a3f87c43be01e55192296acc1b8240c7673c39c055b4aa717e4e4b423106
DIST anki-2.1.66-cp39-abi3-manylinux_2_28_x86_64.whl.zip 10209787 BLAKE2B 2459ffc090c8a191fddfd28834e4e234ab4d6c2331a70edfa1f07dc77479052f74515c1f567424eb5e6c6e936dc28bff05247b3f1cd9c1735fd5b88c36a1ae77 SHA512 f7f24ddcde12d31aa1efce98c5d7adf10209a1d8136d67d5b8066899cd07dd92c6db0b1abe99cc067dd66ca7835b6aadfd4d135e10d606ddec4e9ee8b0532400
DIST anki-bin-2.1.65.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05
DIST anki-bin-2.1.65.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220
DIST anki-bin-2.1.65.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7
DIST anki-bin-2.1.66.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05
DIST anki-bin-2.1.66.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220
DIST anki-bin-2.1.66.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7
DIST aqt-2.1.65-py3-none-any.whl.zip 6634410 BLAKE2B a95ef86f346373b893f71e49c42f25e4638cbf880d89c2df271ef6df667a2e6100087dff2a321b1b5465c1d4a0d18415a6b815216556ab206304516253a0e17a SHA512 a346579fc40846f46d7f7d0a6ad67244409d3fd7480d75babd609377836eb21b9a134bcd3de35bf7ab85db5fd646feba670d5abada0426b49085480a4792a0a4
DIST aqt-2.1.66-py3-none-any.whl.zip 7468167 BLAKE2B 0ac356f2fb86671298abaf25e50f083922de6e09786230dadd20312b11a97d71ee86541a5be5e3c5196221b723888dfbb54ecebe5e810dc5e26f547e9265c532 SHA512 bb5119e4290bebd9e55929ce398fb55edf816bbc263e8cd75ce8b2ba39bd506c789fe08fed46186e4561122379c5b85450c15494d7e09da045d7124cd420016a

View File

@@ -0,0 +1,87 @@
# Copyright 2021-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
### A NOTE REGARDING PYTHON COMPATABILITY ###
# Anki-bin downloads a python 3.9 wheel. However the wheel used has only one native library _rsbridge.so
# that is not linked against libpython.
# The configuration with Python 3.{10,11} was tested on a limited number of machines and is not guaranteed to work.
PYTHON_COMPAT=( python3_{10..11} )
inherit desktop optfeature python-single-r1 pypi xdg
MY_PN=${PN%-bin}
DESCRIPTION="A spaced-repetition memory training program (flash cards)"
HOMEPAGE="https://apps.ankiweb.net/"
SRC_URI="
$(pypi_wheel_url --unpack ${MY_PN} ${PV} cp39 abi3-manylinux_2_28_x86_64)
$(pypi_wheel_url --unpack aqt ${PV})
https://raw.githubusercontent.com/ankitects/${MY_PN}/${PV}/qt/bundle/lin/${MY_PN}.desktop -> ${P}.desktop
https://raw.githubusercontent.com/ankitects/${MY_PN}/${PV}/qt/bundle/lin/${MY_PN}.png -> ${P}.png
https://raw.githubusercontent.com/ankitects/${MY_PN}/${PV}/qt/bundle/lin/${MY_PN}.1 -> ${P}.1
"
LICENSE="AGPL-3+ Apache-2.0 BSD CC-BY-3.0 GPL-3+ MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="qt6"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
QA_PREBUILT="usr/lib/*"
RDEPEND="
$(python_gen_cond_dep '
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/distro[${PYTHON_USEDEP}]
dev-python/decorator[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
dev-python/flask-cors[${PYTHON_USEDEP}]
dev-python/jsonschema[${PYTHON_USEDEP}]
dev-python/markdown[${PYTHON_USEDEP}]
dev-python/protobuf-python[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/send2trash[${PYTHON_USEDEP}]
dev-python/waitress[${PYTHON_USEDEP}]
')
!qt6? (
$(python_gen_cond_dep '
>=dev-python/PyQt5-5.15.5[gui,network,webchannel,widgets,${PYTHON_USEDEP}]
>=dev-python/PyQt5-sip-12.9.0[${PYTHON_USEDEP}]
>=dev-python/PyQtWebEngine-5.15.5[${PYTHON_USEDEP}]
')
!dev-python/PyQt6
)
qt6? (
$(python_gen_cond_dep '
>=dev-python/PyQt6-6.5.0[dbus,gui,network,opengl,printsupport,webchannel,widgets,${PYTHON_USEDEP}]
>=dev-python/PyQt6-sip-13.5.1[${PYTHON_USEDEP}]
>=dev-python/PyQt6-WebEngine-6.5.0[widgets,${PYTHON_USEDEP}]
')
)
${PYTHON_DEPS}
!app-misc/anki
"
BDEPEND="app-arch/unzip"
S="${WORKDIR}"
src_install() {
python_domodule anki {,_}aqt *.dist-info
printf "#!/usr/bin/python3\nimport sys;from aqt import run;sys.exit(run())" > runanki
python_newscript runanki anki
newicon "${DISTDIR}"/${P}.png ${MY_PN}.png
newmenu "${DISTDIR}"/${P}.desktop ${MY_PN}.desktop
newman "${DISTDIR}"/${P}.1 ${MY_PN}.1
}
pkg_postinst() {
xdg_pkg_postinst
optfeature "LaTeX in cards" "app-text/texlive[extra] app-text/dvipng"
optfeature "sound support" media-video/mpv media-video/mplayer
optfeature "recording support" "media-sound/lame[frontend] dev-python/PyQt$(usex qt6 6 5)[multimedia]"
einfo "You can customize the LaTeX header for your cards to fit your needs:"
einfo "Notes > Manage Note Types > Options"
}