Enable packages that use host-system-python3 to make use of the
pycparser module as well.

Signed-off-by: Philipp Zabel <[email protected]>
---
 rules/host-system-python3-pycparser.in   |  7 +++++++
 rules/host-system-python3-pycparser.make | 20 ++++++++++++++++++++
 2 files changed, 27 insertions(+)
 create mode 100644 rules/host-system-python3-pycparser.in
 create mode 100644 rules/host-system-python3-pycparser.make

diff --git a/rules/host-system-python3-pycparser.in 
b/rules/host-system-python3-pycparser.in
new file mode 100644
index 000000000000..66a18c52b82d
--- /dev/null
+++ b/rules/host-system-python3-pycparser.in
@@ -0,0 +1,7 @@
+## SECTION=hosttools_noprompt
+
+config HOST_SYSTEM_PYTHON3_PYCPARSER
+       tristate
+       default y if ALLYES
+       select HOST_SYSTEM_PYTHON3
+       select HOST_SYSTEM_PYTHON3_SETUPTOOLS
diff --git a/rules/host-system-python3-pycparser.make 
b/rules/host-system-python3-pycparser.make
new file mode 100644
index 000000000000..1280d05023b3
--- /dev/null
+++ b/rules/host-system-python3-pycparser.make
@@ -0,0 +1,20 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2024 by Philipp Zabel <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_SYSTEM_PYTHON3_PYCPARSER) += 
host-system-python3-pycparser
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_SYSTEM_PYTHON3_PYCPARSER_CONF_TOOL        := python3
+
+# vim: syntax=make
-- 
2.39.2


Reply via email to