Blueprint-compiler is a markup language and compiler for GTK 4 user interfaces.
Move it from meta-openembedded to openembedded-core as it is required by epiphany 49.2. The original author Liu Yiding, is willing to continue maintaining the recipe. Add him as maintainer for this. CC: Liu Yiding <[email protected]> Signed-off-by: Yi Zhao <[email protected]> --- v2 changes: Add tag=${PV} in SRC_URI v3 changes: Fix python site path when enable multilib meta/conf/distro/include/maintainers.inc | 1 + ...1-Make-python-site-path-configurable.patch | 62 +++++++++++++++++++ .../blueprint-compiler_0.18.0.bb | 21 +++++++ 3 files changed, 84 insertions(+) create mode 100644 meta/recipes-gnome/blueprint-compiler/blueprint-compiler/0001-Make-python-site-path-configurable.patch create mode 100644 meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.18.0.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index e830648945..b231daf485 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -71,6 +71,7 @@ RECIPE_MAINTAINER:pn-binutils-testsuite = "Khem Raj <[email protected]>" RECIPE_MAINTAINER:pn-binutils-crosssdk-${SDK_SYS} = "Khem Raj <[email protected]>" RECIPE_MAINTAINER:pn-bison = "Chen Qi <[email protected]>" RECIPE_MAINTAINER:pn-blktrace = "Unassigned <[email protected]>" +RECIPE_MAINTAINER:pn-blueprint-compiler = "Liu Yiding <[email protected]>" RECIPE_MAINTAINER:pn-bluez5 = "Unassigned <[email protected]>" RECIPE_MAINTAINER:pn-bmaptool = "Trevor Woerner <[email protected]>" RECIPE_MAINTAINER:pn-boost = "Unassigned <[email protected]>" diff --git a/meta/recipes-gnome/blueprint-compiler/blueprint-compiler/0001-Make-python-site-path-configurable.patch b/meta/recipes-gnome/blueprint-compiler/blueprint-compiler/0001-Make-python-site-path-configurable.patch new file mode 100644 index 0000000000..19113457cd --- /dev/null +++ b/meta/recipes-gnome/blueprint-compiler/blueprint-compiler/0001-Make-python-site-path-configurable.patch @@ -0,0 +1,62 @@ +From 3339e2e8c6324fde73a0c5b292fc9f2e5c86931d Mon Sep 17 00:00:00 2001 +From: Yi Zhao <[email protected]> +Date: Wed, 21 Jan 2026 20:45:30 +0800 +Subject: [PATCH] Make python site path configurable + +By making the python site path configurable, we can set the correct +installation directory when enabling multilib. + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Yi Zhao <[email protected]> +--- + docs/meson.build | 4 ++-- + meson.build | 4 ++-- + meson_options.txt | 1 + + 3 files changed, 5 insertions(+), 4 deletions(-) + +diff --git a/docs/meson.build b/docs/meson.build +index d9ad736..4bf2a9c 100644 +--- a/docs/meson.build ++++ b/docs/meson.build +@@ -15,5 +15,5 @@ custom_target('reference_docs.json', + command: [meson.current_source_dir() / 'collect-sections.py', '@OUTPUT@'], + build_always_stale: true, + install: true, +- install_dir: py.get_install_dir() / 'blueprintcompiler', +-) +\ No newline at end of file ++ install_dir: get_option('python_site_dir') / 'blueprintcompiler', ++) +diff --git a/meson.build b/meson.build +index 405ed10..2a8d324 100644 +--- a/meson.build ++++ b/meson.build +@@ -25,7 +25,7 @@ config = configuration_data({ + if meson.is_subproject() + config.set('MODULE_PATH', meson.current_source_dir()) + else +- config.set('MODULE_PATH', py.get_install_dir()) ++ config.set('MODULE_PATH', get_option('python_site_dir')) + endif + + blueprint_compiler = configure_file( +@@ -39,7 +39,7 @@ blueprint_compiler = configure_file( + if meson.is_subproject() + meson.override_find_program('blueprint-compiler', blueprint_compiler) + else +- install_subdir('blueprintcompiler', install_dir: py.get_install_dir()) ++ install_subdir('blueprintcompiler', install_dir: get_option('python_site_dir')) + endif + + subdir('tests') +diff --git a/meson_options.txt b/meson_options.txt +index c3c5661..5e71bfa 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -1 +1,2 @@ + option('docs', type: 'boolean', value: false) ++option('python_site_dir', type: 'string', value: '') +-- +2.34.1 + diff --git a/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.18.0.bb b/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.18.0.bb new file mode 100644 index 0000000000..a61db3c4e2 --- /dev/null +++ b/meta/recipes-gnome/blueprint-compiler/blueprint-compiler_0.18.0.bb @@ -0,0 +1,21 @@ +SUMMARY = "A markup language for GTK user interface files." +HOMEPAGE = "https://gitlab.gnome.org/GNOME/blueprint-compiler" +LICENSE = "LGPL-3.0-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=3000208d539ec061b899bce1d9ce9404" + +SRC_URI = "git://gitlab.gnome.org/GNOME/blueprint-compiler;protocol=https;branch=main;tag=${PV} \ + file://0001-Make-python-site-path-configurable.patch \ + " + +SRCREV = "07c9c9df9cd1b6b4454ecba21ee58211e9144a4b" + +inherit meson pkgconfig + +EXTRA_OEMESON = "-Dpython_site_dir=${PYTHON_SITEPACKAGES_DIR}" + +PACKAGES += "${PN}-python" + +FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}" +RDEPENDS:${PN}-python = "python3-pygobject" + +BBCLASSEXTEND = "native" -- 2.34.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#229829): https://lists.openembedded.org/g/openembedded-core/message/229829 Mute This Topic: https://lists.openembedded.org/mt/117393399/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
