public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Yi Zhao <yi.zhao@windriver.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 1/2 v3] blueprint-compiler: add recipe
Date: Thu, 22 Jan 2026 09:58:54 +0800	[thread overview]
Message-ID: <20260122015855.2022014-1-yi.zhao@windriver.com> (raw)

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 <liuyd.fnst@fujitsu.com>
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
---
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 <raj.khem@gmail.com>"
 RECIPE_MAINTAINER:pn-binutils-crosssdk-${SDK_SYS} = "Khem Raj <raj.khem@gmail.com>"
 RECIPE_MAINTAINER:pn-bison = "Chen Qi <Qi.Chen@windriver.com>"
 RECIPE_MAINTAINER:pn-blktrace = "Unassigned <unassigned@yoctoproject.org>"
+RECIPE_MAINTAINER:pn-blueprint-compiler = "Liu Yiding <liuyd.fnst@fujitsu.com>"
 RECIPE_MAINTAINER:pn-bluez5 = "Unassigned <unassigned@yoctoproject.org>"
 RECIPE_MAINTAINER:pn-bmaptool = "Trevor Woerner <twoerner@gmail.com>"
 RECIPE_MAINTAINER:pn-boost = "Unassigned <unassigned@yoctoproject.org>"
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 <yi.zhao@windriver.com>
+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 <yi.zhao@windriver.com>
+---
+ 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



             reply	other threads:[~2026-01-22  1:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-22  1:58 Yi Zhao [this message]
2026-01-22  1:58 ` [PATCH 2/2 v3] epiphany: upgrade 48.5 -> 49.2 Yi Zhao
2026-01-26  9:59 ` [OE-core] [PATCH 1/2 v3] blueprint-compiler: add recipe Alexander Kanavin
2026-01-27 13:40   ` Yi Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260122015855.2022014-1-yi.zhao@windriver.com \
    --to=yi.zhao@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox