gettext.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-gettext" role="wrap">
  7. <title>Gettext-&gettext-version;</title>
  8. <?dbhtml filename="gettext.html"?>
  9. <indexterm zone="ch-tools-gettext">
  10. <primary sortas="a-Gettext">Gettext</primary>
  11. <secondary>tools</secondary></indexterm>
  12. <sect2 role="package"><title/>
  13. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.5 SBU</seg><seg>63.0 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  20. </sect2>
  21. <sect2 role="installation">
  22. <title>Installation of Gettext</title>
  23. <para>For our temporary set of tools, we only need to build and install one binary from Gettext.</para>
  24. <para>Prepare Gettext for compilation:</para>
  25. <screen><userinput>cd gettext-tools
  26. ./configure --prefix=/tools --disable-shared</userinput></screen>
  27. <para>The meaning of the configure options:</para>
  28. <variablelist>
  29. <varlistentry>
  30. <term><parameter>--disable-shared</parameter></term>
  31. <listitem><para>We do not need to install any of the shared gettext libraries at this
  32. time, therefore, no need to build them.</para></listitem>
  33. </varlistentry>
  34. </variablelist>
  35. <para>Compile the package:</para>
  36. <screen><userinput>make -C lib
  37. make -C src msgfmt</userinput></screen>
  38. <para>As only one binary has been compiled, it is not possible to run the test
  39. suite.</para>
  40. <para>Install the <command>msgfmt</command> binary:</para>
  41. <screen><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
  42. </sect2>
  43. <sect2 role="content"><title/>
  44. <para>Details on this package are located in <xref linkend="contents-gettext" role="."/></para>
  45. </sect2>
  46. </sect1>