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 C247A158094 for ; Mon, 19 Sep 2022 06:30:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1AECFE08D3; Mon, 19 Sep 2022 06:30:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 043F0E08D3 for ; Mon, 19 Sep 2022 06:30:14 +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 3266134072E for ; Mon, 19 Sep 2022 06:30:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 39DC45E2 for ; Mon, 19 Sep 2022 06:30:11 +0000 (UTC) From: "Ronny Gutbrod" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ronny Gutbrod" Message-ID: <1663475655.fffbe2d8bbcb01711dcbc7c62b232877ce7cd5d9.tastytea@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.54-r1.ebuild X-VCS-Directories: app-misc/anki-bin/ X-VCS-Committer: tastytea X-VCS-Committer-Name: Ronny Gutbrod X-VCS-Revision: fffbe2d8bbcb01711dcbc7c62b232877ce7cd5d9 X-VCS-Branch: master Date: Mon, 19 Sep 2022 06:30:11 +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: ce9e22e4-3bc3-44fc-9910-5591662ca8b2 X-Archives-Hash: 4897dab18589889c12bd3d3cfe5cd2e8 commit: fffbe2d8bbcb01711dcbc7c62b232877ce7cd5d9 Author: Lucio Sauer posteo net> AuthorDate: Sun Sep 18 04:11:29 2022 +0000 Commit: Ronny Gutbrod tastytea de> CommitDate: Sun Sep 18 04:34:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fffbe2d8 app-misc/anki-bin: update to EAPI 8, drop Python 3.8 support, update .desktop file, add man page We are fetching a Python 3.9 wheel. Signed-off-by: Lucio Sauer posteo.net> app-misc/anki-bin/Manifest | 2 + app-misc/anki-bin/anki-bin-2.1.54-r1.ebuild | 68 +++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/app-misc/anki-bin/Manifest b/app-misc/anki-bin/Manifest index 709f07855..23778d40d 100644 --- a/app-misc/anki-bin/Manifest +++ b/app-misc/anki-bin/Manifest @@ -1,4 +1,6 @@ DIST anki-bin-2.1.49.zip 9859031 BLAKE2B efe67559e090fbca990022f0dba9cff5f608ecbdf6d1a38cf682dfe8676458d77dbd0a12f68c19f24a74e8b006c7226c356bd9b03bc9c767ed1c063e3ab749d6 SHA512 cb6d4d65ad63d6a850a4bfd11f91e274f99afefe4eb988da8e72a73e062b3f477ffa5d7e6aac7baa0bb7efd8fafc599c10d36d44e6ab76d8ca2e7ebc83c32c3e +DIST anki-bin-2.1.54.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05 +DIST anki-bin-2.1.54.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220 DIST anki-bin-2.1.54.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7 DIST anki-bin-2.1.54.zip 10987565 BLAKE2B 9ef71f62694f02dab59b7fd54a110df9a3748c373aed52f230dbc2335f881a78e130027559527a6ab1959e21f0337ab13ae89623ae22cf87351133f3cc7aa571 SHA512 d842309251d28218607177140a099f8b190b6f4b9ffb632c33aa0f9423118dd1424e59c70a0c93e57ad08c504cc36650590fda37b107e95bbbfb33521fbca87a DIST anki.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7 diff --git a/app-misc/anki-bin/anki-bin-2.1.54-r1.ebuild b/app-misc/anki-bin/anki-bin-2.1.54-r1.ebuild new file mode 100644 index 000000000..bc3edd17e --- /dev/null +++ b/app-misc/anki-bin/anki-bin-2.1.54-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_9 ) +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/orjson-bin[${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-${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 +}