From 20a0fa88a614989a11d5dd5544419a48daf56269 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Mon, 1 Jun 2026 02:25:14 +0700 Subject: [PATCH] Port gobject introspection --- .../gnome/gobject-introspection/recipe.toml | 20 ++++++++++++++----- src/cook/script.rs | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/recipes/wip/libs/gnome/gobject-introspection/recipe.toml b/recipes/wip/libs/gnome/gobject-introspection/recipe.toml index b8aeed6b2..43e940465 100644 --- a/recipes/wip/libs/gnome/gobject-introspection/recipe.toml +++ b/recipes/wip/libs/gnome/gobject-introspection/recipe.toml @@ -5,14 +5,24 @@ blake3 = "e01a810629b11b2fa415ba47d2df3ba521286e9933f6c2b364e959c26401eb96" [build] template = "custom" dependencies = [ - "cairo", - "glib", + "target:glib", "libffi", - "pcre2", +] +dev-dependencies = [ "python312", - "zlib", + "python312.dev", + "host:python312", + "host:python3-setuptools", ] script = """ DYNAMIC_INIT -cookbook_meson -Dpython="${COOKBOOK_SYSROOT}/usr/bin/python3.12" +cookbook_meson -Dpython="python3.12" \ + -Dbuild_introspection_data=false +sed -i "s|${COOKBOOK_TOOLCHAIN}||g" ${COOKBOOK_STAGE}/usr/bin/g-ir-annotation-tool +sed -i "s|${COOKBOOK_TOOLCHAIN}||g" ${COOKBOOK_STAGE}/usr/bin/g-ir-scanner """ + +[package] +dependencies = [ + "python312", +] diff --git a/src/cook/script.rs b/src/cook/script.rs index 8db592156..b40d39ae3 100644 --- a/src/cook/script.rs +++ b/src/cook/script.rs @@ -354,7 +354,7 @@ function cookbook_python { OS=$(echo "${TARGET}" | cut -d - -f3-4) export PYTHONPYCACHEPREFIX="${COOKBOOK_BUILD}" _PYTHON_HOST_PLATFORM="$OS-$ARCH" "${COOKBOOK_PYTHON}" -m pip install --prefix="${COOKBOOK_STAGE}/usr" "${COOKBOOK_SOURCE}" \ - --ignore-installed --no-index --no-build-isolation "$@" + --ignore-installed --no-index "$@" rsync -av "${COOKBOOK_BUILD}/${COOKBOOK_STAGE}/usr/" "${COOKBOOK_STAGE}/usr" } "#;