Skip to contentSkip to conversation

package/python-fonttools: add host-python package

PATCH New Alexandre Ondet 1 participant 1 message May 4

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/python-fonttools: add host-python package

Some setuptools-based packages (e.g. fpdf2) invoke fonttools CLI tools such as pyftsubset during the build. Register the host variant so host-python-fonttools can be selected as a build dependency.

HOST_PYTHON_FONTTOOLS_* mirror the existing Cython-enabled target recipe.

---
 package/Config.in.host                       | 1 +
 package/python-fonttools/Config.in.host      | 7 +++++++
 package/python-fonttools/python-fonttools.mk | 3 +++
 3 files changed, 11 insertions(+)
 create mode 100644 package/python-fonttools/Config.in.host
package/Config.in.host +1 -0
index bb6732a639..4668c2ad42 100644
@@ -88,6 +88,7 @@ menu "Host utilities"
 	source "package/pru-software-support/Config.in.host"
 	source "package/pwgen/Config.in.host"
 	source "package/python-cython/Config.in.host"
+	source "package/python-fonttools/Config.in.host"
 	source "package/python-greenlet/Config.in.host"
 	source "package/python-iniparse/Config.in.host"
 	source "package/python-kflash/Config.in.host"
package/python-fonttools/Config.in.host new file +7 -0
new file mode 100644
index 0000000000..5263963b79
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_HOST_PYTHON_FONTTOOLS
+	bool "host python-fonttools"
+	help
+	  Tools to manipulate font files (host). Provides CLI utilities such as
+	  pyftsubset used by some Python packages at build time.
+
+	  https://github.com/fonttools/fonttools
package/python-fonttools/python-fonttools.mk +3 -0
index 1eb8224197..9e3a53d871 100644
@@ -12,5 +12,8 @@ PYTHON_FONTTOOLS_LICENSE = MIT
 PYTHON_FONTTOOLS_LICENSE_FILES = LICENSE
 PYTHON_FONTTOOLS_DEPENDENCIES = host-python-cython
 PYTHON_FONTTOOLS_ENV = FONTTOOLS_WITH_CYTHON=1
+HOST_PYTHON_FONTTOOLS_DEPENDENCIES = host-python-cython
+HOST_PYTHON_FONTTOOLS_ENV = FONTTOOLS_WITH_CYTHON=1
 
 $(eval $(python-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.53.0.windows.2

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot