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 9BD6715806E for ; Thu, 25 May 2023 02:21:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B33FAE0821; Thu, 25 May 2023 02:21:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 99A1BE0821 for ; Thu, 25 May 2023 02:21:11 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 128E5340DA4 for ; Thu, 25 May 2023 02:21:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B2866A8C for ; Thu, 25 May 2023 02:21:06 +0000 (UTC) From: "Haelwenn Monnier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Haelwenn Monnier" Message-ID: <1684967867.c7e9809f9e54a3abf34b88adc9e2ed6b759058f4.lanodan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master 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.64.ebuild X-VCS-Directories: app-misc/anki-bin/ X-VCS-Committer: lanodan X-VCS-Committer-Name: Haelwenn Monnier X-VCS-Revision: c7e9809f9e54a3abf34b88adc9e2ed6b759058f4 X-VCS-Branch: master Date: Thu, 25 May 2023 02:21: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: 2b031b06-7852-455c-9d60-fc7763a35b32 X-Archives-Hash: e82d7cd0c18761fce0cdc03dc8f08e9b commit: c7e9809f9e54a3abf34b88adc9e2ed6b759058f4 Author: Lucio Sauer posteo net> AuthorDate: Wed May 24 21:43:12 2023 +0000 Commit: Haelwenn Monnier hacktivis me> CommitDate: Wed May 24 22:37:47 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c7e9809f app-misc/anki-bin: add 2.1.64 Signed-off-by: Lucio Sauer posteo.net> app-misc/anki-bin/Manifest | 5 ++ app-misc/anki-bin/anki-bin-2.1.64.ebuild | 78 ++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/app-misc/anki-bin/Manifest b/app-misc/anki-bin/Manifest index 2b5cc20ee..226f26f43 100644 --- a/app-misc/anki-bin/Manifest +++ b/app-misc/anki-bin/Manifest @@ -1,5 +1,10 @@ DIST anki-2.1.63-cp39-abi3-manylinux_2_28_x86_64.whl.zip 13022324 BLAKE2B 524d44d0b6a5c233ebb3fa68c63ba736bbb81c43f8c85882782220948173a1472b9c1408727b8fd770682554c69e573cb589da123cf7854c8de305f67ed910fb SHA512 61a8ee5278be364cb130d33c9e7f14b2f36baf922e94eda284744d9bf537c5e708fa19c40b26161038a12353de34187deacc42c64e9aadaa5095128a02055536 +DIST anki-2.1.64-cp39-abi3-manylinux_2_28_x86_64.whl.zip 13039104 BLAKE2B f53bd793d2fa977691519e0aedc43485e4bf58c62735d6e6f70ef168237fe69a24283868ae6bc069de3b2292f78481670355b7832ffacc286d0fe9daefeeb2f1 SHA512 112fea989e7321e10caa4c570784034463af760605d680ac9c8103c578ab5462881a5925ff6534785b368f8360966d34a15eea83b9638f802d9450232159315f DIST anki-bin-2.1.63.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05 DIST anki-bin-2.1.63.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220 DIST anki-bin-2.1.63.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7 +DIST anki-bin-2.1.64.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05 +DIST anki-bin-2.1.64.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220 +DIST anki-bin-2.1.64.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7 DIST aqt-2.1.63-py3-none-any.whl.zip 6531126 BLAKE2B c256278447cd52544b2efe481712c6be9471787f4d8ab3bf6bac5323d3c5563dc4e2e5c82fec6099e5317b8485e16b7e3c89d5048004e55d7c306373769a38f9 SHA512 a4bf0acd942acab1ce90711c975673cf664f9bd1f2b154fd1fb9ecec54992a2c1ea0b5406b71f6f916d9f4aac2bf29a830b5fc531e67efe48e664d12839136cc +DIST aqt-2.1.64-py3-none-any.whl.zip 6539634 BLAKE2B 1843d766550c1be4f68522a9f0c79976848d6cec29a2e5b6303ba6af8f54ec8e0f4173b9c2585f0a84ea87e8d1f152056e56fe2c0251ab3882e90d357e4e284e SHA512 e0b7810a251c62719e57a2fbc543993244fffea9cb56beda77ed22e0339b305c12840a7aee6e3484e2dbf378bf4bf731d42fb139d67fd83ba7fcbf02932a6ec0 diff --git a/app-misc/anki-bin/anki-bin-2.1.64.ebuild b/app-misc/anki-bin/anki-bin-2.1.64.ebuild new file mode 100644 index 000000000..abc4a94d9 --- /dev/null +++ b/app-misc/anki-bin/anki-bin-2.1.64.ebuild @@ -0,0 +1,78 @@ +# 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 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 anki-${PV}.dist-info _aqt aqt aqt-${PV}.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 +}