games/anki: Update to 25.09
* Adjust the workaround for the py-ruff linter so that it's only used
on FreeBSD RELEASE builds that have usually GENERIC kernels compiled
without the debug options.
Presumably, py-ruff is not absolutely necessary and can be omitted as
a dependency, but this still needs to be checked more closely.
* Also remove a no longer required patch introduced in 418adc4a25 as
the code is now compatible with Rust 1.89.
Changelog:
https://github.com/ankitects/anki/releases/tag/25.09
This commit is contained in:
parent
3152fe58ca
commit
283e8988ce
6 changed files with 434 additions and 444 deletions
|
|
@ -1,6 +1,5 @@
|
|||
PORTNAME= anki
|
||||
DISTVERSION= 25.07.5
|
||||
PORTREVISION= 1
|
||||
DISTVERSION= 25.09
|
||||
# Don't forget to update ${_MY_BUILDHASH} if DISTVERSION changes
|
||||
CATEGORIES= games education python
|
||||
MASTER_SITES= LOCAL/kai/:yarncache
|
||||
|
|
@ -49,8 +48,8 @@ USES= cargo desktop-file-utils ninja nodejs:build pyqt:6 python \
|
|||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= ankitects
|
||||
# Translation files
|
||||
GH_TUPLE= ankitects:anki-core-i18n:a019a54:ftlrslib \
|
||||
ankitects:anki-desktop-ftl:bc2da83:ftlextra
|
||||
GH_TUPLE= ankitects:anki-core-i18n:6552c95:ftlrslib \
|
||||
ankitects:anki-desktop-ftl:dad4e27:ftlextra
|
||||
|
||||
USE_PYQT= pyqt6 sip:build webengine
|
||||
|
||||
|
|
@ -93,7 +92,7 @@ MPV_RUN_DEPENDS= mpv:multimedia/mpv
|
|||
# Should contain the most recent commit that reflects ${DISTVERSION} and must
|
||||
# be exactly 8 digits otherwise the check for newer versions won't work as
|
||||
# expected.
|
||||
_MY_BUILDHASH= 7172b2d2
|
||||
_MY_BUILDHASH= 539054c3
|
||||
# Remove ${CARGO_BUILD_TARGET} from ${CARGO_ENV} to avoid problems with
|
||||
# hardcoded paths as the "runner" build system expects its components
|
||||
# in ${WRKSRC}/out/rust/debug
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ share/man/man1/anki.1.gz
|
|||
%%DATADIR%%/_aqt/data/qt/icons/heart.svg
|
||||
%%DATADIR%%/_aqt/data/qt/icons/magnify-dark.svg
|
||||
%%DATADIR%%/_aqt/data/qt/icons/magnify-light.svg
|
||||
%%DATADIR%%/_aqt/data/qt/icons/media-record.png
|
||||
%%DATADIR%%/_aqt/data/qt/icons/media-record.svg
|
||||
%%DATADIR%%/_aqt/data/qt/icons/menu-down-dark.svg
|
||||
%%DATADIR%%/_aqt/data/qt/icons/menu-down-light.svg
|
||||
%%DATADIR%%/_aqt/data/qt/icons/menu-up-dark.svg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue