Page MenuHomeFreeBSD

games/anki: Update to 2.1.44
ClosedPublic

Authored by kai on Jul 30 2021, 7:53 AM.
Tags
None
Referenced Files
F82083864: D31358.id92985.diff
Thu, Apr 25, 8:48 AM
Unknown Object (File)
Sun, Apr 21, 9:28 PM
Unknown Object (File)
Sat, Apr 20, 5:35 AM
Unknown Object (File)
Fri, Apr 19, 5:39 AM
Unknown Object (File)
Thu, Apr 18, 3:15 AM
Unknown Object (File)
Jan 24 2024, 8:12 AM
Unknown Object (File)
Dec 14 2023, 11:06 PM
Unknown Object (File)
Dec 4 2023, 8:03 AM
Subscribers

Details

Summary
Since the 2.1.36 release the build system has changed significantly
again and devel/bazel is now used for the entire build process.

With this change, a lot of bazel rules and also some translation files
are downloaded from various repositories during the buildtime.

In order to still make Anki compatible with the Ports framework, the
following approach is used:

  1. Prefetch all the required files before buildtime.
  2. Create and setup a few local bazel repositories along with a set
     of custom bazel rules.
  3. Compile the Rust library and place the output files to the
     according local bazel repository for further processing.
  4. Build the rest via devel/bazel

From a technical point of view, Anki should also be able to be built on
other 64-bit architectures (but requires further patching of a few bazel
rules), as soon as devel/bazel can also be built for those platforms.

The option NLS is gone because the translations are now compiled
directly into the rust library and they only generate a small overhead.

Changelog since 2.1.35 (too many changes to list them separately):
    
https://changes.ankiweb.net/
Test Plan
  • poudriere -> OK (11.4-, 12.2-, 13.0-RELEASE, 14.0-CURRENT)
  • portclippy -> OK
  • Upgrade from Anki 2.1.35 to Anki 2.1.44 with custom user decks -> OK

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable