gettext.xml 2.4 KB

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