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 librsvg-download-http "&gnome-download-http;/librsvg/&librsvg-minor;/librsvg-&librsvg-version;.tar.xz">
|
---|
8 | <!ENTITY librsvg-download-ftp "&gnome-download-ftp;/librsvg/&librsvg-minor;/librsvg-&librsvg-version;.tar.xz">
|
---|
9 | <!ENTITY librsvg-md5sum "22328b7922ab04836959f669ecef1ea7">
|
---|
10 | <!ENTITY librsvg-size "23 MB">
|
---|
11 | <!ENTITY librsvg-buildsize "920 MB (28 MB installed), add 213 MB for tests">
|
---|
12 | <!ENTITY librsvg-time "1.2 SBU (Using parallelism=4), add 1.7 SBU for tests">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="librsvg" xreflabel="librsvg-&librsvg-version;">
|
---|
16 | <?dbhtml filename="librsvg.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <date>$Date$</date>
|
---|
20 | </sect1info>
|
---|
21 |
|
---|
22 | <title>librsvg-&librsvg-version;</title>
|
---|
23 |
|
---|
24 | <indexterm zone="librsvg">
|
---|
25 | <primary sortas="a-librsvg">librsvg</primary>
|
---|
26 | </indexterm>
|
---|
27 |
|
---|
28 | <sect2 role="package">
|
---|
29 | <title>Introduction to librsvg</title>
|
---|
30 |
|
---|
31 | <para>
|
---|
32 | The <application>librsvg</application> package contains
|
---|
33 | a library and tools used to manipulate, convert and view
|
---|
34 | Scalable Vector Graphic (SVG) images.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs111_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&librsvg-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&librsvg-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &librsvg-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &librsvg-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &librsvg-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &librsvg-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect3">librsvg Dependencies</bridgehead>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
76 | <para role="required">
|
---|
77 | <xref linkend="cairo"/>,
|
---|
78 | <xref linkend="docutils"/>,
|
---|
79 | <xref linkend="gdk-pixbuf"/>,
|
---|
80 | <xref linkend="pango"/>, and
|
---|
81 | <xref linkend="rust"/>
|
---|
82 | </para>
|
---|
83 |
|
---|
84 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
85 | <para role="recommended">
|
---|
86 | <xref linkend="gobject-introspection"/> and
|
---|
87 | <xref linkend="vala"/>
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | <para condition="html" role="usernotes">User Notes:
|
---|
91 | <ulink url="&blfs-wiki;/librsvg"/>
|
---|
92 | </para>
|
---|
93 | </sect2>
|
---|
94 |
|
---|
95 | <sect2 role="installation">
|
---|
96 | <title>Installation of librsvg</title>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | This package needs <command>gi-docgen</command> to be built. Set up
|
---|
100 | a Python virtual environment to run it:
|
---|
101 | </para>
|
---|
102 |
|
---|
103 | <screen><userinput remap="pre">python3 -m venv pyvenv &&
|
---|
104 | ./pyvenv/bin/pip3 install gi-docgen</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | Install <application>librsvg</application> by running the following
|
---|
108 | commands:
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <screen><userinput>GI_DOCGEN=$PWD/pyvenv/bin/gi-docgen \
|
---|
112 | ./configure --prefix=/usr \
|
---|
113 | --enable-vala \
|
---|
114 | --disable-static \
|
---|
115 | --docdir=/usr/share/doc/librsvg-&librsvg-version; &&
|
---|
116 | make</userinput></screen>
|
---|
117 |
|
---|
118 | <para>
|
---|
119 | To test the results, issue: <command>make -k check</command>. During
|
---|
120 | testing some binaries are rebuilt with adifferent debug level, so you
|
---|
121 | should run <command>make</command> again after the tests are complete
|
---|
122 | to ensure everything is ready to be installed.
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <para>
|
---|
126 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
127 | </para>
|
---|
128 |
|
---|
129 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
130 |
|
---|
131 | <note>
|
---|
132 | <para>
|
---|
133 | If you installed the package on to your system using a
|
---|
134 | <quote>DESTDIR</quote> method, an important file was not installed and
|
---|
135 | should be copied and/or generated. Generate it using the following
|
---|
136 | command as the <systemitem class="username">root</systemitem> user:
|
---|
137 | </para>
|
---|
138 |
|
---|
139 | <screen role="root"><userinput>gdk-pixbuf-query-loaders --update-cache</userinput></screen>
|
---|
140 | </note>
|
---|
141 |
|
---|
142 |
|
---|
143 | </sect2>
|
---|
144 |
|
---|
145 | <sect2 role="commands">
|
---|
146 | <title>Command Explanations</title>
|
---|
147 |
|
---|
148 | <para>
|
---|
149 | <parameter>--enable-vala</parameter>: This switch enables
|
---|
150 | building of the Vala bindings. Remove this switch if you don't have
|
---|
151 | <xref linkend="vala"/> installed.
|
---|
152 | </para>
|
---|
153 |
|
---|
154 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
155 | href="../../xincludes/static-libraries.xml"/>
|
---|
156 |
|
---|
157 | <para>
|
---|
158 | <option>--disable-introspection</option>: Use this switch if you have
|
---|
159 | not installed <application>Gobject Introspection</application>.
|
---|
160 | </para>
|
---|
161 |
|
---|
162 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
163 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
164 |
|
---|
165 | </sect2>
|
---|
166 |
|
---|
167 | <sect2 role="content">
|
---|
168 | <title>Contents</title>
|
---|
169 |
|
---|
170 | <segmentedlist>
|
---|
171 | <segtitle>Installed Programs</segtitle>
|
---|
172 | <segtitle>Installed Library</segtitle>
|
---|
173 | <segtitle>Installed Directories</segtitle>
|
---|
174 |
|
---|
175 | <seglistitem>
|
---|
176 | <seg>
|
---|
177 | rsvg-convert
|
---|
178 | </seg>
|
---|
179 | <seg>
|
---|
180 | librsvg-2.so and libpixbufloader-svg.so
|
---|
181 | (in <filename class='directory'>/usr/lib/gdk-pixbuf-2.0/2.10.0/</filename>)
|
---|
182 | </seg>
|
---|
183 | <seg>
|
---|
184 | /usr/include/librsvg-2.0,
|
---|
185 | /usr/share/doc/librsvg-&librsvg-version;, and
|
---|
186 | /usr/share/gtk-doc/html/rsvg-2.0
|
---|
187 | </seg>
|
---|
188 | </seglistitem>
|
---|
189 | </segmentedlist>
|
---|
190 |
|
---|
191 | <variablelist>
|
---|
192 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
193 | <?dbfo list-presentation="list"?>
|
---|
194 | <?dbhtml list-presentation="table"?>
|
---|
195 |
|
---|
196 | <varlistentry id="rsvg-convert">
|
---|
197 | <term><command>rsvg-convert</command></term>
|
---|
198 | <listitem>
|
---|
199 | <para>
|
---|
200 | is used to convert images into PNG, PDF, PS, SVG and other formats
|
---|
201 | </para>
|
---|
202 | <indexterm zone="librsvg rsvg-convert">
|
---|
203 | <primary sortas="b-rsvg-convert">rsvg-convert</primary>
|
---|
204 | </indexterm>
|
---|
205 | </listitem>
|
---|
206 | </varlistentry>
|
---|
207 |
|
---|
208 | <varlistentry id="librsvg-2">
|
---|
209 | <term><filename class="libraryfile">librsvg-2.so</filename></term>
|
---|
210 | <listitem>
|
---|
211 | <para>
|
---|
212 | provides the functions to render Scalable Vector Graphics
|
---|
213 | </para>
|
---|
214 | <indexterm zone="librsvg librsvg-2">
|
---|
215 | <primary sortas="c-librsvg-2">librsvg-2.so</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 |
|
---|
220 | <varlistentry id="libpixbufloader-svg">
|
---|
221 | <term><filename class="libraryfile">libpixbufloader-svg.so</filename></term>
|
---|
222 | <listitem>
|
---|
223 | <para>
|
---|
224 | is the <application>Gdk Pixbuf</application> plugin that allows
|
---|
225 | <application>GTK+</application> applications to render Scalable
|
---|
226 | Vector Graphics images
|
---|
227 | </para>
|
---|
228 | <indexterm zone="librsvg libpixbufloader-svg">
|
---|
229 | <primary sortas="c-libpixbufloader-svg">libpixbufloader-svg.so</primary>
|
---|
230 | </indexterm>
|
---|
231 | </listitem>
|
---|
232 | </varlistentry>
|
---|
233 |
|
---|
234 | </variablelist>
|
---|
235 |
|
---|
236 | </sect2>
|
---|
237 |
|
---|
238 | </sect1>
|
---|