summaryrefslogtreecommitdiff
path: root/games/anki/files
diff options
context:
space:
mode:
Diffstat (limited to 'games/anki/files')
-rw-r--r--games/anki/files/patch-pylib_tools_hookslib.py6
-rw-r--r--games/anki/files/patch-rust-1.89.09
2 files changed, 3 insertions, 12 deletions
diff --git a/games/anki/files/patch-pylib_tools_hookslib.py b/games/anki/files/patch-pylib_tools_hookslib.py
index 53a3f6d62d79..8abac8c7ba0e 100644
--- a/games/anki/files/patch-pylib_tools_hookslib.py
+++ b/games/anki/files/patch-pylib_tools_hookslib.py
@@ -1,5 +1,5 @@
-Skip code formatting with "ruff" on FreeBSD 15.0-CURRENT (observed with
-n278368-5c9b1c7e5f27) to prevent following error:
+Skip code formatting with "ruff" on !FreeBSD RELEASE builds to prevent
+following error (observed with FreeBSD 15.0-CURRENT n278368-5c9b1c7e5f27):
[...]
FAILED: /wrkdirs/usr/ports/games/anki/work/anki-25.07.2/out/qt/_aqt/hooks.py
@@ -32,5 +32,5 @@ Traceback (most recent call last):
file.write(code.encode("utf8"))
- subprocess.run([sys.executable, "-m", "ruff", "format", "-q", path], check=True)
+
-+ if not (platform.system() == 'FreeBSD' and platform.release() == '15.0-CURRENT'):
++ if platform.system() == 'FreeBSD' and platform.release().endswith('-RELEASE'):
+ subprocess.run([sys.executable, "-m", "ruff", "format", "-q", path], check=True)
diff --git a/games/anki/files/patch-rust-1.89.0 b/games/anki/files/patch-rust-1.89.0
deleted file mode 100644
index 5b3adb5cd8eb..000000000000
--- a/games/anki/files/patch-rust-1.89.0
+++ /dev/null
@@ -1,9 +0,0 @@
---- rslib/i18n/src/lib.rs.orig 2025-08-22 13:45:00 UTC
-+++ rslib/i18n/src/lib.rs
-@@ -1,5 +1,6 @@
- // Copyright: Ankitects Pty Ltd and contributors
- // License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-+#![allow(text_direction_codepoint_in_literal)]
-
- mod generated;
-