This users to deselect parts not needed, e.g. if you only need envsubst tool.
Fixed runtime issue with xgettext missing libtextstyle. Signed-off-by: Bruno Thomsen <[email protected]> --- rules/gettext.in | 13 +++++++++++++ rules/gettext.make | 7 ++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/rules/gettext.in b/rules/gettext.in index e2d3c042a..b7399e0e9 100644 --- a/rules/gettext.in +++ b/rules/gettext.in @@ -25,4 +25,17 @@ config GETTEXT_ENVSUBST help Substitutes environment variables in shell format strings +config GETTEXT_TOOLS + bool + prompt "gettext/xgettext cli" + select GETTEXT_LIBS + help + Command line tools for translations. + +config GETTEXT_LIBS + bool + prompt "gettext libs" + help + System libraries for translations. + endif diff --git a/rules/gettext.make b/rules/gettext.make index f4360aa2a..83638543e 100644 --- a/rules/gettext.make +++ b/rules/gettext.make @@ -76,13 +76,18 @@ ifdef PTXCONF_GETTEXT_ENVSUBST @$(call install_copy, gettext, 0, 0, 0755, -, /usr/bin/envsubst) endif +ifdef PTXCONF_GETTEXT_TOOLS @$(call install_copy, gettext, 0, 0, 0755, -, /usr/bin/xgettext) @$(call install_copy, gettext, 0, 0, 0755, -, /usr/bin/gettext) +endif +ifdef PTXCONF_GETTEXT_LIBS @$(call install_lib, gettext, 0, 0, 0644, libgettextlib-$(GETTEXT_VERSION)) @$(call install_lib, gettext, 0, 0, 0644, libasprintf) @$(call install_lib, gettext, 0, 0, 0644, libgettextpo) - @$(call install_lib, gettext, 0, 0, 0644,libgettextsrc-$(GETTEXT_VERSION)) + @$(call install_lib, gettext, 0, 0, 0644, libgettextsrc-$(GETTEXT_VERSION)) + @$(call install_lib, gettext, 0, 0, 0644, libtextstyle) +endif @$(call install_finish, gettext) -- 2.26.2 _______________________________________________ ptxdist mailing list [email protected] To unsubscribe, send a mail with subject "unsubscribe" to [email protected]
