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 gtk-doc-download-http "&gnome-download-http;/gtk-doc/>k-doc-major;/gtk-doc->k-doc-version;.tar.xz">
|
---|
8 | <!ENTITY gtk-doc-download-ftp "&gnome-download-ftp;/gtk-doc/>k-doc-major;/gtk-doc->k-doc-version;.tar.xz">
|
---|
9 | <!ENTITY gtk-doc-md5sum "ea6563421abe964d02135ca0d5b8dd8e">
|
---|
10 | <!ENTITY gtk-doc-size "496 KB">
|
---|
11 | <!ENTITY gtk-doc-buildsize "13 MB (with tests)">
|
---|
12 | <!ENTITY gtk-doc-time "0.2 SBU (with tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="gtk-doc" xreflabel="GTK-Doc->k-doc-version;">
|
---|
16 | <?dbhtml filename="gtk-doc.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <date>$Date$</date>
|
---|
20 | </sect1info>
|
---|
21 |
|
---|
22 | <title>GTK-Doc->k-doc-version;</title>
|
---|
23 |
|
---|
24 | <indexterm zone="gtk-doc">
|
---|
25 | <primary sortas="a-GTK-Doc">GTK-Doc</primary>
|
---|
26 | </indexterm>
|
---|
27 |
|
---|
28 | <sect2 role="package">
|
---|
29 | <title>Introduction to GTK-Doc</title>
|
---|
30 |
|
---|
31 | <para>
|
---|
32 | The <application>GTK-Doc</application> package contains a code
|
---|
33 | documenter. This is useful for extracting specially formatted comments
|
---|
34 | from the code to create API documentation. This package is
|
---|
35 | <emphasis>optional</emphasis>; if it is not installed, packages will
|
---|
36 | not build the documentation. This does not mean that you will not have
|
---|
37 | any documentation. If <application>GTK-Doc</application> is not
|
---|
38 | available, the install process will copy any pre-built documentation
|
---|
39 | to your system.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | &lfs110a_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (HTTP): <ulink url=">k-doc-download-http;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download (FTP): <ulink url=">k-doc-download-ftp;"/>
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download MD5 sum: >k-doc-md5sum;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Download size: >k-doc-size;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated disk space required: >k-doc-buildsize;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Estimated build time: >k-doc-time;
|
---|
74 | </para>
|
---|
75 | </listitem>
|
---|
76 | </itemizedlist>
|
---|
77 | <!--
|
---|
78 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
79 | <itemizedlist spacing="compact">
|
---|
80 | <listitem>
|
---|
81 | <para>
|
---|
82 | Required patch to allow building <xref linkend="glib2"/>
|
---|
83 | documentation:
|
---|
84 | <ulink url="&patch-root;/gtk-doc->k-doc-version;-glib2_fixes-1.patch"/>
|
---|
85 | </para>
|
---|
86 | </listitem>
|
---|
87 | </itemizedlist>
|
---|
88 | -->
|
---|
89 | <bridgehead renderas="sect3">GTK-Doc Dependencies</bridgehead>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
92 | <para role="required">
|
---|
93 | <xref linkend="DocBook"/>,
|
---|
94 | <xref linkend="docbook-xsl"/>,
|
---|
95 | <xref linkend="itstool"/>, and
|
---|
96 | <xref linkend="libxslt"/>
|
---|
97 | </para>
|
---|
98 |
|
---|
99 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
100 | <para role="recommended">
|
---|
101 | <xref role="runtime" linkend="pygments"/> at run time
|
---|
102 | </para>
|
---|
103 |
|
---|
104 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
105 | <para role="optional">
|
---|
106 | For tests:
|
---|
107 | <ulink url="https://sourceforge.net/projects/dblatex/">dblatex</ulink> or
|
---|
108 | <xref linkend="fop"/> (XML PDF support),
|
---|
109 | <xref linkend="glib2"/>,
|
---|
110 | <xref linkend="which"/>, and
|
---|
111 | Python modules
|
---|
112 | <xref linkend="lxml"/>,
|
---|
113 | <!--<ulink url="https://anytree.readthedocs.io/en/latest/">anytree</ulink>,-->
|
---|
114 | <ulink url="https://pypi.org/project/parameterized/">parameterized</ulink>,
|
---|
115 | and <ulink url="&gnome-download-http;/yelp-tools">yelp-tools</ulink>
|
---|
116 | </para>
|
---|
117 |
|
---|
118 | <note>
|
---|
119 | <para>
|
---|
120 | The optional python modules above can be easily installed with
|
---|
121 | the <command>pip3</command> command.
|
---|
122 | </para>
|
---|
123 | </note>
|
---|
124 |
|
---|
125 | <para condition="html" role="usernotes">User Notes:
|
---|
126 | <ulink url="&blfs-wiki;/gtk-doc"/></para>
|
---|
127 |
|
---|
128 | </sect2>
|
---|
129 |
|
---|
130 | <sect2 role="installation">
|
---|
131 | <title>Installation of GTK-Doc</title>
|
---|
132 |
|
---|
133 | <para>
|
---|
134 | Install <application>GTK-Doc</application> by running
|
---|
135 | the following commands:
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | <screen><userinput>autoreconf -fiv &&
|
---|
139 | ./configure --prefix=/usr &&
|
---|
140 | make</userinput></screen>
|
---|
141 |
|
---|
142 | <para>
|
---|
143 | The test suite will hang if the package (or a previous version)
|
---|
144 | is not already installed.
|
---|
145 | </para>
|
---|
146 |
|
---|
147 | <para>
|
---|
148 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
149 | </para>
|
---|
150 |
|
---|
151 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
152 |
|
---|
153 | <para>
|
---|
154 | To test the results, issue: <command>make check</command>.
|
---|
155 | Some tests will fail depending on optionally installed packages.
|
---|
156 | </para>
|
---|
157 |
|
---|
158 | </sect2>
|
---|
159 |
|
---|
160 | <sect2 role="content">
|
---|
161 | <title>Contents</title>
|
---|
162 |
|
---|
163 | <segmentedlist>
|
---|
164 | <segtitle>Installed Programs</segtitle>
|
---|
165 | <segtitle>Installed Libraries</segtitle>
|
---|
166 | <segtitle>Installed Directories</segtitle>
|
---|
167 |
|
---|
168 | <seglistitem>
|
---|
169 | <seg>
|
---|
170 | gtkdocize,
|
---|
171 | gtkdoc-check,
|
---|
172 | gtkdoc-depscan,
|
---|
173 | gtkdoc-fixxref,
|
---|
174 | gtkdoc-mkdb,
|
---|
175 | gtkdoc-mkhtml,
|
---|
176 | gtkdoc-mkhtml2,
|
---|
177 | gtkdoc-mkman,
|
---|
178 | gtkdoc-mkpdf,
|
---|
179 | gtkdoc-rebase,
|
---|
180 | gtkdoc-scan, and
|
---|
181 | gtkdoc-scangobj
|
---|
182 | </seg>
|
---|
183 |
|
---|
184 | <seg>None</seg>
|
---|
185 |
|
---|
186 | <seg>
|
---|
187 | /usr/share/gtk-doc and
|
---|
188 | /usr/share/cmake/GtkDoc
|
---|
189 | </seg>
|
---|
190 | </seglistitem>
|
---|
191 | </segmentedlist>
|
---|
192 |
|
---|
193 | <variablelist>
|
---|
194 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
195 | <?dbfo list-presentation="list"?>
|
---|
196 | <?dbhtml list-presentation="table"?>
|
---|
197 |
|
---|
198 | <varlistentry id="gtkdoc">
|
---|
199 | <term><command>gtkdoc*</command></term>
|
---|
200 | <listitem>
|
---|
201 | <para>
|
---|
202 | these are all shell, or
|
---|
203 | <application>Python</application> scripts used by
|
---|
204 | package <filename>Makefile</filename> scripts to generate
|
---|
205 | documentation for the package being built
|
---|
206 | </para>
|
---|
207 | <indexterm zone="gtk-doc gtkdoc">
|
---|
208 | <primary sortas="b-gtkdoc*">gtkdoc*</primary>
|
---|
209 | </indexterm>
|
---|
210 | </listitem>
|
---|
211 | </varlistentry>
|
---|
212 |
|
---|
213 | </variablelist>
|
---|
214 |
|
---|
215 | </sect2>
|
---|
216 |
|
---|
217 | </sect1>
|
---|