[b37f8d03] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY gperf-download-http "http://ftp.gnu.org/gnu/gperf/gperf-&gperf-version;.tar.gz">
|
---|
[32d0e29] | 8 | <!ENTITY gperf-download-ftp "ftp://ftp.gnu.org/gnu/gperf/gperf-&gperf-version;.tar.gz">
|
---|
[9045df8] | 9 | <!ENTITY gperf-md5sum "c1f1db32fb6598d6a93e6e88796a8632">
|
---|
[6025fa54] | 10 | <!ENTITY gperf-size "968 KB">
|
---|
| 11 | <!ENTITY gperf-buildsize "6.5 MB">
|
---|
[32d0e29] | 12 | <!ENTITY gperf-time "less than 0.1 SBU">
|
---|
[b37f8d03] | 13 | ]>
|
---|
| 14 |
|
---|
[32d0e29] | 15 | <sect1 id="gperf" xreflabel="Gperf-&gperf-version;">
|
---|
[b37f8d03] | 16 | <?dbhtml filename="gperf.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Gperf-&gperf-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="gperf">
|
---|
| 26 | <primary sortas="a-Gperf">Gperf</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Gperf</title>
|
---|
| 31 |
|
---|
[32d0e29] | 32 | <para><application>Gperf</application> generates a perfect hash function
|
---|
| 33 | from a key set.</para>
|
---|
[b37f8d03] | 34 |
|
---|
[6025fa54] | 35 | &lfs70_checked;
|
---|
[9045df8] | 36 |
|
---|
[b37f8d03] | 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>Download (HTTP): <ulink url="&gperf-download-http;"/></para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (FTP): <ulink url="&gperf-download-ftp;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download MD5 sum: &gperf-md5sum;</para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download size: &gperf-size;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Estimated disk space required: &gperf-buildsize;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated build time: &gperf-time;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | </itemizedlist>
|
---|
| 58 |
|
---|
| 59 | <para condition="html" role="usernotes">User Notes:
|
---|
| 60 | <ulink url="&blfs-wiki;/gperf"/></para>
|
---|
| 61 |
|
---|
| 62 | </sect2>
|
---|
| 63 |
|
---|
| 64 | <sect2 role="installation">
|
---|
| 65 | <title>Installation of Gperf</title>
|
---|
| 66 |
|
---|
[32d0e29] | 67 | <para>Install <application>Gperf</application> by running the following
|
---|
| 68 | commands:</para>
|
---|
[b37f8d03] | 69 |
|
---|
[9045df8] | 70 | <screen><userinput>./configure --prefix=/usr --docdir=/usr/share/doc/gperf-&gperf-version; &&
|
---|
[b37f8d03] | 71 | make</userinput></screen>
|
---|
| 72 |
|
---|
[32d0e29] | 73 | <para>If desired, create a text version of the documentation by issuing
|
---|
| 74 | the following command:</para>
|
---|
| 75 |
|
---|
| 76 | <screen><userinput>makeinfo -o doc/gperf.txt --plaintext doc/gperf.texi</userinput></screen>
|
---|
| 77 |
|
---|
[9327a61] | 78 | <para>To test the results, issue: <command>make check</command>. There
|
---|
[32d0e29] | 79 | should be no output from the <command>diff</command> commands.</para>
|
---|
[b37f8d03] | 80 |
|
---|
| 81 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 82 |
|
---|
| 83 | <screen role="root"><userinput>make install &&
|
---|
[82799f3] | 84 | install -m644 -v doc/gperf.{dvi,ps,pdf,txt} \
|
---|
| 85 | /usr/share/doc/gperf-&gperf-version; &&
|
---|
| 86 |
|
---|
| 87 | pushd /usr/share/info &&
|
---|
| 88 | rm -v dir &&
|
---|
| 89 | for FILENAME in *; do
|
---|
| 90 | install-info $FILENAME dir 2>/dev/null
|
---|
| 91 | done &&
|
---|
| 92 | popd</userinput></screen>
|
---|
[b37f8d03] | 93 |
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
[32d0e29] | 96 | <sect2 role="commands">
|
---|
| 97 | <title>Command Explanations</title>
|
---|
| 98 |
|
---|
| 99 | <para><command>install -m644 -v doc/gperf.{dvi,ps,pdf,txt} ...</command>:
|
---|
| 100 | This command installs documentation. Modify the command (remove ',txt') if
|
---|
| 101 | you did not build the text version.</para>
|
---|
| 102 |
|
---|
[82799f3] | 103 | <para><command>pushd ... popd</command>: This set of commands rebuilds the
|
---|
| 104 | <filename>/usr/share/info/dir</filename> file as the installation failed
|
---|
| 105 | to do so.</para>
|
---|
| 106 |
|
---|
[32d0e29] | 107 | </sect2>
|
---|
| 108 |
|
---|
[b37f8d03] | 109 | <sect2 role="content">
|
---|
| 110 | <title>Contents</title>
|
---|
| 111 |
|
---|
| 112 | <segmentedlist>
|
---|
[9045df8] | 113 | <segtitle>Installed Program</segtitle>
|
---|
[b37f8d03] | 114 | <segtitle>Installed Libraries</segtitle>
|
---|
[9045df8] | 115 | <segtitle>Installed Directory</segtitle>
|
---|
[b37f8d03] | 116 |
|
---|
| 117 | <seglistitem>
|
---|
| 118 | <seg>gperf</seg>
|
---|
| 119 | <seg>None</seg>
|
---|
| 120 | <seg>/usr/share/doc/gperf-&gperf-version;</seg>
|
---|
| 121 | </seglistitem>
|
---|
| 122 | </segmentedlist>
|
---|
| 123 |
|
---|
| 124 | <variablelist>
|
---|
| 125 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 126 | <?dbfo list-presentation="list"?>
|
---|
| 127 | <?dbhtml list-presentation="table"?>
|
---|
| 128 |
|
---|
| 129 | <varlistentry id="gperf-prog">
|
---|
| 130 | <term><command>gperf</command></term>
|
---|
| 131 | <listitem>
|
---|
[32d0e29] | 132 | <para>generates a perfect hash function from a key set.</para>
|
---|
[b37f8d03] | 133 | <indexterm zone="gperf gperf-prog">
|
---|
[9045df8] | 134 | <primary sortas="b-gperf">gperf</primary>
|
---|
[b37f8d03] | 135 | </indexterm>
|
---|
| 136 | </listitem>
|
---|
| 137 | </varlistentry>
|
---|
| 138 |
|
---|
| 139 | </variablelist>
|
---|
| 140 |
|
---|
| 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | </sect1>
|
---|