1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

games/anki: Update to 23.10

* Upstream changed the version numbering scheme to year.month(.patch).

Changelog:

https://github.com/ankitects/anki/releases/tag/23.10

MFH:		No (feature release)
This commit is contained in:
Kai Knoblich 2023-11-03 13:54:38 +01:00
parent 0cc58ed59d
commit 76c3413bcd
7 changed files with 759 additions and 665 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= anki
DISTVERSION= 2.1.66
PORTREVISION= 2
DISTVERSION= 23.10
# Don't forget to update ${_MY_BUILDHASH} if DISTVERSION changes
CATEGORIES= games education python
MASTER_SITES= LOCAL/kai/:yarncache
@ -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:7123006:ftlrslib \
ankitects:anki-desktop-ftl:75af3ed:ftlextra
GH_TUPLE= ankitects:anki-core-i18n:8dfb51e:ftlrslib \
ankitects:anki-desktop-ftl:82a545c:ftlextra
USE_PYQT= pyqt6 sip:build webengine
@ -89,7 +88,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= 70506aeb
_MY_BUILDHASH= 51a10f09
# 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

View File

@ -1,71 +1,80 @@
CARGO_CRATES= addr2line-0.20.0 \
CARGO_CRATES= addr2line-0.21.0 \
adler-1.0.2 \
ahash-0.8.3 \
aho-corasick-0.7.20 \
aho-corasick-1.0.2 \
allocator-api2-0.2.15 \
ahash-0.8.5 \
aho-corasick-1.1.2 \
allocator-api2-0.2.16 \
ammonia-3.3.0 \
android-tzdata-0.1.1 \
android_system_properties-0.1.5 \
anes-0.1.6 \
anstream-0.3.2 \
anstyle-1.0.1 \
anstyle-parse-0.2.1 \
anstream-0.6.4 \
anstyle-1.0.4 \
anstyle-parse-0.2.2 \
anstyle-query-1.0.0 \
anstyle-wincon-1.0.1 \
anyhow-1.0.71 \
anstyle-wincon-3.0.1 \
anyhow-1.0.75 \
apple-bundles-0.17.0 \
arrayref-0.3.7 \
arrayvec-0.7.4 \
assert-json-diff-2.0.2 \
async-channel-1.8.0 \
async-compression-0.4.0 \
async-channel-1.9.0 \
async-compression-0.4.4 \
async-stream-0.3.5 \
async-stream-impl-0.3.5 \
async-trait-0.1.68 \
async-trait-0.1.74 \
autocfg-1.1.0 \
axum-0.6.18 \
axum-client-ip-0.4.1 \
axum-0.6.20 \
axum-client-ip-0.4.2 \
axum-core-0.3.4 \
axum-macros-0.3.7 \
backtrace-0.3.68 \
axum-macros-0.3.8 \
backtrace-0.3.69 \
base64-0.13.1 \
base64-0.21.2 \
base64-0.21.5 \
bincode-2.0.0-rc.3 \
bitflags-1.3.2 \
bitflags-2.3.3 \
blake3-1.4.0 \
bitflags-2.4.1 \
blake3-1.5.0 \
block-buffer-0.10.4 \
block-padding-0.3.3 \
bstr-0.2.17 \
bstr-1.5.0 \
bumpalo-3.13.0 \
byteorder-1.4.3 \
bytes-1.4.0 \
camino-1.1.4 \
bstr-1.7.0 \
bumpalo-3.14.0 \
burn-0.10.0 \
burn-autodiff-0.10.0 \
burn-common-0.10.0 \
burn-core-0.10.0 \
burn-dataset-0.10.0 \
burn-derive-0.10.0 \
burn-ndarray-0.10.0 \
burn-tensor-0.10.0 \
burn-tensor-testgen-0.10.0 \
burn-train-0.10.0 \
byteorder-1.5.0 \
bytes-1.5.0 \
camino-1.1.6 \
cast-0.3.0 \
cbc-0.1.2 \
cc-1.0.79 \
cc-1.0.83 \
cfg-if-1.0.0 \
chrono-0.4.26 \
chrono-0.4.31 \
ciborium-0.2.1 \
ciborium-io-0.2.1 \
ciborium-ll-0.2.1 \
cipher-0.4.4 \
clap-4.3.10 \
clap_builder-4.3.10 \
clap_complete-4.3.1 \
clap_derive-4.3.2 \
clap_lex-0.5.0 \
coarsetime-0.1.23 \
clap-4.4.7 \
clap_builder-4.4.7 \
clap_complete-4.4.4 \
clap_derive-4.4.7 \
clap_lex-0.6.0 \
coarsetime-0.1.29 \
codespan-0.11.1 \
codespan-reporting-0.11.1 \
colorchoice-1.0.0 \
concurrent-queue-2.2.0 \
constant_time_eq-0.2.6 \
concurrent-queue-2.3.0 \
constant_time_eq-0.3.0 \
convert_case-0.6.0 \
core-foundation-0.9.3 \
core-foundation-sys-0.8.4 \
cpufeatures-0.2.8 \
cpufeatures-0.2.10 \
crc32fast-1.3.2 \
criterion-0.5.1 \
criterion-plot-0.5.0 \
@ -73,10 +82,15 @@ CARGO_CRATES= addr2line-0.20.0 \
crossbeam-deque-0.8.3 \
crossbeam-epoch-0.9.15 \
crossbeam-utils-0.8.16 \
crunchy-0.2.2 \
crypto-common-0.1.6 \
csv-1.3.0 \
csv-core-0.1.11 \
data-encoding-2.4.0 \
deadpool-0.9.5 \
deadpool-runtime-0.1.2 \
deadpool-runtime-0.1.3 \
deranged-0.3.9 \
derive-new-0.5.9 \
des-0.8.1 \
difflib-0.4.0 \
digest-0.10.7 \
@ -86,22 +100,22 @@ CARGO_CRATES= addr2line-0.20.0 \
doc-comment-0.3.3 \
duct-0.13.6 \
dunce-1.0.4 \
either-1.8.1 \
either-1.9.0 \
elasticlunr-rs-3.0.2 \
encoding_rs-0.8.32 \
encoding_rs-0.8.33 \
env_logger-0.10.0 \
envy-0.4.2 \
equivalent-1.0.0 \
errno-0.3.1 \
errno-dragonfly-0.1.2 \
equivalent-1.0.1 \
errno-0.3.5 \
event-listener-2.5.3 \
fallible-iterator-0.2.0 \
fallible-streaming-iterator-0.1.9 \
fastrand-1.9.0 \
filetime-0.2.21 \
fastrand-2.0.1 \
filetime-0.2.22 \
find-winsdk-0.2.0 \
fixedbitset-0.4.2 \
flate2-1.0.26 \
flate2-1.0.28 \
fluent-0.16.0 \
fluent-bundle-0.15.2 \
fluent-langneg-0.13.0 \
@ -129,41 +143,43 @@ CARGO_CRATES= addr2line-0.20.0 \
getopts-0.2.21 \
getrandom-0.1.16 \
getrandom-0.2.10 \
gimli-0.27.3 \
gimli-0.28.0 \
glob-0.3.1 \
globset-0.4.10 \
h2-0.3.20 \
globset-0.4.13 \
h2-0.3.21 \
half-1.8.2 \
handlebars-4.3.7 \
half-2.3.1 \
handlebars-4.4.0 \
hashbrown-0.12.3 \
hashbrown-0.14.0 \
hashlink-0.8.3 \
headers-0.3.8 \
hashbrown-0.14.2 \
hashlink-0.8.4 \
headers-0.3.9 \
headers-core-0.2.0 \
heck-0.4.1 \
hermit-abi-0.3.2 \
hermit-abi-0.3.3 \
hex-0.4.3 \
hmac-0.12.1 \
home-0.5.5 \
html5ever-0.26.0 \
htmlescape-0.3.1 \
http-0.2.9 \
http-body-0.4.5 \
http-range-header-0.3.0 \
http-range-header-0.3.1 \
http-types-2.12.0 \
httparse-1.8.0 \
httpdate-1.0.2 \
httpdate-1.0.3 \
humantime-2.1.0 \
hyper-0.14.27 \
hyper-rustls-0.24.0 \
hyper-rustls-0.24.1 \
hyper-tls-0.5.0 \
iana-time-zone-0.1.57 \
iana-time-zone-0.1.58 \
iana-time-zone-haiku-0.1.2 \
id_tree-1.8.0 \
idna-0.4.0 \
ignore-0.4.20 \
indexmap-1.9.3 \
indexmap-2.0.0 \
indoc-1.0.9 \
indexmap-2.0.2 \
indoc-2.0.4 \
infer-0.2.3 \
inflections-1.1.1 \
inotify-0.9.6 \
@ -172,26 +188,25 @@ CARGO_CRATES= addr2line-0.20.0 \
instant-0.1.12 \
intl-memoizer-0.5.1 \
intl_pluralrules-7.0.2 \
io-lifetimes-1.0.11 \
ipnet-2.8.0 \
is-terminal-0.4.8 \
ipnet-2.9.0 \
is-terminal-0.4.9 \
itertools-0.10.5 \
itertools-0.11.0 \
itoa-1.0.6 \
jobserver-0.1.26 \
itoa-1.0.9 \
jobserver-0.1.27 \
js-sys-0.3.64 \
junction-1.0.0 \
kqueue-1.0.7 \
kqueue-sys-1.0.3 \
kqueue-1.0.8 \
kqueue-sys-1.0.4 \
lazy_static-1.4.0 \
libc-0.2.147 \
libc-0.2.149 \
libm-0.2.8 \
libsqlite3-sys-0.26.0 \
line-wrap-0.1.1 \
linkify-0.7.0 \
linux-raw-sys-0.3.8 \
linux-raw-sys-0.4.3 \
lock_api-0.4.10 \
log-0.4.19 \
linux-raw-sys-0.4.10 \
lock_api-0.4.11 \
log-0.4.20 \
lzma-sys-0.1.20 \
mac-0.1.1 \
maplit-1.0.2 \
@ -199,51 +214,58 @@ CARGO_CRATES= addr2line-0.20.0 \
markup5ever_rcdom-0.2.0 \
matchers-0.1.0 \
matches-0.1.10 \
matchit-0.7.0 \
mdbook-0.4.31 \
memchr-2.5.0 \
matchit-0.7.3 \
matrixmultiply-0.3.8 \
mdbook-0.4.35 \
memchr-2.6.4 \
memoffset-0.9.0 \
mime-0.3.17 \
mime_guess-2.0.4 \
minimal-lexical-0.2.1 \
miniz_oxide-0.7.1 \
mio-0.8.8 \
mio-0.8.9 \
multer-2.1.0 \
multimap-0.8.3 \
native-tls-0.2.11 \
ndarray-0.15.6 \
ndarray-rand-0.14.0 \
new_debug_unreachable-1.0.4 \
nom-7.1.3 \
nonempty-0.7.0 \
notify-5.2.0 \
notify-debouncer-mini-0.2.1 \
normpath-1.1.1 \
notify-6.1.1 \
notify-debouncer-mini-0.3.0 \
nu-ansi-term-0.46.0 \
num-complex-0.4.4 \
num-format-0.4.4 \
num-traits-0.2.15 \
num-integer-0.1.45 \
num-traits-0.2.17 \
num_cpus-1.16.0 \
num_enum-0.6.1 \
num_enum_derive-0.6.1 \
object-0.31.1 \
num_enum-0.7.0 \
num_enum_derive-0.7.0 \
object-0.32.1 \
once_cell-1.18.0 \
oorandom-11.1.3 \
opener-0.5.2 \
openssl-0.10.55 \
opener-0.6.1 \
openssl-0.10.57 \
openssl-macros-0.1.1 \
openssl-probe-0.1.5 \
openssl-sys-0.9.90 \
openssl-sys-0.9.93 \
option-ext-0.2.0 \
os_pipe-1.1.4 \
overload-0.1.1 \
p12-0.6.3 \
parking-2.1.0 \
parking-2.2.0 \
parking_lot-0.12.1 \
parking_lot_core-0.9.8 \
parking_lot_core-0.9.9 \
paste-1.0.14 \
pem-1.1.1 \
percent-encoding-2.3.0 \
pest-2.7.0 \
pest_derive-2.7.0 \
pest_generator-2.7.0 \
pest_meta-2.7.0 \
petgraph-0.6.3 \
pest-2.7.5 \
pest_derive-2.7.5 \
pest_generator-2.7.5 \
pest_meta-2.7.5 \
petgraph-0.6.4 \
phf-0.10.1 \
phf-0.11.2 \
phf_codegen-0.10.0 \
@ -252,160 +274,170 @@ CARGO_CRATES= addr2line-0.20.0 \
phf_macros-0.11.2 \
phf_shared-0.10.0 \
phf_shared-0.11.2 \
pin-project-1.1.1 \
pin-project-internal-1.1.1 \
pin-project-lite-0.2.9 \
pin-project-1.1.3 \
pin-project-internal-1.1.3 \
pin-project-lite-0.2.13 \
pin-utils-0.1.0 \
pkg-config-0.3.27 \
plist-1.4.3 \
plist-1.5.1 \
plotters-0.3.5 \
plotters-backend-0.3.5 \
plotters-svg-0.3.5 \
powerfmt-0.2.0 \
ppv-lite86-0.2.17 \
precomputed-hash-0.1.1 \
prettyplease-0.1.25 \
prettyplease-0.2.9 \
prettyplease-0.2.15 \
proc-macro-crate-1.3.1 \
proc-macro-hack-0.5.20+deprecated \
proc-macro2-1.0.63 \
prost-0.11.9 \
prost-build-0.11.9 \
prost-derive-0.11.9 \
prost-reflect-0.11.4 \
prost-types-0.11.9 \
proc-macro2-1.0.69 \
prost-0.12.1 \
prost-build-0.12.1 \
prost-derive-0.12.1 \
prost-reflect-0.12.0 \
prost-types-0.12.1 \
pulldown-cmark-0.8.0 \
pulldown-cmark-0.9.3 \
pyo3-0.19.0 \
pyo3-build-config-0.19.0 \
pyo3-ffi-0.19.0 \
pyo3-macros-0.19.0 \
pyo3-macros-backend-0.19.0 \
quick-xml-0.28.2 \
quote-1.0.29 \
pyo3-0.20.0 \
pyo3-build-config-0.20.0 \
pyo3-ffi-0.20.0 \
pyo3-macros-0.20.0 \
pyo3-macros-backend-0.20.0 \
quick-xml-0.30.0 \
quote-1.0.33 \
rand-0.7.3 \
rand-0.8.5 \
rand_chacha-0.2.2 \
rand_chacha-0.3.1 \
rand_core-0.5.1 \
rand_core-0.6.4 \
rand_distr-0.4.3 \
rand_hc-0.2.0 \
rayon-1.7.0 \
rayon-core-1.11.0 \
rawpointer-0.2.1 \
rayon-1.8.0 \
rayon-core-1.12.0 \
rc2-0.8.1 \
rcgen-0.10.0 \
redox_syscall-0.2.16 \
redox_syscall-0.3.5 \
redox_syscall-0.4.1 \
redox_users-0.4.3 \
regex-1.9.1 \
regex-1.10.2 \
regex-automata-0.1.10 \
regex-automata-0.3.4 \
regex-automata-0.4.3 \
regex-syntax-0.6.29 \
regex-syntax-0.7.4 \
reqwest-0.11.18 \
regex-syntax-0.8.2 \
reqwest-0.11.22 \
retain_mut-0.1.9 \
ring-0.16.20 \
ring-0.17.5 \
rmp-0.8.12 \
rmp-serde-1.1.2 \
rusqlite-0.29.0 \
rustc-demangle-0.1.23 \
rustc-hash-1.1.0 \
rustix-0.37.21 \
rustix-0.38.1 \
rustls-0.21.2 \
rustix-0.38.20 \
rustls-0.21.8 \
rustls-native-certs-0.6.3 \
rustls-pemfile-1.0.3 \
rustls-webpki-0.100.1 \
rustversion-1.0.12 \
ryu-1.0.13 \
rustls-webpki-0.101.7 \
rustversion-1.0.14 \
ryu-1.0.15 \
safemem-0.3.3 \
same-file-1.0.6 \
schannel-0.1.21 \
sanitize-filename-0.5.0 \
schannel-0.1.22 \
scoped-tls-1.0.1 \
scopeguard-1.1.0 \
sct-0.7.0 \
security-framework-2.9.1 \
security-framework-sys-2.9.0 \
scopeguard-1.2.0 \
sct-0.7.1 \
security-framework-2.9.2 \
security-framework-sys-2.9.1 \
self_cell-0.10.2 \
semver-1.0.17 \
serde-1.0.164 \
semver-1.0.20 \
serde-1.0.189 \
serde-aux-4.2.0 \
serde_derive-1.0.164 \
serde_json-1.0.99 \
serde_path_to_error-0.1.11 \
serde_derive-1.0.189 \
serde_json-1.0.107 \
serde_path_to_error-0.1.14 \
serde_qs-0.8.5 \
serde_repr-0.1.12 \
serde_repr-0.1.16 \
serde_tuple-0.5.0 \
serde_tuple_macros-0.5.0 \
serde_urlencoded-0.7.1 \
sha1-0.10.5 \
sha2-0.10.7 \
sharded-slab-0.1.4 \
sha1-0.10.6 \
sha2-0.10.8 \
sharded-slab-0.1.7 \
shared_child-1.0.0 \
shlex-1.1.0 \
shlex-1.2.0 \
signal-hook-registry-1.4.1 \
simple-file-manifest-0.11.0 \
siphasher-0.3.10 \
slab-0.4.8 \
smallvec-1.10.0 \
snafu-0.7.4 \
snafu-derive-0.7.4 \
siphasher-0.3.11 \
slab-0.4.9 \
smallvec-1.11.1 \
snafu-0.7.5 \
snafu-derive-0.7.5 \
snowflake-1.3.0 \
socket2-0.4.9 \
socket2-0.4.10 \
socket2-0.5.5 \
spin-0.5.2 \
spin-0.9.8 \
string_cache-0.8.7 \
string_cache_codegen-0.5.2 \
strsim-0.10.0 \
strum-0.25.0 \
strum_macros-0.25.0 \
strum_macros-0.25.3 \
subtle-2.5.0 \
syn-1.0.109 \
syn-2.0.22 \
syn-2.0.38 \
sync_wrapper-0.1.2 \
tar-0.4.38 \
target-lexicon-0.12.8 \
tempfile-3.6.0 \
system-configuration-0.5.1 \
system-configuration-sys-0.5.0 \
tar-0.4.40 \
target-lexicon-0.12.12 \
tempfile-3.8.0 \
tendril-0.4.3 \
termcolor-1.2.0 \
terminal_size-0.2.6 \
thiserror-1.0.40 \
thiserror-impl-1.0.40 \
termcolor-1.3.0 \
terminal_size-0.3.0 \
thiserror-1.0.50 \
thiserror-impl-1.0.50 \
thread-tree-0.3.3 \
thread_local-1.1.7 \
time-0.3.22 \
time-core-0.1.1 \
time-macros-0.2.9 \
tinystr-0.7.1 \
time-0.3.30 \
time-core-0.1.2 \
time-macros-0.2.15 \
tinystr-0.7.4 \
tinytemplate-1.2.1 \
tinyvec-1.6.0 \
tinyvec_macros-0.1.1 \
tokio-1.29.1 \
tokio-1.33.0 \
tokio-macros-2.1.0 \
tokio-native-tls-0.3.1 \
tokio-rustls-0.24.1 \
tokio-socks-0.5.1 \
tokio-stream-0.1.14 \
tokio-tungstenite-0.18.0 \
tokio-util-0.7.8 \
tokio-tungstenite-0.20.1 \
tokio-util-0.7.9 \
toml-0.5.11 \
toml_datetime-0.6.3 \
toml_edit-0.19.11 \
toml_datetime-0.6.5 \
toml_edit-0.19.15 \
topological-sort-0.2.2 \
tower-0.4.13 \
tower-http-0.4.1 \
tower-http-0.4.4 \
tower-layer-0.3.2 \
tower-service-0.3.2 \
tracing-0.1.37 \
tracing-0.1.40 \
tracing-appender-0.2.2 \
tracing-attributes-0.1.26 \
tracing-core-0.1.31 \
tracing-log-0.1.3 \
tracing-attributes-0.1.27 \
tracing-core-0.1.32 \
tracing-log-0.1.4 \
tracing-subscriber-0.3.17 \
try-lock-0.2.4 \
tugger-common-0.10.0 \
tugger-windows-0.10.0 \
tugger-windows-codesign-0.10.0 \
tungstenite-0.18.0 \
tungstenite-0.20.1 \
type-map-0.4.0 \
typenum-1.16.0 \
ucd-trie-0.1.5 \
typenum-1.17.0 \
ucd-trie-0.1.6 \
unic-char-property-0.9.0 \
unic-char-range-0.9.0 \
unic-common-0.9.0 \
@ -417,23 +449,25 @@ CARGO_CRATES= addr2line-0.20.0 \
unic-ucd-version-0.9.0 \
unicase-2.6.0 \
unicode-bidi-0.3.13 \
unicode-ident-1.0.9 \
unicode-ident-1.0.12 \
unicode-normalization-0.1.22 \
unicode-segmentation-1.10.1 \
unicode-width-0.1.10 \
unindent-0.1.11 \
unicode-width-0.1.11 \
unindent-0.2.3 \
untrusted-0.7.1 \
url-2.4.0 \
untrusted-0.9.0 \
url-2.4.1 \
utf-8-0.7.6 \
utf8parse-0.2.1 \
utime-0.3.1 \
uuid-1.5.0 \
valuable-0.1.0 \
vcpkg-0.2.15 \
version_check-0.9.4 \
waker-fn-1.1.0 \
walkdir-2.3.3 \
waker-fn-1.1.1 \
walkdir-2.4.0 \
want-0.3.1 \
warp-0.3.5 \
warp-0.3.6 \
wasi-0.9.0+wasi-snapshot-preview1 \
wasi-0.11.0+wasi-snapshot-preview1 \
wasm-bindgen-0.2.87 \
@ -442,47 +476,40 @@ CARGO_CRATES= addr2line-0.20.0 \
wasm-bindgen-macro-0.2.87 \
wasm-bindgen-macro-support-0.2.87 \
wasm-bindgen-shared-0.2.87 \
wasm-streams-0.2.3 \
wasm-streams-0.3.0 \
web-sys-0.3.64 \
webpki-0.22.0 \
webpki-roots-0.22.6 \
which-4.4.0 \
webpki-roots-0.25.2 \
which-4.4.2 \
which-5.0.0 \
winapi-0.3.9 \
winapi-i686-pc-windows-gnu-0.4.0 \
winapi-util-0.1.5 \
winapi-util-0.1.6 \
winapi-x86_64-pc-windows-gnu-0.4.0 \
windows-0.48.0 \
windows-sys-0.42.0 \
windows-sys-0.45.0 \
windows-0.51.1 \
windows-core-0.51.1 \
windows-sys-0.48.0 \
windows-targets-0.42.2 \
windows-targets-0.48.1 \
windows_aarch64_gnullvm-0.42.2 \
windows_aarch64_gnullvm-0.48.0 \
windows_aarch64_msvc-0.42.2 \
windows_aarch64_msvc-0.48.0 \
windows_i686_gnu-0.42.2 \
windows_i686_gnu-0.48.0 \
windows_i686_msvc-0.42.2 \
windows_i686_msvc-0.48.0 \
windows_x86_64_gnu-0.42.2 \
windows_x86_64_gnu-0.48.0 \
windows_x86_64_gnullvm-0.42.2 \
windows_x86_64_gnullvm-0.48.0 \
windows_x86_64_msvc-0.42.2 \
windows_x86_64_msvc-0.48.0 \
winnow-0.4.7 \
windows-targets-0.48.5 \
windows_aarch64_gnullvm-0.48.5 \
windows_aarch64_msvc-0.48.5 \
windows_i686_gnu-0.48.5 \
windows_i686_msvc-0.48.5 \
windows_x86_64_gnu-0.48.5 \
windows_x86_64_gnullvm-0.48.5 \
windows_x86_64_msvc-0.48.5 \
winnow-0.5.17 \
winreg-0.5.1 \
winreg-0.10.1 \
winreg-0.50.0 \
wiremock-0.5.19 \
xattr-0.2.3 \
xattr-1.0.1 \
xml5ever-0.17.0 \
xz2-0.1.7 \
yasna-0.5.2 \
zerocopy-0.7.13 \
zerocopy-derive-0.7.13 \
zip-0.6.6 \
zstd-0.12.3+zstd.1.5.2 \
zstd-safe-6.0.5+zstd.1.5.4 \
zstd-sys-2.0.8+zstd.1.5.5 \
zstd-0.13.0 \
zstd-safe-7.0.0 \
zstd-sys-2.0.9+zstd.1.5.5 \
percent-encoding-iri@git+https://github.com/ankitects/rust-url.git?rev=bb930b8d089f4d30d7d19c12e54e66191de47b88\#bb930b8d089f4d30d7d19c12e54e66191de47b88 \
csv,csv-core@git+https://github.com/ankitects/rust-csv.git?rev=1c9d3aab6f79a7d815c69f925a46a4590c115f90\#1c9d3aab6f79a7d815c69f925a46a4590c115f90 \
fsrs@git+https://github.com/open-spaced-repetition/fsrs-rs.git?rev=725417fe310b74a719e18c2127f64223be1cb669\#725417fe310b74a719e18c2127f64223be1cb669 \
linkcheck@git+https://github.com/ankitects/linkcheck.git?rev=184b2ca50ed39ca43da13f0b830a463861adb9ca\#184b2ca50ed39ca43da13f0b830a463861adb9ca

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,8 @@
Check for NO_BUNDLE and NO_VENV environment variables.
--- build/configure/src/main.rs.orig 2023-08-19 22:41:35 UTC
Disable setup for offline documentation.
--- build/configure/src/main.rs.orig 2023-10-31 21:56:55 UTC
+++ build/configure/src/main.rs
@@ -9,6 +9,8 @@ mod web;
mod rust;
@ -19,7 +21,7 @@ Check for NO_BUNDLE and NO_VENV environment variables.
use rust::build_rust;
use rust::check_minilints;
use rust::check_rust;
@@ -43,13 +46,24 @@ fn main() -> Result<()> {
@@ -45,15 +48,24 @@ fn main() -> Result<()> {
check_proto(build, inputs![glob!["proto/**/*.proto"]])?;
setup_python(build)?;
@ -37,6 +39,8 @@ Check for NO_BUNDLE and NO_VENV environment variables.
build_and_check_web(build)?;
build_and_check_aqt(build)?;
- build_bundle(build)?;
-
- setup_sphix(build)?;
+
+ if env::var("NO_BUNDLE").is_ok() {
+ println!("NO_BUNDLE is set, skipping build of bundles.");

View File

@ -1,9 +1,11 @@
Use the "PythonEnvironmentStub" function to use a native Python environment
instead of Python venv.
--- build/configure/src/python.rs.orig 2023-08-19 22:41:35 UTC
Avoid the use of Python's pip.
--- build/configure/src/python.rs.orig 2023-10-26 01:57:37 UTC
+++ build/configure/src/python.rs
@@ -12,6 +12,7 @@ use ninja_gen::python::PythonEnvironment;
@@ -13,6 +13,7 @@ use ninja_gen::python::PythonEnvironment;
use ninja_gen::inputs;
use ninja_gen::python::python_format;
use ninja_gen::python::PythonEnvironment;
@ -11,16 +13,10 @@ instead of Python venv.
use ninja_gen::python::PythonLint;
use ninja_gen::python::PythonTypecheck;
use ninja_gen::rsync::RsyncFiles;
@@ -74,6 +75,25 @@ pub fn setup_venv(build: &mut Build) -> Result<()> {
base_requirements_txt: inputs!["python/requirements.base.txt"],
requirements_txt: inputs![reqs_qt5, "python/requirements.qt5_14.txt"],
extra_binary_exports: &[],
+ },
+ )?;
+
+ Ok(())
+}
+
@@ -81,6 +82,25 @@ pub fn setup_venv(build: &mut Build) -> Result<()> {
Ok(())
}
+pub fn setup_venv_stub(build: &mut Build) -> Result<()> {
+ build.add_action(
+ "pyenv",
@ -34,6 +30,20 @@ instead of Python venv.
+ "pytest", // dito
+ "protoc-gen-mypy",
+ ],
},
)?;
+ },
+ )?;
+
+ Ok(())
+}
+
pub struct GenPythonProto {
pub proto_files: BuildInput,
}
@@ -254,7 +274,6 @@ impl BuildAction for Sphinx {
fn files(&mut self, build: &mut impl FilesHandle) {
build.add_inputs("python", inputs![":pyenv:bin"]);
- build.add_inputs("pip", inputs![":pyenv:pip"]);
build.add_inputs("", &self.deps);
build.add_output_stamp("python/sphinx/stamp");
}

View File

@ -1,7 +1,7 @@
Check for OFFLINE_BUILD and OFFLINE_YARNCACHE environment variables to run yarn
in offline mode with a custom offline cache.
--- build/runner/src/yarn.rs.orig 2023-08-19 22:41:35 UTC
--- build/runner/src/yarn.rs.orig 2023-09-24 06:42:26 UTC
+++ build/runner/src/yarn.rs
@@ -1,6 +1,8 @@
// Copyright: Ankitects Pty Ltd and contributors
@ -16,14 +16,14 @@ in offline mode with a custom offline cache.
pub fn setup_yarn(args: YarnArgs) {
link_node_modules();
- run_silent(Command::new(&args.yarn_bin).arg("install"));
- run_command(Command::new(&args.yarn_bin).arg("install"));
+ if env::var("OFFLINE_BUILD").is_ok() && env::var("OFFLINE_YARNCACHE").is_ok() {
+ println!("OFFLINE_BUILD and OFFLINE_YARNCACHE are set");
+ println!("Running yarn with --offline, --cache-folder and --ignore-scripts.");
+ let offline_yarn_cache = env!("OFFLINE_YARNCACHE");
+ run_silent(Command::new(&args.yarn_bin).arg("install").arg("--offline").arg("--cache-folder").arg(offline_yarn_cache).arg("--ignore-scripts"));
+ run_command(Command::new(&args.yarn_bin).arg("install").arg("--offline").arg("--cache-folder").arg(offline_yarn_cache).arg("--ignore-scripts"));
+ } else {
+ run_silent(Command::new(&args.yarn_bin).arg("install"));
+ run_command(Command::new(&args.yarn_bin).arg("install"));
+ }
std::fs::write(args.stamp, b"").unwrap();

View File

@ -186,12 +186,15 @@ man/man1/anki.1.gz
%%DATADIR%%/_aqt/data/web/pages/image-occlusion.css
%%DATADIR%%/_aqt/data/web/pages/image-occlusion.html
%%DATADIR%%/_aqt/data/web/pages/image-occlusion.js
%%DATADIR%%/_aqt/data/web/pages/import-anki-package.css
%%DATADIR%%/_aqt/data/web/pages/import-anki-package.html
%%DATADIR%%/_aqt/data/web/pages/import-anki-package.js
%%DATADIR%%/_aqt/data/web/pages/import-csv.css
%%DATADIR%%/_aqt/data/web/pages/import-csv.html
%%DATADIR%%/_aqt/data/web/pages/import-csv.js
%%DATADIR%%/_aqt/data/web/pages/import-log.css
%%DATADIR%%/_aqt/data/web/pages/import-log.html
%%DATADIR%%/_aqt/data/web/pages/import-log.js
%%DATADIR%%/_aqt/data/web/pages/import-page.css
%%DATADIR%%/_aqt/data/web/pages/import-page.html
%%DATADIR%%/_aqt/data/web/pages/import-page.js
%%DATADIR%%/_aqt/forms/about_qt5.py
%%DATADIR%%/_aqt/forms/about_qt6.py
%%DATADIR%%/_aqt/forms/addcards_qt5.py
@ -234,8 +237,6 @@ man/man1/anki.1.gz
%%DATADIR%%/_aqt/forms/exporting_qt6.py
%%DATADIR%%/_aqt/forms/fields_qt5.py
%%DATADIR%%/_aqt/forms/fields_qt6.py
%%DATADIR%%/_aqt/forms/fields_web_qt5.py
%%DATADIR%%/_aqt/forms/fields_web_qt6.py
%%DATADIR%%/_aqt/forms/filtered_deck_qt5.py
%%DATADIR%%/_aqt/forms/filtered_deck_qt6.py
%%DATADIR%%/_aqt/forms/finddupes_qt5.py
@ -292,6 +293,8 @@ man/man1/anki.1.gz
%%DATADIR%%/anki/_vendor/stringcase.py
%%DATADIR%%/anki/ankidroid_pb2.py
%%DATADIR%%/anki/ankidroid_pb2.pyi
%%DATADIR%%/anki/ankiweb_pb2.py
%%DATADIR%%/anki/ankiweb_pb2.pyi
%%DATADIR%%/anki/backend_pb2.py
%%DATADIR%%/anki/backend_pb2.pyi
%%DATADIR%%/anki/browser.py
@ -359,9 +362,8 @@ man/man1/anki.1.gz
%%DATADIR%%/anki/rsbackend.py
%%DATADIR%%/anki/scheduler/__init__.py
%%DATADIR%%/anki/scheduler/base.py
%%DATADIR%%/anki/scheduler/dummy.py
%%DATADIR%%/anki/scheduler/legacy.py
%%DATADIR%%/anki/scheduler/v1.py
%%DATADIR%%/anki/scheduler/v2.py
%%DATADIR%%/anki/scheduler/v3.py
%%DATADIR%%/anki/scheduler_pb2.py
%%DATADIR%%/anki/scheduler_pb2.pyi
@ -447,7 +449,6 @@ man/man1/anki.1.gz
%%DATADIR%%/aqt/forms/emptycards.py
%%DATADIR%%/aqt/forms/exporting.py
%%DATADIR%%/aqt/forms/fields.py
%%DATADIR%%/aqt/forms/fields_web.py
%%DATADIR%%/aqt/forms/filtered_deck.py
%%DATADIR%%/aqt/forms/finddupes.py
%%DATADIR%%/aqt/forms/findreplace.py
@ -473,8 +474,7 @@ man/man1/anki.1.gz
%%DATADIR%%/aqt/gui_hooks.py
%%DATADIR%%/aqt/import_export/__init__.py
%%DATADIR%%/aqt/import_export/exporting.py
%%DATADIR%%/aqt/import_export/import_csv_dialog.py
%%DATADIR%%/aqt/import_export/import_log_dialog.py
%%DATADIR%%/aqt/import_export/import_dialog.py
%%DATADIR%%/aqt/import_export/importing.py
%%DATADIR%%/aqt/importing.py
%%DATADIR%%/aqt/legacy.py