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 1F5AD15800F for ; Sat, 14 Jan 2023 18:43:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8773DE0893; Sat, 14 Jan 2023 18:43:24 +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 6CAA8E0893 for ; Sat, 14 Jan 2023 18:43:24 +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 87528340EEF for ; Sat, 14 Jan 2023 18:43:23 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 17AC6896 for ; Sat, 14 Jan 2023 18:43:20 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1673713888.d58867e53d6058b5d9ba775b71e49fdcf8acfcea.andrewammerlaan@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/anki-bin-2.1.56-r1.ebuild X-VCS-Directories: app-misc/anki-bin/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: d58867e53d6058b5d9ba775b71e49fdcf8acfcea X-VCS-Branch: master Date: Sat, 14 Jan 2023 18:43:20 +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: 3ea4090c-e4ed-4271-92bf-9526c5cf7567 X-Archives-Hash: 660b7e707e3ee25cc4ea83bf0a93edd0 commit: d58867e53d6058b5d9ba775b71e49fdcf8acfcea Author: Ran Rutenberg gmail com> AuthorDate: Sat Jan 14 16:31:28 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Sat Jan 14 16:31:28 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d58867e5 app-misc/anki-bin: Signed-off-by: Ran Rutenberg gmail.com> Add python compatabilty for 3.10 app-misc/anki-bin/anki-bin-2.1.56-r1.ebuild | 67 +++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/app-misc/anki-bin/anki-bin-2.1.56-r1.ebuild b/app-misc/anki-bin/anki-bin-2.1.56-r1.ebuild new file mode 100644 index 000000000..16bedab74 --- /dev/null +++ b/app-misc/anki-bin/anki-bin-2.1.56-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_9 python3_10 ) +inherit python-single-r1 desktop xdg + +MY_PN=${PN%-bin} +DESCRIPTION="A spaced-repetition memory training program (flash cards)" +HOMEPAGE="https://apps.ankiweb.net/" +SRC_URI=" + https://files.pythonhosted.org/packages/cp39/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}-cp39-abi3-manylinux_2_28_x86_64.whl -> ${P}.zip + https://files.pythonhosted.org/packages/py3/a/aqt/aqt-${PV}-py3-none-any.whl -> aqt-${PV}.zip + 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" +SLOT="0" +KEYWORDS="~amd64" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +QA_PREBUILT="usr/lib/*" +DEPEND=" +$(python_gen_cond_dep ' + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/protobuf-python[${PYTHON_USEDEP}] + dev-python/distro[${PYTHON_USEDEP}] + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/flask[${PYTHON_USEDEP}] + dev-python/waitress[${PYTHON_USEDEP}] + dev-python/send2trash[${PYTHON_USEDEP}] + dev-python/markdown[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/flask-cors[${PYTHON_USEDEP}] + dev-python/PyQt5[${PYTHON_USEDEP}] + dev-python/PyQtWebEngine[${PYTHON_USEDEP}] + dev-python/stringcase[${PYTHON_USEDEP}] + ') +" +RDEPEND="${DEPEND} + ${PYTHON_DEPS} + !app-misc/anki +" +BDEPEND="app-arch/unzip" + +S="${WORKDIR}" + +src_unpack() { + unpack ${P}.zip aqt-${PV}.zip +} + +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 +} + +pkg_postinst() { + xdg_pkg_postinst +}