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 86EA0158013 for ; Tue, 12 Dec 2023 06:19:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6D6D2BC04C; Tue, 12 Dec 2023 06:19: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 A95702BC047 for ; Tue, 12 Dec 2023 06:19:15 +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 C5D41335D6A for ; Tue, 12 Dec 2023 06:19:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 690ECACA for ; Tue, 12 Dec 2023 06:19:13 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1702301163.de148e5714e6c52f5b08e25e9c7c1fda822927c3.ceamac@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-23.10.1-r1.ebuild app-misc/anki-bin/anki-bin-23.10.1.ebuild X-VCS-Directories: app-misc/anki-bin/ X-VCS-Committer: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: de148e5714e6c52f5b08e25e9c7c1fda822927c3 X-VCS-Branch: master Date: Tue, 12 Dec 2023 06:19:13 +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: f773a57d-3025-4689-8bfc-7aa7ab782a2b X-Archives-Hash: 3cdc2a40edf9217954faf4d75c092e06 commit: de148e5714e6c52f5b08e25e9c7c1fda822927c3 Author: Lucio Sauer posteo net> AuthorDate: Mon Dec 11 13:26:03 2023 +0000 Commit: Viorel Munteanu gentoo org> CommitDate: Mon Dec 11 13:26:03 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=de148e57 app-misc/anki-bin: add 23.10.1-r1, drop 23.10.1 Fix runtime Qt detection mechanism: Prior to this commit, Anki would select its Qt6 GUI at runtime, if it successfully imported PyQt6. Anki's choice of GUI framework should only depend on the qt6 USE flag. Signed-off-by: Lucio Sauer posteo.net> .../{anki-bin-23.10.1.ebuild => anki-bin-23.10.1-r1.ebuild} | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app-misc/anki-bin/anki-bin-23.10.1.ebuild b/app-misc/anki-bin/anki-bin-23.10.1-r1.ebuild similarity index 95% rename from app-misc/anki-bin/anki-bin-23.10.1.ebuild rename to app-misc/anki-bin/anki-bin-23.10.1-r1.ebuild index 697a1f3924..247ebe6f01 100644 --- a/app-misc/anki-bin/anki-bin-23.10.1.ebuild +++ b/app-misc/anki-bin/anki-bin-23.10.1-r1.ebuild @@ -19,8 +19,8 @@ SRC_URI=" https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.1 -> ${P}.1 https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.desktop -> ${P}.desktop https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.png -> ${P}.png - https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.xpm -> ${P}.xpm https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.xml -> ${P}.xml + https://raw.githubusercontent.com/ankitects/anki/${PV}/qt/bundle/lin/anki.xpm -> ${P}.xpm " # The program itself is licensed under AGPL-3+ with contributed portions licensed @@ -110,13 +110,22 @@ The latter option has additional runtime dependencies. Please take a look at this package's 'optional runtime features' for a complete listing. In an early 2024 update, ENABLE_QT5_COMPAT will be removed, so this is not a -long term solution. +long-term solution. Anki's user manual is located online at https://docs.ankiweb.net/ Anki's add-on developer manual is located online at https://addon-docs.ankiweb.net/ " +src_prepare() { + default + # Anki's Qt detection mechanism falls back to Qt5 Python bindings, if Qt6 + # Python bindings don't get imported successfully. + if ! use qt6; then + sed -i "s/import PyQt6/raise ImportError/" aqt/qt/__init__.py || die + fi +} + src_install() { python_domodule anki {,_}aqt *.dist-info printf "#!/usr/bin/python3\nimport sys;from aqt import run;sys.exit(run())" > runanki