diff options
Diffstat (limited to 'app-misc/anki/files')
-rw-r--r-- | app-misc/anki/files/anki-2.1.0_beta25-web-folder.patch | 11 | ||||
-rw-r--r-- | app-misc/anki/files/anki-2.1.15-fix-prefs.patch | 17 | ||||
-rw-r--r-- | app-misc/anki/files/anki-2.1.15-mpv-args.patch | 26 | ||||
-rw-r--r-- | app-misc/anki/files/anki-2.1.15-unescape.patch | 13 |
4 files changed, 0 insertions, 67 deletions
diff --git a/app-misc/anki/files/anki-2.1.0_beta25-web-folder.patch b/app-misc/anki/files/anki-2.1.0_beta25-web-folder.patch deleted file mode 100644 index 19b196c4ace7..000000000000 --- a/app-misc/anki/files/anki-2.1.0_beta25-web-folder.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- anki-2.1.0beta25/aqt/mediasrv.py -+++ anki-2.1.0beta25/aqt/mediasrv.py -@@ -13,7 +13,7 @@ - # locate web folder in source/binary distribution - def _getExportFolder(): - # running from source? -- srcFolder = os.path.join(os.path.dirname(__file__), "..") -+ srcFolder = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "share", "anki") - webInSrcFolder = os.path.abspath(os.path.join(srcFolder, "web")) - if os.path.exists(webInSrcFolder): - return webInSrcFolder diff --git a/app-misc/anki/files/anki-2.1.15-fix-prefs.patch b/app-misc/anki/files/anki-2.1.15-fix-prefs.patch deleted file mode 100644 index 4f0bb2457dac..000000000000 --- a/app-misc/anki/files/anki-2.1.15-fix-prefs.patch +++ /dev/null @@ -1,17 +0,0 @@ -https://bugs.gentoo.org/869917#c3 -https://github.com/ankitects/anki/commit/d2ae874d9e1615d09afc912275cc3b27776a1392 - ---- a/aqt/preferences.py -+++ b/aqt/preferences.py -@@ -77,8 +77,8 @@ class Preferences(QDialog): - f.hwAccel.setVisible(False) - else: - f.hwAccel.setChecked(self.mw.pm.glMode() != "software") -- f.lrnCutoff.setValue(qc['collapseTime']/60.0) -- f.timeLimit.setValue(qc['timeLim']/60.0) -+ f.lrnCutoff.setValue(int(qc['collapseTime']/60.0)) -+ f.timeLimit.setValue(int(qc['timeLim']/60.0)) - f.showEstimates.setChecked(qc['estTimes']) - f.showProgress.setChecked(qc['dueCounts']) - f.nightMode.setChecked(qc.get("nightMode", False)) - diff --git a/app-misc/anki/files/anki-2.1.15-mpv-args.patch b/app-misc/anki/files/anki-2.1.15-mpv-args.patch deleted file mode 100644 index 1e8cde1083f2..000000000000 --- a/app-misc/anki/files/anki-2.1.15-mpv-args.patch +++ /dev/null @@ -1,26 +0,0 @@ ---- a/anki/mpv.py -+++ b/anki/mpv.py -@@ -104,9 +104,9 @@ class MPVBase: - """ - self.argv = [self.executable] - self.argv += self.default_argv -- self.argv += ["--input-ipc-server", self._sock_filename] -+ self.argv += ["--input-ipc-server="+self._sock_filename] - if self.window_id is not None: -- self.argv += ["--wid", str(self.window_id)] -+ self.argv += ["--wid="+str(self.window_id)] - - def _start_process(self): - """Start the mpv process. -diff --git a/anki/sound.py b/anki/sound.py -index aa3431b1..a5fce446 100644 ---- a/anki/sound.py -+++ b/anki/sound.py -@@ -124,7 +124,6 @@ class MpvManager(MPV): - def setMpvConfigBase(base): - mpvConfPath = os.path.join(base, "mpv.conf") - MpvManager.default_argv += [ -- "--no-config", - "--include="+mpvConfPath, - ] - diff --git a/app-misc/anki/files/anki-2.1.15-unescape.patch b/app-misc/anki/files/anki-2.1.15-unescape.patch deleted file mode 100644 index 7b03c8d8e1a3..000000000000 --- a/app-misc/anki/files/anki-2.1.15-unescape.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/aqt/reviewer.py b/aqt/reviewer.py -index f01fcbd9f..5aaf26669 100644 ---- a/aqt/reviewer.py -+++ b/aqt/reviewer.py -@@ -359,7 +359,7 @@ Please run Tools>Empty Cards""") - cor = stripHTML(cor) - # ensure we don't chomp multiple whitespace - cor = cor.replace(" ", " ") -- cor = parser.unescape(cor) -+ cor = html.unescape(cor) - cor = cor.replace("\xa0", " ") - cor = cor.strip() - given = self.typedAnswer |