这个包的详细信息位于 第 6.44.2 节 “Contents of Gettext.”
The Gettext package contains utilities for internationalization and localization. These allow programs to be compiled with NLS (Native Language Support), enabling them to output messages in the user's native language.
对于我们的临时工具,我们只需要构建安装 Gettext 里的三个程序。
准备编译 Gettext:
cd gettext-tools EMACS="no" ./configure --prefix=/tools --disable-shared
配置选项的含义:
EMACS="no"
此项防止 configure 脚本获知安装 Emacs Lisp 文件的位置,因为测试已知在某些宿主上会挂起。
--disable-shared
我们现在不需要安装任何的 Gettext 共享库,也就不必构建。
编译软件包:
make -C gnulib-lib make -C src msgfmt make -C src msgmerge make -C src xgettext
因为只编译了三个程序,就不可能在不编译 Gettext 包中额外支持库的前提下运行测试套件。因此在此处不建议尝试运行测试套件。
安装 msgfmt、msgmerge 和 xgettext 程序:
cp -v src/{msgfmt,msgmerge,xgettext} /tools/bin
这个包的详细信息位于 第 6.44.2 节 “Contents of Gettext.”