From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CA7511581E7 for ; Sun, 28 Apr 2024 17:55:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B82EE29C4; Sun, 28 Apr 2024 17:55:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 532A3E29C4 for ; Sun, 28 Apr 2024 17:55:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C6AC933BEB9 for ; Sun, 28 Apr 2024 17:55:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2B4B01763 for ; Sun, 28 Apr 2024 17:55:46 +0000 (UTC) From: "Lucio Sauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lucio Sauer" Message-ID: <1714326884.a4e10baad2a874b68874246c29af72b86274ae2c.watermanpaint@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/anki-bin/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-misc/anki-bin/Manifest app-misc/anki-bin/anki-bin-23.12.1.ebuild app-misc/anki-bin/anki-bin-24.04.ebuild X-VCS-Directories: app-misc/anki-bin/ X-VCS-Committer: watermanpaint X-VCS-Committer-Name: Lucio Sauer X-VCS-Revision: a4e10baad2a874b68874246c29af72b86274ae2c X-VCS-Branch: dev Date: Sun, 28 Apr 2024 17:55:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d40cdba2-581c-450e-a4b2-52c7f47989e6 X-Archives-Hash: db8cdee1382ae4ba2ff6df31a2e7d4d0 commit: a4e10baad2a874b68874246c29af72b86274ae2c Author: Lucio Sauer posteo net> AuthorDate: Sun Apr 28 17:54:44 2024 +0000 Commit: Lucio Sauer posteo net> CommitDate: Sun Apr 28 17:54:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a4e10baa app-misc/anki-bin: drop 23.12.1, 24.04 Signed-off-by: Lucio Sauer posteo.net> app-misc/anki-bin/Manifest | 14 --- app-misc/anki-bin/anki-bin-23.12.1.ebuild | 153 ----------------------------- app-misc/anki-bin/anki-bin-24.04.ebuild | 157 ------------------------------ 3 files changed, 324 deletions(-) diff --git a/app-misc/anki-bin/Manifest b/app-misc/anki-bin/Manifest index cfb37f49bc..82ca30cc30 100644 --- a/app-misc/anki-bin/Manifest +++ b/app-misc/anki-bin/Manifest @@ -1,21 +1,7 @@ -DIST anki-23.12.1-cp39-abi3-manylinux_2_28_x86_64.whl.zip 12020777 BLAKE2B ebc3574e301c7ccc7017c3027c5bc5dd9de7001cc101815fdbab26abbf8cd1b4fe32ff45949849ea1bbb1c5d21d2cf8ab67c4265a3adc3fa50e62b6b5cccd533 SHA512 431062df968c39d20ea13891dc1a5911cd9809914d15157bc0207f10256412f6e7002d11cb60843a314b5dfe2a71517701a5308ae8831e32a98808628229d5c9 -DIST anki-24.04-cp39-abi3-manylinux_2_28_x86_64.whl.zip 11228071 BLAKE2B f9ca9ef3c2d4447228f54b7d36c94def70ec4c7b2b4c99ef171f527451f46ed03e1f845f7a89b682f860723ddc9562218c3242fd7a583221b40d8598ccc1aa19 SHA512 e4ade78188ce6e1e17f4c44aeb11ab7d72eaaf0349fc72649d9d934dd24c3886bb8d5f928a61abe489ff041ae04530385dae1fae430ea955884148117e3283d6 DIST anki-24.04.1-cp39-abi3-manylinux_2_28_x86_64.whl.zip 11236407 BLAKE2B fc69cc25645cc29c7d1b08f3d0496bcf31e5fbd487a2e5d3a836471e875292006f83091ee2ca317ef8072a179c059d90edcd71542e1ae28a5f6fa4d9962b76c3 SHA512 6e6c7f4bab8120364ee84fb445b0f289cc44693d3c13cd17b555f108e7fb4bfa1d08f5be41aef7e2ffd2372048d60a0cc94a5ec8eb8a1ef4254e83b0768a909c DIST anki-bin-2.1.50.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05 DIST anki-bin-2.1.50.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220 DIST anki-bin-2.1.50.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7 DIST anki-bin-2.1.50.xml 528 BLAKE2B 237497a01901ead3a48e0282a4a270c1eee2e121998aafb41740010ec36da4886fa01f471855aae841d27b492e31864878e4475fa3e6096d87a9270adf00ed7e SHA512 67f2f8679acbece2c3abbb9dacb3d6f6c7428388297d9354991aa099b2d0331d028fd0de50c83d48ae0591b0b4bb2f9076edfe7fea77fd5d7429a2b83bd0f2ce DIST anki-bin-2.1.50.xpm 6324 BLAKE2B 7dc61bb7a86323828f52f53194d36493f1c9355b1384a8b611829f7f2d97d844cf9d7358f8c352272440ace146593f417df261338cff4565fc3b4c0ca44e06bc SHA512 7e2821141522fe2afb07d2eca4013a0f170119856ba46bed0894c09d289133cdd64559df7e0cbcb56b73c5ee5a64215279101722865dede7982c8e6002da9d41 -DIST anki-bin-23.12.1.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05 -DIST anki-bin-23.12.1.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220 -DIST anki-bin-23.12.1.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7 -DIST anki-bin-23.12.1.xml 528 BLAKE2B 237497a01901ead3a48e0282a4a270c1eee2e121998aafb41740010ec36da4886fa01f471855aae841d27b492e31864878e4475fa3e6096d87a9270adf00ed7e SHA512 67f2f8679acbece2c3abbb9dacb3d6f6c7428388297d9354991aa099b2d0331d028fd0de50c83d48ae0591b0b4bb2f9076edfe7fea77fd5d7429a2b83bd0f2ce -DIST anki-bin-23.12.1.xpm 6324 BLAKE2B 7dc61bb7a86323828f52f53194d36493f1c9355b1384a8b611829f7f2d97d844cf9d7358f8c352272440ace146593f417df261338cff4565fc3b4c0ca44e06bc SHA512 7e2821141522fe2afb07d2eca4013a0f170119856ba46bed0894c09d289133cdd64559df7e0cbcb56b73c5ee5a64215279101722865dede7982c8e6002da9d41 -DIST anki-bin-24.04.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05 -DIST anki-bin-24.04.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220 -DIST anki-bin-24.04.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7 -DIST anki-bin-24.04.xml 528 BLAKE2B 237497a01901ead3a48e0282a4a270c1eee2e121998aafb41740010ec36da4886fa01f471855aae841d27b492e31864878e4475fa3e6096d87a9270adf00ed7e SHA512 67f2f8679acbece2c3abbb9dacb3d6f6c7428388297d9354991aa099b2d0331d028fd0de50c83d48ae0591b0b4bb2f9076edfe7fea77fd5d7429a2b83bd0f2ce -DIST anki-bin-24.04.xpm 6324 BLAKE2B 7dc61bb7a86323828f52f53194d36493f1c9355b1384a8b611829f7f2d97d844cf9d7358f8c352272440ace146593f417df261338cff4565fc3b4c0ca44e06bc SHA512 7e2821141522fe2afb07d2eca4013a0f170119856ba46bed0894c09d289133cdd64559df7e0cbcb56b73c5ee5a64215279101722865dede7982c8e6002da9d41 -DIST aqt-23.12.1-py3-none-any.whl.zip 8061712 BLAKE2B 5239156c20834c970dd742006a2c1b3ca8a6ee7339b51640cdb67fcf46479ebe5dc1cc907ae8a87a16b1410fa6a430a115d1683d6c74eec5dcea70109aae3f5f SHA512 2f4f8a092d0d0027c86913f0086b0a0df72f4f4b9f86d3e28ab4c1ed53ca4ff871c97a39f20fb60df7f8ed09cdd40826c511ae58dbeb5293892cbe8a7f13322a -DIST aqt-24.04-py3-none-any.whl.zip 4644250 BLAKE2B f846688d463e7a88f84c6e4a694c7d28672179750d56fb430c680f5679a9cae9df2627bd117b6a197b18e72a5478ac6dd076e20d6465dc2d211b470e54007a40 SHA512 433565ed43741f09e4ad53b9992c0921b2bb7d2c83f86a17a6f9cbb94f4a8c2297c9175dfbdbaf57008062493b12ec4ced02c62af4405f29a23af24950f6b1aa DIST aqt-24.04.1-py3-none-any.whl.zip 4644843 BLAKE2B bd26772de68e67a13ebba2fded6e0d8b2679ba1a50771b44ce16840fb5094bf168c6dc878aa5aadfd4836a6f697acbaeb63b7e5b6c1b0a0ad1ca0c5d541fd662 SHA512 de2eeb2d442786e1443971f83770401d383af80c10da3114b3cb9f9103e1c3a323def0a2998e3466440564dbad88b3c776555dae7224420d50a45de9706e6342 diff --git a/app-misc/anki-bin/anki-bin-23.12.1.ebuild b/app-misc/anki-bin/anki-bin-23.12.1.ebuild deleted file mode 100644 index ba6ac59396..0000000000 --- a/app-misc/anki-bin/anki-bin-23.12.1.ebuild +++ /dev/null @@ -1,153 +0,0 @@ -# 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..12} was tested on a limited number of machines and is not guaranteed to work. - -PYTHON_COMPAT=( python3_{10..12} ) -inherit desktop optfeature python-single-r1 pypi readme.gentoo-r1 xdg - -DESCRIPTION="A spaced-repetition memory training program (flash cards)" -HOMEPAGE="https://apps.ankiweb.net/" -SRC_URI=" - $(pypi_wheel_url --unpack anki ${PV} cp39 abi3-manylinux_2_28_x86_64) - $(pypi_wheel_url --unpack aqt ${PV}) - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.1 -> ${P}.1 - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.desktop -> ${P}.desktop - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.png -> ${P}.png - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.xml -> ${P}.xml - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.xpm -> ${P}.xpm -" - -S="${WORKDIR}" - -# The program itself is licensed under AGPL-3+ with contributed portions licensed -# under BSD-3. -# The translation files are licensed under BSD-3 and public-domain. -# - ftl/ -LICENSE="AGPL-3+ BSD public-domain" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 CC0-1.0 ISC MIT - MPL-2.0 openssl Unicode-DFS-2016 ZLIB -" -# The supermemo importer is licensed under GPL-3+ and 0BSD. -# - pylib/anki/importing/supermemo_xml.py -# -# Anki bundles 3rd-party code and assets: -# The MathJax files are licensed under Apache-2.0. -# - node_modules/mathjax/es5/ -# -# The fancy deboss pattern is licensed under CC-BY-4.0. -# - pylib/anki/statsbg.py -# -# The patched MPV controls are licensed under MIT. -# - qt/aqt/mpv.py -# -# The Winpath module is licensed under MIT. -# - qt/aqt/winpaths.py -# -# The licenses for the runtime JS libaries are documented in the source code. -# - ts/licenses.json -# How to get an up-to-date summary: -# ./node_modules/.bin/license-checker-rseidelsohn --production --excludePackages anki --summary -# -# The vendored Flot plotting library is licensed under MIT. -# - qt/aqt/data/web/js/vendor/plot.js -LICENSE+=" 0BSD CC-BY-4.0 GPL-3+ Unlicense" - -SLOT="0" -KEYWORDS="~amd64" -IUSE="qt6" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -QA_PREBUILT="usr/lib/*" - -RDEPEND=" - app-misc/ca-certificates - $(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? ( dev-qt/qtsvg:6 - $(python_gen_cond_dep ' - >=dev-python/PyQt6-6.5.0[gui,network,opengl,quick,webchannel,widgets,${PYTHON_USEDEP}] - >=dev-python/PyQt6-sip-13.5.1[${PYTHON_USEDEP}] - >=dev-python/PyQt6-WebEngine-6.5.0[widgets,${PYTHON_USEDEP}]') - - ) - !qt6? ( dev-qt/qtgui[jpeg,png] - dev-qt/qtsvg:5 - $(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}]') - - ) - ${PYTHON_DEPS} - !app-misc/anki -" -BDEPEND="app-arch/unzip" - -DOC_CONTENTS="Users with add-ons that still rely on Anki's Qt5 GUI can either switch -to ${CATEGORY}/${PN}[-qt6], or temporarily set an environment variable -ENABLE_QT5_COMPAT to 1 to have Anki install the previous compatibility code. -The latter option has additional runtime dependencies. Please take a look -at this package's 'optional runtime features' for a complete listing. -\n\nIn an early 2024 update, ENABLE_QT5_COMPAT will be removed, so this is not a -long-term solution. -\n\nAnki's user manual is located online at https://docs.ankiweb.net/ -\nAnki's add-on developer manual is located online at -https://addon-docs.ankiweb.net/ -" - -src_prepare() { - default - # Anki's Qt detection mechanism falls back to Qt5 Python bindings, if Qt6 - # Python bindings don't get imported successfully. - if ! use qt6; then - sed -i "s/import PyQt6/raise ImportError/" aqt/qt/__init__.py || die - fi -} - -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 anki.png - newicon "${DISTDIR}"/${P}.xpm anki.xpm - newmenu "${DISTDIR}"/${P}.desktop anki.desktop - newman "${DISTDIR}"/${P}.1 anki.1 - insinto /usr/share/mime/packages - newins "${DISTDIR}"/${P}.xml anki.xml - - readme.gentoo_create_doc -} - -pkg_postinst() { - readme.gentoo_print_elog - 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]" - optfeature "faster database operations" dev-python/orjson - use qt6 && optfeature "compatibility with Qt5-dependent add-ons" dev-python/PyQt6[dbus,printsupport] - use qt6 && optfeature "Vulkan driver" "media-libs/vulkan-loader dev-qt/qtbase[vulkan] - dev-qt/qtdeclarative:6[vulkan] dev-qt/qtwebengine:6[vulkan]" - - einfo "You can customize the LaTeX header for your cards to fit your needs:" - einfo "Notes > Manage Note Types > [select a note type] > Options" -} diff --git a/app-misc/anki-bin/anki-bin-24.04.ebuild b/app-misc/anki-bin/anki-bin-24.04.ebuild deleted file mode 100644 index 43195331a3..0000000000 --- a/app-misc/anki-bin/anki-bin-24.04.ebuild +++ /dev/null @@ -1,157 +0,0 @@ -# Copyright 2021-2024 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..12} was tested on a limited number of machines and is not guaranteed to work. - -PYTHON_COMPAT=( python3_{10..12} ) -inherit desktop optfeature python-single-r1 pypi readme.gentoo-r1 xdg - -DESCRIPTION="A spaced-repetition memory training program (flash cards)" -HOMEPAGE="https://apps.ankiweb.net/" -SRC_URI=" - $(pypi_wheel_url --unpack anki ${PV} cp39 abi3-manylinux_2_28_x86_64) - $(pypi_wheel_url --unpack aqt ${PV}) - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.1 -> ${P}.1 - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.desktop -> ${P}.desktop - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.png -> ${P}.png - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.xml -> ${P}.xml - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.xpm -> ${P}.xpm -" - -S="${WORKDIR}" - -# The program itself is licensed under AGPL-3+ with contributed portions licensed -# under BSD-3. -# The translation files are licensed under BSD-3 and public-domain. -# - ftl/ -LICENSE="AGPL-3+ BSD public-domain" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 CC0-1.0 ISC MIT - MPL-2.0 Unicode-DFS-2016 ZLIB -" -# Manually added crate licenses -LICENSE+=" openssl Unicode-3.0" -# The supermemo importer is licensed under GPL-3+ and 0BSD. -# - pylib/anki/importing/supermemo_xml.py -# -# Anki bundles 3rd-party code and assets: -# The MathJax files are licensed under Apache-2.0. -# - node_modules/mathjax/es5/ -# -# The fancy deboss pattern is licensed under CC-BY-4.0. -# - pylib/anki/statsbg.py -# -# The patched MPV controls are licensed under MIT. -# - qt/aqt/mpv.py -# -# The Winpath module is licensed under MIT. -# - qt/aqt/winpaths.py -# -# The licenses for the runtime JS libaries are documented in the source code. -# - ts/licenses.json -# How to get an up-to-date summary: -# ./node_modules/.bin/license-checker-rseidelsohn --production --excludePackages anki --summary -# -# The vendored Flot plotting library is licensed under MIT. -# - qt/aqt/data/web/js/vendor/plot.js -LICENSE+=" 0BSD CC-BY-4.0 GPL-3+ Unlicense" - -SLOT="0" -KEYWORDS="~amd64" -IUSE="qt6" -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -QA_PREBUILT="usr/lib/*" - -RDEPEND=" - app-misc/ca-certificates - $(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? ( - dev-qt/qtsvg:6 - $(python_gen_cond_dep ' - >=dev-python/PyQt6-6.6.1[gui,network,opengl,quick,webchannel,widgets,${PYTHON_USEDEP}] - >=dev-python/PyQt6-sip-13.6.0[${PYTHON_USEDEP}] - >=dev-python/PyQt6-WebEngine-6.6.0[widgets,${PYTHON_USEDEP}]') - ) - !qt6? ( - dev-qt/qtgui:5[jpeg,png] - dev-qt/qtsvg:5 - $(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}]') - ) - ${PYTHON_DEPS} - !app-misc/anki -" -BDEPEND="app-arch/unzip" - -DOC_CONTENTS="Users with add-ons that still rely on Anki's Qt5 GUI can either switch -to ${CATEGORY}/${PN}[-qt6], or temporarily set an environment variable -ENABLE_QT5_COMPAT to 1 to have Anki install the previous compatibility code. -The latter option has additional runtime dependencies. Please take a look -at this package's 'optional runtime features' for a complete listing. -\n\nIn an early 2024 update, ENABLE_QT5_COMPAT will be removed, so this is not a -long-term solution. -\n\nAnki's user manual is located online at https://docs.ankiweb.net/ -\nAnki's add-on developer manual is located online at -https://addon-docs.ankiweb.net/ -" - -src_prepare() { - default - # revert fa771991c in favor of Gentoo's hack to force the system cert - # store on dev-python/certifi - sed -i '/pip_system_certs/d' aqt/__init__.py || die - # Anki's Qt detection mechanism falls back to Qt5 Python bindings, if Qt6 - # Python bindings don't get imported successfully. - if ! use qt6; then - sed -i 's/import PyQt6/raise ImportError/' aqt/qt/__init__.py || die - fi -} - -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 anki.png - newicon "${DISTDIR}"/${P}.xpm anki.xpm - newmenu "${DISTDIR}"/${P}.desktop anki.desktop - newman "${DISTDIR}"/${P}.1 anki.1 - insinto /usr/share/mime/packages - newins "${DISTDIR}"/${P}.xml anki.xml - - readme.gentoo_create_doc -} - -pkg_postinst() { - readme.gentoo_print_elog - 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]" - optfeature "faster database operations" dev-python/orjson - use qt6 && optfeature "compatibility with Qt5-dependent add-ons" dev-python/PyQt6[dbus,printsupport] - use qt6 && optfeature "Vulkan driver" "media-libs/vulkan-loader dev-qt/qtbase[vulkan] - dev-qt/qtdeclarative:6[vulkan] dev-qt/qtwebengine:6[vulkan]" - - einfo "You can customize the LaTeX header for your cards to fit your needs:" - einfo "Notes > Manage Note Types > [select a note type] > Options" -}