Add, fix, improve more recipes and convert rust-cairo demos to TOML

This commit is contained in:
Ribbon 2026-07-15 16:26:50 -03:00
parent aa7d45676f
commit 78733081e6
12 changed files with 57 additions and 59 deletions

View File

@ -1,4 +1,4 @@
#TODO glutin crate error
#TODO update redox_syscall crate version
[source]
git = "https://github.com/pistondevelopers/piston-examples"
shallow_clone = true

View File

@ -1,4 +1,4 @@
#TODO x11rb, rustix and webbrowser crates error
#TODO rfd crates error
[source]
git = "https://github.com/dimforge/rapier"
shallow_clone = true

View File

@ -4,10 +4,4 @@ git = "https://github.com/nidhoggfgg/rsille"
shallow_clone = true
[build]
template = "cargo"
cargoflags = ["--features=img"]
cargoexamples = [
"anime-mix",
"obj-mix",
"cube",
"cube-colorful",
]
cargopath = "examples/rsille-showcase"

View File

@ -1,18 +0,0 @@
GIT=https://gitlab.redox-os.org/redox-os/rust-cairo-demo.git
BUILD_DEPENDS=(cairo expat fontconfig freetype2 libpng pixman zlib)
function recipe_build {
sysroot="$(realpath ../sysroot)"
cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
-- \
-L "${sysroot}/lib" \
-l cairo \
-l fontconfig \
-l expat \
-l pixman-1 \
-l freetype \
-l png \
-l z
skip=1
}

View File

@ -0,0 +1,15 @@
#TODO compile and test
[source]
git = "https://gitlab.redox-os.org/redox-os/rust-cairo-demo"
shallow_clone = true
[build]
template = "cargo"
dependencies = [
"cairo",
"expat",
"fontconfig",
"freetype2",
"libpng",
"pixman",
"zlib",
]

View File

@ -1,25 +0,0 @@
GIT=https://gitlab.redox-os.org/redox-os/rust-cairo.git
BUILD_DEPENDS=(cairo expat fontconfig freetype2 libpng pixman zlib)
CARGOFLAGS="--example gui"
function recipe_build {
sysroot="$(realpath ../sysroot)"
cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
-- \
-L "${sysroot}/lib" \
-l cairo \
-l fontconfig \
-l expat \
-l pixman-1 \
-l freetype \
-l png \
-l z
skip=1
}
function recipe_stage {
dest="$(realpath $1)"
mkdir -pv "$dest/bin"
cp -v "target/${TARGET}/release/examples/gui" "$dest/bin/rust-cairo"
skip=1
}

View File

@ -0,0 +1,16 @@
#TODO compile and test
[source]
git = "https://gitlab.redox-os.org/redox-os/rust-cairo"
shallow_clone = true
[build]
template = "cargo"
cargoexamples = ["gui"]
dependencies = [
"cairo",
"expat",
"fontconfig",
"freetype2",
"libpng",
"pixman",
"zlib",
]

View File

@ -0,0 +1,10 @@
#TODO add script for gnu make: https://github.com/cli/cli/blob/trunk/docs/install_source.md
[source]
git = "https://github.com/cli/cli"
rev = "v2.96.0"
shallow_clone = true
[build]
template = "custom"
dependencies = [
"host:go",
]

View File

@ -1,6 +1,6 @@
#TODO missing script for scons: https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_linuxbsd.html
#TODO discover minimum dependencies from scons log
[source]
tar = "https://github.com/godotengine/godot/releases/download/4.5.1-stable/godot-4.5.1-stable.tar.xz"
tar = "https://github.com/godotengine/godot/releases/download/4.7.1-stable/godot-4.7.1-stable.tar.xz"
[build]
template = "custom"

View File

@ -1,6 +0,0 @@
#TODO missing script for scons: https://docs.redotengine.org/en/stable/contributing/development/compiling/compiling_for_linuxbsd
#TODO discover minimum dependencies from scons log
[source]
tar = "https://github.com/Redot-Engine/redot-engine/releases/download/redot-4.3.1-stable/Redot-4.3.1-stable.tar.xz"
[build]
template = "custom"

View File

@ -0,0 +1,6 @@
#TODO compile and test
[source]
git = "https://github.com/4383/svguru"
shallow_clone = true
[build]
template = "cargo"

View File

@ -0,0 +1,6 @@
#TODO compile and test
[source]
git = "https://github.com/statusfailed/svgtail"
shallow_clone = true
[build]
template = "cargo"