mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 06:14:18 +08:00
Merge branch 'rustpython-toml-recipe' into 'master'
Switch rustpython to toml recipe See merge request redox-os/cookbook!286
This commit is contained in:
commit
a398756aa4
@ -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