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 73F4C15800A for ; Thu, 24 Aug 2023 20:02:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 724BB2BC015; Thu, 24 Aug 2023 20:02:09 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51F6C2BC015 for ; Thu, 24 Aug 2023 20:02:09 +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 187ED33FDEE for ; Thu, 24 Aug 2023 20:02:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 61E2F104D for ; Thu, 24 Aug 2023 20:02:06 +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: <1692907288.1cc9822e4f2c7bb0dd512a870e362c6d40603e4b.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-2.1.66.ebuild X-VCS-Directories: app-misc/anki-bin/ X-VCS-Committer: watermanpaint X-VCS-Committer-Name: Lucio Sauer X-VCS-Revision: 1cc9822e4f2c7bb0dd512a870e362c6d40603e4b X-VCS-Branch: dev Date: Thu, 24 Aug 2023 20:02:06 +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: e570e382-77aa-4584-ba9b-e0b7c64277f6 X-Archives-Hash: 6e3cc7f25062dfbae10756f5a374760c commit: 1cc9822e4f2c7bb0dd512a870e362c6d40603e4b Author: Lucio Sauer posteo net> AuthorDate: Thu Aug 24 20:01:28 2023 +0000 Commit: Lucio Sauer posteo net> CommitDate: Thu Aug 24 20:01:28 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1cc9822e app-misc/anki-bin: add 2.1.66 Signed-off-by: Lucio Sauer posteo.net> app-misc/anki-bin/Manifest | 5 ++ app-misc/anki-bin/anki-bin-2.1.66.ebuild | 87 ++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/app-misc/anki-bin/Manifest b/app-misc/anki-bin/Manifest index dc6676b8a1..2e515451da 100644 --- a/app-misc/anki-bin/Manifest +++ b/app-misc/anki-bin/Manifest @@ -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 diff --git a/app-misc/anki-bin/anki-bin-2.1.66.ebuild b/app-misc/anki-bin/anki-bin-2.1.66.ebuild new file mode 100644 index 0000000000..37861a6f02 --- /dev/null +++ b/app-misc/anki-bin/anki-bin-2.1.66.ebuild @@ -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" +}