source: general/graphlib/librsvg.xml@ 56fc7750

trunk
Last change on this file since 56fc7750 was 56fc7750, checked in by Xi Ruoyao <xry111@…>, 36 hours ago

librsvg: Fix documentation directory

  • Property mode set to 100644
File size: 7.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 librsvg-download-http "&gnome-download-http;/librsvg/&librsvg-minor;/librsvg-&librsvg-version;.tar.xz">
8 <!ENTITY librsvg-download-ftp " ">
9 <!ENTITY librsvg-md5sum "7f4ddb27f5fbede01bf4e12eb4c682c0">
10 <!ENTITY librsvg-size "5.8 MB">
11 <!ENTITY librsvg-buildsize "1.2 GB (16 MB installed), add 491 MB for tests">
12 <!ENTITY librsvg-time "0.6 SBU (add 0.4 SBU for tests; both using parallelism=4)">
13]>
14
15<sect1 id="librsvg" xreflabel="librsvg-&librsvg-version;">
16 <?dbhtml filename="librsvg.html"?>
17
18
19 <title>librsvg-&librsvg-version;</title>
20
21 <indexterm zone="librsvg">
22 <primary sortas="a-librsvg">librsvg</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to librsvg</title>
27
28 <para>
29 The <application>librsvg</application> package contains
30 a library and tools used to manipulate, convert and view
31 Scalable Vector Graphic (SVG) images.
32 </para>
33
34 &lfs122_checked;
35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&librsvg-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&librsvg-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &librsvg-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &librsvg-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &librsvg-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &librsvg-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">librsvg Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required">
74 <xref linkend="cairo"/>,
75 <xref linkend="cargo-c"/>,
76 <xref linkend="gdk-pixbuf"/>,
77 <xref linkend="pango"/>, and
78 <xref linkend="rust"/>
79 </para>
80
81 &build-use-internet;
82
83 <bridgehead renderas="sect4">Recommended</bridgehead>
84 <para role="recommended">
85 &gobject-introspection; and
86 <xref linkend="vala"/>
87 </para>
88
89 <bridgehead renderas="sect4">Optional</bridgehead>
90 <para role="optional">
91 <xref linkend="docutils"/> (for man pages),
92 <xref linkend="gi-docgen"/> (for documentation), and
93 <xref linkend="xorg7-font"/> (for tests)
94 </para>
95
96 </sect2>
97
98 <sect2 role="installation">
99 <title>Installation of librsvg</title>
100
101 <para>
102 At first, fix the install path of the API documentation:
103 </para>
104
105 <screen><userinput>sed -e "/OUTDIR/s|,| / 'librsvg-2.59.1', '--no-namespace-dir',|" \
106 -e '/output/s|Rsvg-2.0|librsvg-2.59.1|' \
107 -i doc/meson.build</userinput></screen>
108
109 <para>
110 Install <application>librsvg</application> by running the following
111 commands:
112 </para>
113
114<screen><userinput>mkdir build &amp;&amp;
115cd build &amp;&amp;
116
117meson setup --prefix=/usr --buildtype=release .. &amp;&amp;
118ninja</userinput></screen>
119
120 <!-- Be sure to unset GLIB_LOG_LEVEL. If set, it interferes with the
121 tests.
122
123 With 2.59.1 one test of 5 fails. (I cannot see any failures here,
124 but using rustc-1.82.0.)
125 -->
126
127 <para>
128 To test the results, issue:
129 </para>
130
131 <screen remap='test'><userinput>ninja test</userinput></screen>
132
133 <para>
134 Now, as the &root; user:
135 </para>
136
137<screen role="root"><userinput>ninja install</userinput></screen>
138<!--
139 <note>
140 <para>
141 If you installed the package on to your system using a
142 <quote>DESTDIR</quote> method, an important file was not installed and
143 should be copied and/or generated. Generate it using the following
144 command as the <systemitem class="username">root</systemitem> user:
145 </para>
146
147<screen role="root"><userinput>gdk-pixbuf-query-loaders - -update-cache</userinput></screen>
148 </note>
149-->
150
151 </sect2>
152<!--
153 <sect2 role="commands">
154 <title>Command Explanations</title>
155
156 <para>
157 <parameter>- -enable-vala</parameter>: This switch enables
158 building of the Vala bindings. Remove this switch if you don't have
159 <xref linkend="vala"/> installed.
160 </para>
161
162 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
163 href="../../xincludes/static-libraries.xml"/>
164
165 <para>
166 <parameter>DOC_INSTALL_DIR='$(docdir)'</parameter>: This override
167 ensures installing the API documentation into the expected location
168 if <xref linkend='gi-docgen'/> is installed.
169 </para>
170
171 <para>
172 <command>cargo update - -precise=0.3.36 time</command>: This updates
173 the <filename>Cargo.lock</filename> file to refer to version 0.3.36
174 of the time crate for the test suite. Originally it refers to
175 version 0.3.34, which fails to build with Rustc-1.80.0 or later.
176 </para>
177
178 <para>
179 <option>- -disable-introspection</option>: Use this switch if you have
180 not installed <application>Gobject Introspection</application>.
181 </para>
182
183 <para>
184 <option>- -disable-gtk-doc</option>: This switch prevents building
185 the API documentation, even if <xref linkend="gi-docgen"/> (despite
186 the name of the option) is available.
187 </para>
188
189 </sect2>
190-->
191 <sect2 role="content">
192 <title>Contents</title>
193
194 <segmentedlist>
195 <segtitle>Installed Programs</segtitle>
196 <segtitle>Installed Library</segtitle>
197 <segtitle>Installed Directories</segtitle>
198
199 <seglistitem>
200 <seg>
201 rsvg-convert
202 </seg>
203 <seg>
204 librsvg-2.so and
205 libpixbufloader-svg.so (installed in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders)
206 </seg>
207 <seg>
208 /usr/include/librsvg-2.0 and
209 /usr/share/doc/librsvg-&librsvg-version;
210 </seg>
211 </seglistitem>
212 </segmentedlist>
213
214 <variablelist>
215 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
216 <?dbfo list-presentation="list"?>
217 <?dbhtml list-presentation="table"?>
218
219 <varlistentry id="rsvg-convert">
220 <term><command>rsvg-convert</command></term>
221 <listitem>
222 <para>
223 is used to convert images into PNG, PDF, PS, SVG and other formats
224 </para>
225 <indexterm zone="librsvg rsvg-convert">
226 <primary sortas="b-rsvg-convert">rsvg-convert</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231 <varlistentry id="librsvg-2">
232 <term><filename class="libraryfile">librsvg-2.so</filename></term>
233 <listitem>
234 <para>
235 provides the functions to render Scalable Vector Graphics
236 </para>
237 <indexterm zone="librsvg librsvg-2">
238 <primary sortas="c-librsvg-2">librsvg-2.so</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="libpixbufloader-svg">
244 <term><filename class="libraryfile">libpixbufloader-svg.so</filename></term>
245 <listitem>
246 <para>
247 is the <application>Gdk Pixbuf</application> plugin that allows
248 <application>GTK+</application> applications to render Scalable
249 Vector Graphics images
250 </para>
251 <indexterm zone="librsvg libpixbufloader-svg">
252 <primary sortas="c-libpixbufloader-svg">libpixbufloader-svg.so</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 </variablelist>
258
259 </sect2>
260
261</sect1>
Note: See TracBrowser for help on using the repository browser.