Skip to content

Commit

Permalink
games/anki: Update to 24.04
Browse files Browse the repository at this point in the history
* Support for offline builds has now been integrated, so a number of
  patches are no longer required.

* The same applies to some environment variables that are also no longer
  needed or have changed slightly regarding their purpose.

* The workaround introduced in bdcfffd regarding issues with nVidia
  drivers was also merged by upstream and is therefore no longer
  required.

Changelog:

https://github.com/ankitects/anki/releases/tag/24.04
  • Loading branch information
knobix committed Apr 6, 2024
1 parent d07bc71 commit 707ad76
Show file tree
Hide file tree
Showing 12 changed files with 729 additions and 988 deletions.
19 changes: 7 additions & 12 deletions games/anki/Makefile
@@ -1,6 +1,5 @@
PORTNAME= anki
DISTVERSION= 23.12.1
PORTREVISION= 4
DISTVERSION= 24.04
# Don't forget to update ${_MY_BUILDHASH} if DISTVERSION changes
CATEGORIES= games education python
MASTER_SITES= LOCAL/kai/:yarncache
Expand Down Expand Up @@ -45,8 +44,8 @@ USES= cargo desktop-file-utils ninja nodejs:build pyqt:6 python:3.9+ \
USE_GITHUB= yes
GH_ACCOUNT= ankitects
# Translation files
GH_TUPLE= ankitects:anki-core-i18n:fb301cc:ftlrslib \
ankitects:anki-desktop-ftl:8c2191a:ftlextra
GH_TUPLE= ankitects:anki-core-i18n:c74c15b:ftlrslib \
ankitects:anki-desktop-ftl:06ad12d:ftlextra

USE_PYQT= pyqt6 sip:build webengine

Expand All @@ -59,16 +58,12 @@ CARGO_INSTALL= no

CARGO_TARGET_DIR= ${WRKSRC}/out/rust

# Custom variables introduced to the runner build system via patches
MAKE_ENV+= NO_BUNDLE=1 \
NO_VENV=1 \
OFFLINE_BUILD=1 \
OFFLINE_YARNCACHE=${_MY_YARNCACHE}
# Variables already known and used by the "runner" build system
# Variables used by the "runner" build system
MAKE_ENV+= NODE_BINARY=${LOCALBASE}/bin/node \
OFFLINE_BUILD=1 \
PROTOC_BINARY=${LOCALBASE}/bin/protoc \
PYTHON_BINARY=${PYTHON_CMD} \
YARN_BINARY=${LOCALBASE}/bin/yarn \
YARN_CACHE_FOLDER=${_MY_YARNCACHE} \
out=${WRKSRC}/out
# If RELEASE is unset the "runner" build system omits the
# "--release" flag for cargo(1).
Expand All @@ -89,7 +84,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= 1a1d4d54
_MY_BUILDHASH= 429bc9e1
# 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
Expand Down

0 comments on commit 707ad76

Please sign in to comment.