mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-29 16:18:44 +08:00
Switch rustpython to toml recipe
This commit is contained in:
parent
2a83ae3ad9
commit
1581974ca6
@ -1,10 +0,0 @@
|
||||
GIT=https://github.com/RustPython/RustPython
|
||||
BRANCH=redox-release
|
||||
CARGOFLAGS=--no-default-features
|
||||
export BUILDTIME_RUSTPYTHONPATH=/lib/rustpython/
|
||||
|
||||
function recipe_stage() {
|
||||
dest="$(realpath "$1")"
|
||||
mkdir -pv "$dest/lib/"
|
||||
cp -r Lib "$dest/lib/rustpython"
|
||||
}
|
||||
22
recipes/rustpython/recipe.toml
Normal file
22
recipes/rustpython/recipe.toml
Normal file
@ -0,0 +1,22 @@
|
||||
[source]
|
||||
git = "https://github.com/RustPython/RustPython"
|
||||
branch = "redox-release"
|
||||
|
||||
[build]
|
||||
dependencies = ["openssl", "zlib"]
|
||||
template = "custom"
|
||||
script = """
|
||||
(cd "${COOKBOOK_SOURCE}" && bash scripts/redox/uncomment-cargo.sh)
|
||||
export BUILDTIME_RUSTPYTHONPATH=/lib/rustpython
|
||||
export OPENSSL_DIR="${COOKBOOK_SYSROOT}"
|
||||
export ZLIB_STATIC=1
|
||||
COOKBOOK_CARGO_FLAGS+=(--features ssl)
|
||||
cookbook_cargo
|
||||
mkdir -p "${COOKBOOK_STAGE}/lib"
|
||||
rsync -aE \
|
||||
--exclude 'test/' \
|
||||
--exclude '__pycache__/' \
|
||||
--exclude '*.pyc' \
|
||||
--exclude '/README.md' \
|
||||
"${COOKBOOK_SOURCE}"/Lib/ "${COOKBOOK_STAGE}/lib/rustpython"
|
||||
"""
|
||||
Loading…
Reference in New Issue
Block a user