5.25. Gettext-0.19.4

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.

Approximate build time: 1.0 SBU
Required disk space: 153 MB

5.25.1. Installation of Gettext

For our temporary set of tools, we only need to build and install three programs from Gettext.

Prepare Gettext for compilation:

cd gettext-tools
EMACS="no" ./configure --prefix=/tools --disable-shared

The meaning of the configure option:

EMACS="no"

This prevents the configure script from determining where to install Emacs Lisp files as the test is known to hang on some hosts.

--disable-shared

We do not need to install any of the shared Gettext libraries at this time, therefore there is no need to build them.

Compile the package:

make -C gnulib-lib
make -C intl pluralx.c
make -C src msgfmt
make -C src msgmerge
make -C src xgettext

As only three programs have been compiled, it is not possible to run the test suite without compiling additional support libraries from the Gettext package. It is therefore not recommended to attempt to run the test suite at this stage.

Install the msgfmt, msgmerge and xgettext programs to a temporary directory:

mkdir -pv ../debian/tmp/tools/bin
cp -v src/{msgfmt,msgmerge,xgettext} ../debian/tmp/tools/bin

Create the package archive:

cd ..
buildpkg --package=gettext-pass1

Install the package:

dpkg -i ../gettext-pass1_0.19.4_*.deb

Details on this package are located in Section 6.52.2, “Contents of Gettext.”