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 68E7F158010 for ; Wed, 22 Feb 2023 16:51:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A17B6E07A9; Wed, 22 Feb 2023 16:51:32 +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 75251E07A9 for ; Wed, 22 Feb 2023 16:51:31 +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 16BC73402FE for ; Wed, 22 Feb 2023 16:51:31 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CCD708AE for ; Wed, 22 Feb 2023 16:51:28 +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: <1677084474.0981f2a71cf15ed856ed07e2c92afb3f5fb0a907.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.60.ebuild X-VCS-Directories: app-misc/anki-bin/ X-VCS-Committer: watermanpaint X-VCS-Committer-Name: Lucio Sauer X-VCS-Revision: 0981f2a71cf15ed856ed07e2c92afb3f5fb0a907 X-VCS-Branch: dev Date: Wed, 22 Feb 2023 16:51:28 +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: a9c26b87-4d5c-458f-9b07-a13c1c7464bf X-Archives-Hash: 193b6d945f1e0a7dbc6b2412a682ab6d commit: 0981f2a71cf15ed856ed07e2c92afb3f5fb0a907 Author: Lucio Sauer posteo net> AuthorDate: Wed Feb 22 16:34:54 2023 +0000 Commit: Lucio Sauer posteo net> CommitDate: Wed Feb 22 16:47:54 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0981f2a7 app-misc/anki-bin: add 2.1.60 Signed-off-by: Lucio Sauer posteo.net> app-misc/anki-bin/Manifest | 5 +++ app-misc/anki-bin/anki-bin-2.1.60.ebuild | 64 ++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) diff --git a/app-misc/anki-bin/Manifest b/app-misc/anki-bin/Manifest index 9cc2c5e0a..30f7b00ac 100644 --- a/app-misc/anki-bin/Manifest +++ b/app-misc/anki-bin/Manifest @@ -6,5 +6,10 @@ DIST anki-bin-2.1.58.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75d DIST anki-bin-2.1.58.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220 DIST anki-bin-2.1.58.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7 DIST anki-bin-2.1.58.zip 12842522 BLAKE2B 163039131fcaa19f8a2cd1da242f79d26a3822011182ea1edfa76a336826a95da0b7db99d7ae4e84c93dbb65ca61816403f0dd53130a45e53cfca957c9cdb01d SHA512 ebacfa4cc15775be295505853ca3be18d5fa2b4e869e7945a8a669929c8a6ecd4f21c380544c2f425603dc571bfec7102ad112548d56dbf981754b324b544521 +DIST anki-bin-2.1.60.1 2212 BLAKE2B 18dba4d3f7210b1fa765490617c4290b7a0f37abd75df6fdb395ea758fa2557789f595e0c0470c918ee988dfa5270df48dda095e8f6dce2aad597b0bba23db50 SHA512 50ee6633758b028c54b899d70cf582c54d4fdbb7e13f10921303db3a84d325ac689b48dbf4a5f03584748e89ad7820e14cd4646d7a3fa97919496f48a99cdb05 +DIST anki-bin-2.1.60.desktop 458 BLAKE2B 7311e2ea71b40bd586a547a14316ca5447d582c046c3850ec5f63637640401fa53e8cdb8799ca8d6b169e38dae3e507946f4fbe5057c0d48e92729033fc6514b SHA512 4666f855e488c0f3cdf2d071aeb373cf8eff96eefe71eb7bb67344fed66150b821d83bed4d4ec2966f63d2a6ede1701f1b19236a6a72e3002e70d2f404d55220 +DIST anki-bin-2.1.60.png 34595 BLAKE2B 7b8adeece0d666f819d2e579d04f00102d6a28fe5915b2d13ae0bbf72671f95610d2bb47235509756684d38e4be495b41b6b5814fa0ee2b303adc1c78ed54b88 SHA512 c5051738be8c766629a0ec4cbf95c5f554e7bbca2fb5103b3545f2c34a6fcfd87c1384bbd5239199a8491fa46889b299f5f6e1f23988e271402239cdc2a0a9e7 +DIST anki-bin-2.1.60.zip 12847675 BLAKE2B 5373f317ea6b7687063308556c7eff8d99746ed3f1ab6f4a1d33d1da1b2037f803875c547d13c4aa3bcdd98127ab49510d5e4fef2a73172ce7c72d48953311cc SHA512 7dcce0a5741c683eda84fc52478740c8775935e43cd3a5a7fc662326724d3d73491e4e078e6429ecd3bfa45644aa38e1254228db6f84a9f68301940b2113ebf4 DIST aqt-2.1.57.zip 6269844 BLAKE2B a8863be1192180f34544df522a6bb69e96968525f0c839ba217cbb360aa06624cd2e0f4fc67559e77dfef4d0ad76c91352b6c210e4f2c39c33733a48785acc89 SHA512 6532a0c59ae2e3e041558c758a57e5b6b19ec11afb63755dda04cc55eb6a30a363d2ede88754e4825f3bddc4dd30b11be33155d5a99c4021d30d6d54d1b8c130 DIST aqt-2.1.58.zip 6274492 BLAKE2B d81c37992673596a963a6136656d16b39d155bffc711dd2c244c407622a404c845719c6d704871aa39e9d45db73b8164f4785a2842add1437162c5a4891eab87 SHA512 330494c9d75c73b43b5bf9301f996b167cd4477bf36909b2f8410bb3ceae759b5a8f0a747428206198b770e6840968ebf98fb7a00ec86d004f78efc152824bb5 +DIST aqt-2.1.60.zip 6277087 BLAKE2B 9183b9a0ada043ba2d2c762772d872afc4aa49dfb4dc79931818c26c51be9741fcba5706f6a4e8e591a3ec8a68bb7c98e858793ba1e6aab8172e0aaaa90da5f9 SHA512 51db34d6dc8aef7e466826e8f67df41558379011abc8a20c17a991dc583681952e8769141d81563bfa960f08347ad91e262a0f67c57e03ae1b584d1600cab269 diff --git a/app-misc/anki-bin/anki-bin-2.1.60.ebuild b/app-misc/anki-bin/anki-bin-2.1.60.ebuild new file mode 100644 index 000000000..17a598450 --- /dev/null +++ b/app-misc/anki-bin/anki-bin-2.1.60.ebuild @@ -0,0 +1,64 @@ +# 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 was tested on a limited number of machines and is not guaranteed to work. + +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+ Apache-2.0 BSD CC-BY-3.0 GPL-3+ MIT" +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_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 +}