[Buildroot] [PATCH v4 1/3] package/itstool: new host-package

Yegor Yefremov yegorslists at googlemail.com
Thu Apr 25 08:15:30 UTC 2024


Hi Adam, Yann,

On Tue, Dec 19, 2023 at 6:05 PM Adam Duskett
<adam.duskett at amarulasolutions.com> wrote:
>
> Translate XML with PO files using W3C Internationalization Tag Set rules.
> This is needed for the zenity package.
>
> Signed-off-by: Adam Duskett <adam.duskett at amarulasolutions.com>

Reviewed-by: Yegor Yefremov <yegorslists at googlemail.com>

Yann, are there any TODOs left or can this patch be rebased and applied?

Yegor

> ---
> v3 -> v4:
>   - Add a Config.in.host file and select host-python3 [Yann]
>   - Add a dependency on host-libxml2 [Yann]
>   - Add a comment as to why autoreconf = yes is set. [Yann]
>  DEVELOPERS                     |  1 +
>  package/Config.in.host         |  1 +
>  package/itstool/Config.in.host |  8 ++++++++
>  package/itstool/itstool.hash   |  3 +++
>  package/itstool/itstool.mk     | 15 +++++++++++++++
>  5 files changed, 28 insertions(+)
>  create mode 100644 package/itstool/Config.in.host
>  create mode 100644 package/itstool/itstool.hash
>  create mode 100644 package/itstool/itstool.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 311dcd9504..519ad2984e 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -37,6 +37,7 @@ F:    package/flutter-engine/
>  F:     package/flutter-gallery/
>  F:     package/flutter-pi/
>  F:     package/flutter-sdk-bin/
> +F:     package/itstool/
>  F:     package/python-kmod/
>  F:     package/python-versioneer/
>  F:     support/testing/tests/package/test_firewalld.py
> diff --git a/package/Config.in.host b/package/Config.in.host
> index c80842c33a..6bc1857df2 100644
> --- a/package/Config.in.host
> +++ b/package/Config.in.host
> @@ -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"
> diff --git a/package/itstool/Config.in.host b/package/itstool/Config.in.host
> new file mode 100644
> index 0000000000..52b17a762f
> --- /dev/null
> +++ b/package/itstool/Config.in.host
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_HOST_ITSTOOL
> +       bool "host itstool"
> +       select BR2_PACKAGE_HOST_PYTHON3
> +       help
> +         Translate XML with PO files using W3C Internationalization
> +         Tag Set rules
> +
> +         https://github.com/itstool/itstool
> diff --git a/package/itstool/itstool.hash b/package/itstool/itstool.hash
> new file mode 100644
> index 0000000000..937185ec2b
> --- /dev/null
> +++ b/package/itstool/itstool.hash
> @@ -0,0 +1,3 @@
> +# Locally computed
> +sha256  fba78a37dc3535e4686c7f57407b97d03c676e3a57beac5fb2315162b0cc3176  itstool-2.0.7.tar.gz
> +sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  COPYING.GPL3
> diff --git a/package/itstool/itstool.mk b/package/itstool/itstool.mk
> new file mode 100644
> index 0000000000..94337e229c
> --- /dev/null
> +++ b/package/itstool/itstool.mk
> @@ -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.GPL3
> +# Straight our of git, no ./configure
> +HOST_ITSTOOL_AUTORECONF = YES
> +HOST_ITSTOOL_DEPENDENCIES = host-python3 host-libxml2
> +
> +$(eval $(host-autotools-package))
> --
> 2.43.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot



More information about the buildroot mailing list