gettext.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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
  32. this time, therefore there is 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
  39. testsuite without compiling additional support libraries from the Gettext
  40. package. It is therefore not recommended to attempt to run the testsuite at
  41. this stage.</para>
  42. <para>Install the <command>msgfmt</command> binary:</para>
  43. <screen><userinput>cp -v src/msgfmt /tools/bin</userinput></screen>
  44. </sect2>
  45. <sect2 role="content"><title/>
  46. <para>Details on this package are located in <xref linkend="contents-gettext" role="."/></para>
  47. </sect2>
  48. </sect1>