source: general/genutils/gtk-doc.xml@ 204252e

10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 204252e was ddd5a70, checked in by Pierre Labastie <pieere@…>, 4 years ago

Patch gtk-doc and glib2 to prevent glib2 from downloading a develoment
version of gtk-doc when building the docs

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23740 af4574ff-66df-0310-9fd7-8a98e5e911e0

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