blob: 9b5a46db38b0a0b45fbfac6056bce6547a8ca028 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $NetBSD: options.mk,v 1.6 2022/07/17 09:51:33 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.mercurial
# 5.6.1 needs some "*-pre" crates that are not available
# then it fails with a missing Cargo.toml file error
PKG_SUPPORTED_OPTIONS= #rust
PKG_SUGGESTED_OPTIONS= #rust
.include "../../mk/bsd.options.mk"
#PLIST_VARS+= rust
.if !empty(PKG_OPTIONS:Mrust)
#PLIST.rust= yes
PYSETUPARGS+= --rust
# for python3-sys
MAKE_ENV+= PYTHON_SYS_EXECUTABLE=${PYTHONBIN}
# When updating:
# cd ${WRKSRC}
# cat $(find .. -name Cargo.lock) > Cargo.lock
# cd -
# make show-cargo-depends | sort -u
#
# After updating, check:
# hg debuginstall | grep -i rust
# to validate rust is in use
#
# Two steps of tests work, but then fail with
# mercurial-5.5/rust/target/debug/deps/rusthg-a55fe645bc4ab58d: Shared object "libpython3.7.so.1.0" not found
.include "cargo-depends.mk"
RUST_REQ+= 1.34.2
.include "../../lang/rust/cargo.mk"
.else
TEST_MAKE_FLAGS+= CARGO=/dev/null
.endif
|