Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Mar 2019 16:36:46 +0000 (UTC)
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r497168 - in head/games/anki: . files
Message-ID:  <201903291636.x2TGak2J019122@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kai
Date: Fri Mar 29 16:36:45 2019
New Revision: 497168
URL: https://svnweb.freebsd.org/changeset/ports/497168

Log:
  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)

Modified:
  head/games/anki/Makefile
  head/games/anki/files/patch-aqt_qt.py

Modified: head/games/anki/Makefile
==============================================================================
--- head/games/anki/Makefile	Fri Mar 29 16:36:03 2019	(r497167)
+++ head/games/anki/Makefile	Fri Mar 29 16:36:45 2019	(r497168)
@@ -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} \

Modified: head/games/anki/files/patch-aqt_qt.py
==============================================================================
--- head/games/anki/files/patch-aqt_qt.py	Fri Mar 29 16:36:03 2019	(r497167)
+++ head/games/anki/files/patch-aqt_qt.py	Fri Mar 29 16:36:45 2019	(r497168)
@@ -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
  



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903291636.x2TGak2J019122>