1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

games/anki: Unbreak

Unbreak since www/py-qt5-webengine is usable again since r497003.

Also update the patch for aqt/qt.py to load PyQt5.QtWebChannel explicitly.
Otherwise Anki will crash upon invocation.

PR:		233192
Approved by:	mentors (implicit)
This commit is contained in:
Kai Knoblich 2019-03-29 16:36:45 +00:00
parent 98064f0618
commit a0fb87e4ec
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=497168
2 changed files with 9 additions and 3 deletions

View File

@ -14,8 +14,6 @@ COMMENT= Flashcard trainer with spaced repetition
LICENSE= AGPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN= Depends on www/py-qt5-webengine that is still broken
RUN_DEPENDS= lame:audio/lame \
${PYTHON_PKGNAMEPREFIX}pyaudio>0:audio/py-pyaudio@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \

View File

@ -1,6 +1,14 @@
--- aqt/qt.py.orig 2019-03-09 22:22:42 UTC
+++ aqt/qt.py
@@ -42,7 +42,7 @@ qtmajor = (QT_VERSION & 0xff0000) >> 16
@@ -14,6 +14,7 @@ from anki.utils import isWin, isMac
from PyQt5.Qt import *
# trigger explicit message in case of missing libraries
# instead of silently failing to import
+from PyQt5.QtWebChannel import *
from PyQt5.QtWebEngineWidgets import *
try:
from PyQt5 import sip
@@ -42,7 +43,7 @@ qtmajor = (QT_VERSION & 0xff0000) >> 16
qtminor = (QT_VERSION & 0x00ff00) >> 8
qtpoint = QT_VERSION & 0xff