[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[fdca4266] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[7b6c396] | 7 | <!ENTITY librsvg-download-http "&gnome-download-http;/librsvg/&librsvg-minor;/librsvg-&librsvg-version;.tar.xz">
|
---|
[e1e58be] | 8 | <!ENTITY librsvg-download-ftp " ">
|
---|
[3e961754] | 9 | <!ENTITY librsvg-md5sum "8f954b5c25ffff602b4e62813c98c8c9">
|
---|
[4a3fa27] | 10 | <!ENTITY librsvg-size "5.9 MB">
|
---|
[3e961754] | 11 | <!ENTITY librsvg-buildsize "723 MB (17 MB installed), add 545 MB for tests">
|
---|
[f750594] | 12 | <!ENTITY librsvg-time "0.7 SBU (add 0.7 SBU for tests; both using parallelism=4)">
|
---|
[fdca4266] | 13 | ]>
|
---|
| 14 |
|
---|
[ad45d1a] | 15 | <sect1 id="librsvg" xreflabel="librsvg-&librsvg-version;">
|
---|
[13d6079] | 16 | <?dbhtml filename="librsvg.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
[03ac97c2] | 19 | <title>librsvg-&librsvg-version;</title>
|
---|
[13d6079] | 20 |
|
---|
| 21 | <indexterm zone="librsvg">
|
---|
[7ded7e3] | 22 | <primary sortas="a-librsvg">librsvg</primary>
|
---|
[13d6079] | 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
[03ac97c2] | 26 | <title>Introduction to librsvg</title>
|
---|
[13d6079] | 27 |
|
---|
[5d1cdfd] | 28 | <para>
|
---|
| 29 | The <application>librsvg</application> package contains
|
---|
[8c668de] | 30 | a library and tools used to manipulate, convert and view
|
---|
| 31 | Scalable Vector Graphic (SVG) images.
|
---|
[5d1cdfd] | 32 | </para>
|
---|
[13d6079] | 33 |
|
---|
[1241ea19] | 34 | &lfs121_checked;
|
---|
[49f7d8b] | 35 |
|
---|
[13d6079] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[7ded7e3] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&librsvg-download-http;"/>
|
---|
| 41 | </para>
|
---|
[13d6079] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[7ded7e3] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&librsvg-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[13d6079] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[7ded7e3] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &librsvg-md5sum;
|
---|
| 51 | </para>
|
---|
[13d6079] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[7ded7e3] | 54 | <para>
|
---|
| 55 | Download size: &librsvg-size;
|
---|
| 56 | </para>
|
---|
[13d6079] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[7ded7e3] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &librsvg-buildsize;
|
---|
| 61 | </para>
|
---|
[13d6079] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[7ded7e3] | 64 | <para>
|
---|
| 65 | Estimated build time: &librsvg-time;
|
---|
| 66 | </para>
|
---|
[13d6079] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
[03ac97c2] | 70 | <bridgehead renderas="sect3">librsvg Dependencies</bridgehead>
|
---|
[13d6079] | 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[cd68ead6] | 73 | <para role="required">
|
---|
[e1365446] | 74 | <xref linkend="cairo"/>,
|
---|
[6783d06] | 75 | <xref linkend="gdk-pixbuf"/>,
|
---|
[8558044] | 76 | <xref linkend="pango"/>, and
|
---|
[b93d66ac] | 77 | <xref linkend="rust"/>
|
---|
[cd68ead6] | 78 | </para>
|
---|
[fd7e0ed6] | 79 |
|
---|
[afb71d0a] | 80 | &build-use-internet;
|
---|
| 81 |
|
---|
[1fc5861c] | 82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 83 | <para role="recommended">
|
---|
[c0bc0a9] | 84 | &gobject-introspection; and
|
---|
[8c668de] | 85 | <xref linkend="vala"/>
|
---|
[4c2be438] | 86 | </para>
|
---|
| 87 |
|
---|
[9aebeedf] | 88 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[72722427] | 89 | <para role="optional">
|
---|
[9aebeedf] | 90 | <xref linkend="docutils"/> (for man pages),
|
---|
[2a1abbb] | 91 | <xref linkend="gi-docgen"/> (for documentation), and
|
---|
| 92 | <xref linkend="xorg7-font"/> (for tests)
|
---|
[72722427] | 93 | </para>
|
---|
| 94 |
|
---|
[13d6079] | 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
[03ac97c2] | 98 | <title>Installation of librsvg</title>
|
---|
[3148bf6] | 99 |
|
---|
[7ded7e3] | 100 | <para>
|
---|
| 101 | Install <application>librsvg</application> by running the following
|
---|
| 102 | commands:
|
---|
| 103 | </para>
|
---|
[13d6079] | 104 |
|
---|
[9aebeedf] | 105 | <screen><userinput>./configure --prefix=/usr \
|
---|
[9dbbb8d] | 106 | --enable-vala \
|
---|
[ec0f2a5] | 107 | --disable-static \
|
---|
| 108 | --docdir=/usr/share/doc/librsvg-&librsvg-version; &&
|
---|
[13d6079] | 109 | make</userinput></screen>
|
---|
| 110 |
|
---|
[6d47d88] | 111 | <!-- With some locales (zh_CN.UTF-8) 31 tests fail. With LC_ALL=C only
|
---|
| 112 | one failure.
|
---|
| 113 | https://gitlab.gnome.org/GNOME/librsvg/-/issues/1021 -->
|
---|
[3e961754] | 114 |
|
---|
| 115 | <!-- Be sure to unset GLIB_LOG_LEVEL. If set, it interferes with the
|
---|
| 116 | tests. -->
|
---|
| 117 |
|
---|
[7ded7e3] | 118 | <para>
|
---|
[6bc97f24] | 119 | To test the results, issue:
|
---|
| 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <screen remap='test'><userinput>cargo update --precise 0.3.36 time &&
|
---|
| 123 | LC_ALL=C make check -k</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | <para>
|
---|
[592edff] | 126 | All 68 tests should pass.
|
---|
[7ded7e3] | 127 | </para>
|
---|
[3148bf6] | 128 |
|
---|
[5d1cdfd] | 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
[13d6079] | 132 |
|
---|
[48d48bdd] | 133 | <screen role="root"><userinput>make DOC_INSTALL_DIR='$(docdir)' install</userinput></screen>
|
---|
[1b6c879] | 134 |
|
---|
| 135 | <note>
|
---|
| 136 | <para>
|
---|
| 137 | If you installed the package on to your system using a
|
---|
| 138 | <quote>DESTDIR</quote> method, an important file was not installed and
|
---|
| 139 | should be copied and/or generated. Generate it using the following
|
---|
| 140 | command as the <systemitem class="username">root</systemitem> user:
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
| 143 | <screen role="root"><userinput>gdk-pixbuf-query-loaders --update-cache</userinput></screen>
|
---|
| 144 | </note>
|
---|
| 145 |
|
---|
| 146 |
|
---|
[13d6079] | 147 | </sect2>
|
---|
| 148 |
|
---|
| 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
| 151 |
|
---|
[5d1cdfd] | 152 | <para>
|
---|
[9dbbb8d] | 153 | <parameter>--enable-vala</parameter>: This switch enables
|
---|
| 154 | building of the Vala bindings. Remove this switch if you don't have
|
---|
[2612323f] | 155 | <xref linkend="vala"/> installed.
|
---|
[ae34f41] | 156 | </para>
|
---|
| 157 |
|
---|
[9dbbb8d] | 158 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 159 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 160 |
|
---|
[48d48bdd] | 161 | <para>
|
---|
| 162 | <parameter>DOC_INSTALL_DIR='$(docdir)'</parameter>: This override
|
---|
| 163 | ensures installing the API documentation into the expected location
|
---|
| 164 | if <xref linkend='gi-docgen'/> is installed.
|
---|
| 165 | </para>
|
---|
| 166 |
|
---|
[6bc97f24] | 167 | <para>
|
---|
| 168 | <command>cargo update --precise=0.3.36 time</command>: This updates
|
---|
| 169 | the <filename>Cargo.lock</filename> file to refer the version 0.3.36
|
---|
| 170 | of the time crate for the test suite. Originally it refers the
|
---|
| 171 | version 0.3.34 which fails to build with Rustc-1.80.0 or later.
|
---|
| 172 | </para>
|
---|
| 173 |
|
---|
[ae34f41] | 174 | <para>
|
---|
[2612323f] | 175 | <option>--disable-introspection</option>: Use this switch if you have
|
---|
| 176 | not installed <application>Gobject Introspection</application>.
|
---|
[28b61748] | 177 | </para>
|
---|
| 178 |
|
---|
[f56d2e7] | 179 | <para>
|
---|
| 180 | <option>--disable-gtk-doc</option>: This switch prevents building
|
---|
| 181 | the API documentation, even if <xref linkend="gi-docgen"/> (despite
|
---|
| 182 | the name of the option) is available.
|
---|
| 183 | </para>
|
---|
[f210178] | 184 |
|
---|
[13d6079] | 185 | </sect2>
|
---|
| 186 |
|
---|
| 187 | <sect2 role="content">
|
---|
| 188 | <title>Contents</title>
|
---|
| 189 |
|
---|
| 190 | <segmentedlist>
|
---|
| 191 | <segtitle>Installed Programs</segtitle>
|
---|
[cd68ead6] | 192 | <segtitle>Installed Library</segtitle>
|
---|
[13d6079] | 193 | <segtitle>Installed Directories</segtitle>
|
---|
| 194 |
|
---|
| 195 | <seglistitem>
|
---|
[cd68ead6] | 196 | <seg>
|
---|
[a5782d1e] | 197 | rsvg-convert
|
---|
[cd68ead6] | 198 | </seg>
|
---|
| 199 | <seg>
|
---|
[485ee94] | 200 | librsvg-2.so and
|
---|
| 201 | libpixbufloader-svg.so (installed in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders)
|
---|
[cd68ead6] | 202 | </seg>
|
---|
| 203 | <seg>
|
---|
[360f25bb] | 204 | /usr/include/librsvg-2.0 and
|
---|
| 205 | /usr/share/doc/librsvg-&librsvg-version;
|
---|
| 206 | <!-- /usr/share/gtk-doc/html/rsvg-2.0 not built with
|
---|
| 207 | current instructions (needs gi-docgen)-->
|
---|
[cd68ead6] | 208 | </seg>
|
---|
[13d6079] | 209 | </seglistitem>
|
---|
| 210 | </segmentedlist>
|
---|
| 211 |
|
---|
| 212 | <variablelist>
|
---|
| 213 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 214 | <?dbfo list-presentation="list"?>
|
---|
| 215 | <?dbhtml list-presentation="table"?>
|
---|
| 216 |
|
---|
[18971e0d] | 217 | <varlistentry id="rsvg-convert">
|
---|
| 218 | <term><command>rsvg-convert</command></term>
|
---|
| 219 | <listitem>
|
---|
[5d1cdfd] | 220 | <para>
|
---|
[4c24eb0a] | 221 | is used to convert images into PNG, PDF, PS, SVG and other formats
|
---|
[5d1cdfd] | 222 | </para>
|
---|
[18971e0d] | 223 | <indexterm zone="librsvg rsvg-convert">
|
---|
| 224 | <primary sortas="b-rsvg-convert">rsvg-convert</primary>
|
---|
| 225 | </indexterm>
|
---|
| 226 | </listitem>
|
---|
| 227 | </varlistentry>
|
---|
| 228 |
|
---|
[214718a] | 229 | <varlistentry id="librsvg-2">
|
---|
[8c668de] | 230 | <term><filename class="libraryfile">librsvg-2.so</filename></term>
|
---|
[13d6079] | 231 | <listitem>
|
---|
[5d1cdfd] | 232 | <para>
|
---|
[4c24eb0a] | 233 | provides the functions to render Scalable Vector Graphics
|
---|
[5d1cdfd] | 234 | </para>
|
---|
[214718a] | 235 | <indexterm zone="librsvg librsvg-2">
|
---|
[cd68ead6] | 236 | <primary sortas="c-librsvg-2">librsvg-2.so</primary>
|
---|
[13d6079] | 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
[75d341a1] | 241 | <varlistentry id="libpixbufloader-svg">
|
---|
[8c668de] | 242 | <term><filename class="libraryfile">libpixbufloader-svg.so</filename></term>
|
---|
[5d1cdfd] | 243 | <listitem>
|
---|
| 244 | <para>
|
---|
[7ded7e3] | 245 | is the <application>Gdk Pixbuf</application> plugin that allows
|
---|
[0d7900a] | 246 | <application>GTK+</application> applications to render Scalable
|
---|
[4c24eb0a] | 247 | Vector Graphics images
|
---|
[5d1cdfd] | 248 | </para>
|
---|
[75d341a1] | 249 | <indexterm zone="librsvg libpixbufloader-svg">
|
---|
| 250 | <primary sortas="c-libpixbufloader-svg">libpixbufloader-svg.so</primary>
|
---|
[5d1cdfd] | 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
[7ded7e3] | 254 |
|
---|
[13d6079] | 255 | </variablelist>
|
---|
[7ded7e3] | 256 |
|
---|
[13d6079] | 257 | </sect2>
|
---|
[7ded7e3] | 258 |
|
---|
[ad45d1a] | 259 | </sect1>
|
---|