[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 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>Gperf-&gperf-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="gperf">
|
---|
| 25 | <primary sortas="a-Gperf">Gperf</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to Gperf</title>
|
---|
| 30 |
|
---|
[32d0e29] | 31 | <para><application>Gperf</application> generates a perfect hash function
|
---|
| 32 | from a key set.</para>
|
---|
[b37f8d03] | 33 |
|
---|
[fd4dbec] | 34 | &lfs75_checked;
|
---|
[9045df8] | 35 |
|
---|
[b37f8d03] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>Download (HTTP): <ulink url="&gperf-download-http;"/></para>
|
---|
| 40 | </listitem>
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (FTP): <ulink url="&gperf-download-ftp;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download MD5 sum: &gperf-md5sum;</para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download size: &gperf-size;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Estimated disk space required: &gperf-buildsize;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated build time: &gperf-time;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | </itemizedlist>
|
---|
| 57 |
|
---|
| 58 | <para condition="html" role="usernotes">User Notes:
|
---|
| 59 | <ulink url="&blfs-wiki;/gperf"/></para>
|
---|
| 60 |
|
---|
| 61 | </sect2>
|
---|
| 62 |
|
---|
| 63 | <sect2 role="installation">
|
---|
| 64 | <title>Installation of Gperf</title>
|
---|
| 65 |
|
---|
[32d0e29] | 66 | <para>Install <application>Gperf</application> by running the following
|
---|
| 67 | commands:</para>
|
---|
[b37f8d03] | 68 |
|
---|
[9045df8] | 69 | <screen><userinput>./configure --prefix=/usr --docdir=/usr/share/doc/gperf-&gperf-version; &&
|
---|
[b37f8d03] | 70 | make</userinput></screen>
|
---|
| 71 |
|
---|
[bd4fda83] | 72 | <!-- gperf.texi is broken. Fixing the texi file breaks 'make install'
|
---|
| 73 | without TeXlive installed.
|
---|
[32d0e29] | 74 | <para>If desired, create a text version of the documentation by issuing
|
---|
| 75 | the following command:</para>
|
---|
| 76 |
|
---|
[bd4fda83] | 77 | <screen><userinput>makeinfo -o doc/gperf.txt - -plaintext doc/gperf.texi</userinput></screen>
|
---|
| 78 | -->
|
---|
[32d0e29] | 79 |
|
---|
[9327a61] | 80 | <para>To test the results, issue: <command>make check</command>. There
|
---|
[32d0e29] | 81 | should be no output from the <command>diff</command> commands.</para>
|
---|
[b37f8d03] | 82 |
|
---|
| 83 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 84 |
|
---|
| 85 | <screen role="root"><userinput>make install &&
|
---|
[bd4fda83] | 86 | <!--install -m644 -v doc/gperf.{dvi,ps,pdf,txt} \ -->
|
---|
| 87 | install -m644 -v doc/gperf.{dvi,ps,pdf} \
|
---|
[82799f3] | 88 | /usr/share/doc/gperf-&gperf-version; &&
|
---|
| 89 |
|
---|
| 90 | pushd /usr/share/info &&
|
---|
[bfe73de] | 91 | rm -v dir &&
|
---|
| 92 | for FILENAME in *; do
|
---|
[82799f3] | 93 | install-info $FILENAME dir 2>/dev/null
|
---|
[bfe73de] | 94 | done &&
|
---|
[82799f3] | 95 | popd</userinput></screen>
|
---|
[b37f8d03] | 96 |
|
---|
| 97 | </sect2>
|
---|
| 98 |
|
---|
[32d0e29] | 99 | <sect2 role="commands">
|
---|
| 100 | <title>Command Explanations</title>
|
---|
| 101 |
|
---|
[bd4fda83] | 102 | <!--
|
---|
[32d0e29] | 103 | <para><command>install -m644 -v doc/gperf.{dvi,ps,pdf,txt} ...</command>:
|
---|
| 104 | This command installs documentation. Modify the command (remove ',txt') if
|
---|
| 105 | you did not build the text version.</para>
|
---|
[bd4fda83] | 106 | -->
|
---|
| 107 |
|
---|
| 108 | <para><command>install -m644 -v doc/gperf.{dvi,ps,pdf} ...</command>:
|
---|
| 109 | This command installs documentation.</para>
|
---|
[32d0e29] | 110 |
|
---|
[82799f3] | 111 | <para><command>pushd ... popd</command>: This set of commands rebuilds the
|
---|
| 112 | <filename>/usr/share/info/dir</filename> file as the installation failed
|
---|
| 113 | to do so.</para>
|
---|
| 114 |
|
---|
[32d0e29] | 115 | </sect2>
|
---|
| 116 |
|
---|
[b37f8d03] | 117 | <sect2 role="content">
|
---|
| 118 | <title>Contents</title>
|
---|
| 119 |
|
---|
| 120 | <segmentedlist>
|
---|
[9045df8] | 121 | <segtitle>Installed Program</segtitle>
|
---|
[b37f8d03] | 122 | <segtitle>Installed Libraries</segtitle>
|
---|
[9045df8] | 123 | <segtitle>Installed Directory</segtitle>
|
---|
[b37f8d03] | 124 |
|
---|
| 125 | <seglistitem>
|
---|
| 126 | <seg>gperf</seg>
|
---|
| 127 | <seg>None</seg>
|
---|
| 128 | <seg>/usr/share/doc/gperf-&gperf-version;</seg>
|
---|
| 129 | </seglistitem>
|
---|
| 130 | </segmentedlist>
|
---|
| 131 |
|
---|
| 132 | <variablelist>
|
---|
| 133 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 134 | <?dbfo list-presentation="list"?>
|
---|
| 135 | <?dbhtml list-presentation="table"?>
|
---|
| 136 |
|
---|
| 137 | <varlistentry id="gperf-prog">
|
---|
| 138 | <term><command>gperf</command></term>
|
---|
| 139 | <listitem>
|
---|
[32d0e29] | 140 | <para>generates a perfect hash function from a key set.</para>
|
---|
[b37f8d03] | 141 | <indexterm zone="gperf gperf-prog">
|
---|
[9045df8] | 142 | <primary sortas="b-gperf">gperf</primary>
|
---|
[b37f8d03] | 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | </variablelist>
|
---|
| 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | </sect1>
|
---|