Skip to contentSkip to conversation

package/itstool: new host package

PATCH In review Takumi Takahashi 2 participants 2 messages Oct 1, 2023 – Aug 6, 2024

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/itstool: new host package

ITS Tool allows you to translate your XML documents with PO files, using rules from the W3C Internationalization Tag Set (ITS) to determine what to translate and how to separate it into PO file messages.

- This package is primarily used by documentation tools such as gtk-doc
- After this patch is merged, a patch to add gtk-doc will be submitted
- This package requires python bindings for libxml2
- This change has already been merged

See below for libxml2 Python bindings:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

---
Changes v1 -> v2:
- add entry to DEVELOPERS
- add entry to package/Config.in.host
- add file to package/itstool/Config.in.host
- change commit log messages

---
 DEVELOPERS                     |  3 +++
 package/Config.in.host         |  1 +
 package/itstool/Config.in.host | 11 +++++++++++
 package/itstool/itstool.hash   |  4 ++++
 package/itstool/itstool.mk     | 15 +++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/itstool/Config.in.host
 create mode 100644 package/itstool/itstool.hash
 create mode 100644 package/itstool/itstool.mk
DEVELOPERS +3 -0
index bc4027932c..688d3ebce2 100644
@@ -2821,6 +2821,9 @@ F:	package/reproc/
 F:	package/termcolor/
 F:	package/tl-expected/
 
+N:	Takumi Takahashi <[email protected]>
+F:	package/itstool/
+
 N:	Tan En De <[email protected]>
 F:	package/libkcapi/
 
package/Config.in.host +1 -0
index c80842c33a..6bc1857df2 100644
@@ -51,6 +51,7 @@ menu "Host utilities"
 	source "package/imagemagick/Config.in.host"
 	source "package/imx-mkimage/Config.in.host"
 	source "package/imx-usb-loader/Config.in.host"
+	source "package/itstool/Config.in.host"
 	source "package/jh71xx-tools/Config.in.host"
 	source "package/jq/Config.in.host"
 	source "package/jsmin/Config.in.host"
package/itstool/Config.in.host new file +11 -0
new file mode 100644
index 0000000000..c64bcddc6a
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_HOST_ITSTOOL
+	bool "host itstool"
+	select BR2_PACKAGE_HOST_PYTHON3
+	select BR2_PACKAGE_HOST_LIBXML2
+	help
+	  ITS Tool allows you to translate your XML documents with
+	  PO files, using rules from the W3C Internationalization
+	  Tag Set (ITS) to determine what to translate and how to
+	  separate it into PO file messages.
+
+	  https://itstool.org/
package/itstool/itstool.hash new file +4 -0
new file mode 100644
index 0000000000..7bd533c0d2
@@ -0,0 +1,4 @@
+# Locally computed
+sha256  fba78a37dc3535e4686c7f57407b97d03c676e3a57beac5fb2315162b0cc3176  itstool-2.0.7.tar.gz
+sha256  f907bf6e8a3f4911af6904597c9dcb6b415ab2facf8d403fa3c5afa1f533ab90  COPYING
+sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  COPYING.GPL3
package/itstool/itstool.mk new file +15 -0
new file mode 100644
index 0000000000..3b738c2f01
@@ -0,0 +1,15 @@
+################################################################################
+#
+# itstool
+#
+################################################################################
+
+ITSTOOL_VERSION = 2.0.7
+ITSTOOL_SITE = $(call github,itstool,itstool,$(ITSTOOL_VERSION))
+ITSTOOL_LICENSE = GPL-3.0+
+ITSTOOL_LICENSE_FILES = COPYING COPYING.GPL3
+HOST_ITSTOOL_DEPENDENCIES = host-python3 host-libxml2
+
+ITSTOOL_AUTORECONF = YES
+
+$(eval $(host-autotools-package))
Signature · 6 lines
2.42.0

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

Hello Takumi,

Quoted 10 lines · On Sun, 1 Oct 2023 13:35:05 +0900 Takumi Takahashi <[email protected]>…

ITS Tool allows you to translate your XML documents with PO files, using rules from the W3C Internationalization Tag Set (ITS) to determine what to translate and how to separate it into PO file messages.

- This package is primarily used by documentation tools such as gtk-doc
- After this patch is merged, a patch to add gtk-doc will be submitted
- This package requires python bindings for libxml2
- This change has already been merged

Quoted 4 lines

See below for libxml2 Python bindings:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/

I have a somewhat similar comment as for the patch adding
host-python-pygments: please make this host-itstool patch part of a larger series that also adds lightdm.

Also, please note that Adam Duskett had also pushed for integrating host-itstool, but he unfortunately gave up:

https://patchwork.ozlabs.org/project/buildroot/list/?series=387214&state=* (version 3)
https://patchwork.ozlabs.org/project/buildroot/list/?series=387411&state=%2A&archive=both (version 4)

This was not meant to be used for lightdm, but for other packages.

Could you therefore prepare a complete series that includes all necessary patches for lightdm, and lightdm itself?

Thanks a lot!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot