redox/recipes/tools/gettext/recipe.toml
2025-11-02 18:57:30 +07:00

36 lines
1.2 KiB
TOML

# GNU gettext utilities are a set of tools that provides a framework to help
# other GNU packages produce multi-lingual messages.
[source]
tar = "https://ftp.gnu.org/gnu/gettext/gettext-0.22.5.tar.gz"
blake3 = "cb3f3a34da7ce1a92746df81f5b78c5d53841973a24eb80ab76537263d380ec0"
patches = [
"redox.patch"
]
script = """
DYNAMIC_INIT
GNU_CONFIG_GET build-aux/config.sub
( cd gettext-runtime/libasprintf && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
( cd gettext-runtime/intl && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
( cd gettext-runtime && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
( cd gettext-tools && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
( cd libtextstyle && autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal )
autoreconf -fvi -I${COOKBOOK_HOST_SYSROOT}/share/aclocal
"""
[build]
template = "custom"
dependencies = [
"libiconv"
]
script = """
DYNAMIC_STATIC_INIT
COOKBOOK_CONFIGURE_FLAGS+=(
ac_cv_have_decl_program_invocation_name=no
gt_cv_locale_fr=false
gt_cv_locale_fr_utf8=false
gt_cv_locale_ja=false
gt_cv_locale_tr_utf8=false
gt_cv_locale_zh_CN=false
)
cookbook_configure
"""