public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Lucio Sauer" <watermanpaint@posteo.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/anki-bin/
Date: Sun,  1 Sep 2024 20:58:19 +0000 (UTC)	[thread overview]
Message-ID: <1725224153.37184794d17e0774459d41c5147e8f0aaeabf352.watermanpaint@gentoo> (raw)

commit:     37184794d17e0774459d41c5147e8f0aaeabf352
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Sun Sep  1 20:55:53 2024 +0000
Commit:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
CommitDate: Sun Sep  1 20:55:53 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=37184794

app-misc/anki-bin: force Qt6 GUI

Adapt package to conform to new policy
https://wiki.gentoo.org/index.php?title=Project:Qt/Policies&diff=prev&oldid=1310293

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>

 ...n-24.06.3.ebuild => anki-bin-24.06.3-r1.ebuild} | 53 +++++++---------------
 1 file changed, 16 insertions(+), 37 deletions(-)

diff --git a/app-misc/anki-bin/anki-bin-24.06.3.ebuild b/app-misc/anki-bin/anki-bin-24.06.3-r1.ebuild
similarity index 71%
rename from app-misc/anki-bin/anki-bin-24.06.3.ebuild
rename to app-misc/anki-bin/anki-bin-24.06.3-r1.ebuild
index 31964206d..a2732db83 100644
--- a/app-misc/anki-bin/anki-bin-24.06.3.ebuild
+++ b/app-misc/anki-bin/anki-bin-24.06.3-r1.ebuild
@@ -41,11 +41,13 @@ LICENSE+="
 LICENSE+=" Unicode-3.0 openssl"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="qt6"
 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 
 RDEPEND="
+	${PYTHON_DEPS}
+	!app-misc/anki
 	app-misc/ca-certificates
+	dev-qt/qtsvg:6
 	$(python_gen_cond_dep '
 		dev-python/beautifulsoup4[${PYTHON_USEDEP}]
 		dev-python/distro[${PYTHON_USEDEP}]
@@ -57,24 +59,10 @@ RDEPEND="
 		dev-python/protobuf-python[${PYTHON_USEDEP}]
 		dev-python/requests[${PYTHON_USEDEP}]
 		dev-python/send2trash[${PYTHON_USEDEP}]
-		dev-python/waitress[${PYTHON_USEDEP}]')
-	qt6? (
-		dev-qt/qtsvg:6
-		$(python_gen_cond_dep '
-			>=dev-python/PyQt6-6.6.1[gui,network,opengl,quick,webchannel,widgets,${PYTHON_USEDEP}]
-			>=dev-python/PyQt6-sip-13.6.0[${PYTHON_USEDEP}]
-			>=dev-python/PyQt6-WebEngine-6.6.0[widgets,${PYTHON_USEDEP}]')
-	)
-	!qt6? (
-		dev-qt/qtgui:5[jpeg,png]
-		dev-qt/qtsvg:5
-		$(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}]')
-	)
-	${PYTHON_DEPS}
-	!app-misc/anki
+		dev-python/waitress[${PYTHON_USEDEP}]
+		>=dev-python/PyQt6-6.6.1[gui,network,opengl,quick,webchannel,widgets,${PYTHON_USEDEP}]
+		>=dev-python/PyQt6-sip-13.6.0[${PYTHON_USEDEP}]
+		>=dev-python/PyQt6-WebEngine-6.6.0[widgets,${PYTHON_USEDEP}]')
 "
 BDEPEND="app-arch/unzip"
 
@@ -82,15 +70,6 @@ PATCHES="${FILESDIR}"/${PN}-24.04.1-revert-cert-store-hack.patch
 
 QA_PREBUILT="usr/lib/*"
 
-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
@@ -102,12 +81,12 @@ src_install() {
 	insinto /usr/share/mime/packages
 	newins "${DISTDIR}"/${MY_P}.xml anki.xml
 
-	local DOC_CONTENTS="Users with add-ons that still rely on Anki's Qt5 GUI can either switch
-	to ${CATEGORY}/${PN}[-qt6], or temporarily set an environment variable
-	ENABLE_QT5_COMPAT to 1 to have Anki install the previous compatibility code.
-	The latter option has additional runtime dependencies. Please take a look
-	at this package's 'optional runtime features' for a complete listing.
-	\n\nIn an early 2024 update, ENABLE_QT5_COMPAT will be removed, so this is not a
+	local DOC_CONTENTS="Users with add-ons that still rely on Anki's Qt5 GUI
+	can temporarily set the environment variable ENABLE_QT5_COMPAT to 1 to have
+	Anki install the previous compatibility code. This option has additional
+	runtime dependencies. Please take a look at this package's optional runtime
+	features for a complete listing.
+	\n\nENABLE_QT5_COMPAT may be removed in the future, so this is not a
 	long-term solution.
 	\n\nAnki's user manual is located online at https://docs.ankiweb.net/
 	\nAnki's add-on developer manual is located online at
@@ -121,10 +100,10 @@ pkg_postinst() {
 	xdg_pkg_postinst
 	optfeature "LaTeX in cards" "app-text/texlive[extra] app-text/dvipng"
 	optfeature "sound support" media-video/mpv media-video/mplayer
-	optfeature "recording support" "media-sound/lame[frontend] dev-python/PyQt$(usex qt6 6 5)[multimedia]"
+	optfeature "recording support" "media-sound/lame[frontend] dev-python/PyQt6[multimedia]"
 	optfeature "faster database operations" dev-python/orjson
-	use qt6 && optfeature "compatibility with Qt5-dependent add-ons" dev-python/PyQt6[dbus,printsupport]
-	use qt6 && optfeature "Vulkan driver" "media-libs/vulkan-loader dev-qt/qtbase[vulkan]
+	optfeature "compatibility with Qt5-dependent add-ons" dev-python/PyQt6[dbus,printsupport]
+	optfeature "Vulkan driver" "media-libs/vulkan-loader dev-qt/qtbase:6[vulkan]
 		dev-qt/qtdeclarative:6[vulkan] dev-qt/qtwebengine:6[vulkan]"
 
 	einfo "You can customize the LaTeX header for your cards to fit your needs:"


             reply	other threads:[~2024-09-01 20:58 UTC|newest]

Thread overview: 59+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-01 20:58 Lucio Sauer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-01 20:58 [gentoo-commits] repo/proj/guru:dev commit in: app-misc/anki-bin/ Lucio Sauer
2024-07-03 16:11 Lucio Sauer
2024-07-03 16:07 Lucio Sauer
2024-06-20  2:41 Lucio Sauer
2024-04-29 14:14 Lucio Sauer
2024-04-28 18:00 Lucio Sauer
2024-04-28 17:55 Lucio Sauer
2024-04-28 17:55 Lucio Sauer
2024-04-01 20:38 Lucio Sauer
2024-02-25  1:21 Lucio Sauer
2023-12-28 13:46 Lucio Sauer
2023-12-28 13:46 Lucio Sauer
2023-12-26 18:24 Lucio Sauer
2023-12-26 18:24 Lucio Sauer
2023-12-11 13:28 Lucio Sauer
2023-11-27  0:32 Lucio Sauer
2023-11-24 12:17 Lucio Sauer
2023-11-24 12:17 Lucio Sauer
2023-11-09  5:49 Amano Kenji
2023-11-02  0:58 Shaoyu Tseng
2023-08-27 19:51 Lucio Sauer
2023-08-24 20:02 Lucio Sauer
2023-08-24 20:02 Lucio Sauer
2023-06-12  7:39 Lucio Sauer
2023-06-07 19:58 Lucio Sauer
2023-06-07 19:53 Lucio Sauer
2023-06-05 22:32 Lucio Sauer
2023-05-24 22:38 Lucio Sauer
2023-05-24 22:38 Lucio Sauer
2023-05-15 19:17 Lucio Sauer
2023-05-15 19:17 Lucio Sauer
2023-05-06 22:52 Lucio Sauer
2023-05-06 22:52 Lucio Sauer
2023-03-31 22:08 Lucio Sauer
2023-03-31 22:08 Lucio Sauer
2023-02-22 16:51 Lucio Sauer
2023-02-22 16:51 Lucio Sauer
2023-02-21  0:56 Lucio Sauer
2023-01-29 19:41 Lucio Sauer
2023-01-29 19:41 Lucio Sauer
2023-01-14 19:22 Ran Rutenberg
2023-01-14 16:35 Ran Rutenberg
2023-01-10  2:40 Shaoyu Tseng
2022-12-30  2:45 Lucio Sauer
2022-12-30  2:45 Lucio Sauer
2022-11-28 18:59 Jack Sangdahl
2022-11-28 10:10 Jack Sangdahl
2022-09-18  4:37 Lucio Sauer
2022-09-18  4:37 Lucio Sauer
2022-09-16  0:50 Lucio Sauer
2022-03-28 19:52 Shaoyu Tseng
2021-10-17 16:23 Shaoyu Tseng
2021-08-08  3:51 Shaoyu Tseng
2021-07-31  8:17 Shaoyu Tseng
2021-07-30  9:27 Shaoyu Tseng
2021-07-30  9:11 Andrew Ammerlaan
2021-07-29 12:20 Shaoyu Tseng
2021-07-29 11:41 Shaoyu Tseng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1725224153.37184794d17e0774459d41c5147e8f0aaeabf352.watermanpaint@gentoo \
    --to=watermanpaint@posteo.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox