[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 " ">
|
---|
[11e68b95] | 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)">
|
---|
[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 |
|
---|
[3c9b5e9] | 34 | &lfs122_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"/>,
|
---|
[11e68b95] | 75 | <xref linkend="cargo-c"/>,
|
---|
[6783d06] | 76 | <xref linkend="gdk-pixbuf"/>,
|
---|
[8558044] | 77 | <xref linkend="pango"/>, and
|
---|
[b93d66ac] | 78 | <xref linkend="rust"/>
|
---|
[cd68ead6] | 79 | </para>
|
---|
[fd7e0ed6] | 80 |
|
---|
[afb71d0a] | 81 | &build-use-internet;
|
---|
| 82 |
|
---|
[1fc5861c] | 83 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 84 | <para role="recommended">
|
---|
[c0bc0a9] | 85 | &gobject-introspection; and
|
---|
[8c668de] | 86 | <xref linkend="vala"/>
|
---|
[4c2be438] | 87 | </para>
|
---|
| 88 |
|
---|
[9aebeedf] | 89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[72722427] | 90 | <para role="optional">
|
---|
[9aebeedf] | 91 | <xref linkend="docutils"/> (for man pages),
|
---|
[2a1abbb] | 92 | <xref linkend="gi-docgen"/> (for documentation), and
|
---|
| 93 | <xref linkend="xorg7-font"/> (for tests)
|
---|
[72722427] | 94 | </para>
|
---|
| 95 |
|
---|
[13d6079] | 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="installation">
|
---|
[03ac97c2] | 99 | <title>Installation of librsvg</title>
|
---|
[3148bf6] | 100 |
|
---|
[56fc7750] | 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 |
|
---|
[7ded7e3] | 109 | <para>
|
---|
| 110 | Install <application>librsvg</application> by running the following
|
---|
| 111 | commands:
|
---|
| 112 | </para>
|
---|
[13d6079] | 113 |
|
---|
[11e68b95] | 114 | <screen><userinput>mkdir build &&
|
---|
| 115 | cd build &&
|
---|
[13d6079] | 116 |
|
---|
[11e68b95] | 117 | meson setup --prefix=/usr --buildtype=release .. &&
|
---|
[a8559c1] | 118 | ninja</userinput></screen>
|
---|
[3e961754] | 119 |
|
---|
| 120 | <!-- Be sure to unset GLIB_LOG_LEVEL. If set, it interferes with the
|
---|
[11e68b95] | 121 | tests.
|
---|
| 122 |
|
---|
[a8559c1] | 123 | With 2.59.1 one test of 5 fails. (I cannot see any failures here,
|
---|
| 124 | but using rustc-1.82.0.)
|
---|
[11e68b95] | 125 | -->
|
---|
[3e961754] | 126 |
|
---|
[7ded7e3] | 127 | <para>
|
---|
[6bc97f24] | 128 | To test the results, issue:
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
[a8559c1] | 131 | <screen remap='test'><userinput>ninja test</userinput></screen>
|
---|
[3148bf6] | 132 |
|
---|
[5d1cdfd] | 133 | <para>
|
---|
[11e68b95] | 134 | Now, as the &root; user:
|
---|
[5d1cdfd] | 135 | </para>
|
---|
[13d6079] | 136 |
|
---|
[a8559c1] | 137 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[11e68b95] | 138 | <!--
|
---|
[1b6c879] | 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 |
|
---|
[11e68b95] | 147 | <screen role="root"><userinput>gdk-pixbuf-query-loaders - -update-cache</userinput></screen>
|
---|
[1b6c879] | 148 | </note>
|
---|
[11e68b95] | 149 | -->
|
---|
[1b6c879] | 150 |
|
---|
[13d6079] | 151 | </sect2>
|
---|
[11e68b95] | 152 | <!--
|
---|
[13d6079] | 153 | <sect2 role="commands">
|
---|
| 154 | <title>Command Explanations</title>
|
---|
| 155 |
|
---|
[5d1cdfd] | 156 | <para>
|
---|
[11e68b95] | 157 | <parameter>- -enable-vala</parameter>: This switch enables
|
---|
[9dbbb8d] | 158 | building of the Vala bindings. Remove this switch if you don't have
|
---|
[2612323f] | 159 | <xref linkend="vala"/> installed.
|
---|
[ae34f41] | 160 | </para>
|
---|
| 161 |
|
---|
[9dbbb8d] | 162 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 163 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 164 |
|
---|
[48d48bdd] | 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 |
|
---|
[6bc97f24] | 171 | <para>
|
---|
[11e68b95] | 172 | <command>cargo update - -precise=0.3.36 time</command>: This updates
|
---|
[770eccf4] | 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.
|
---|
[6bc97f24] | 176 | </para>
|
---|
| 177 |
|
---|
[ae34f41] | 178 | <para>
|
---|
[11e68b95] | 179 | <option>- -disable-introspection</option>: Use this switch if you have
|
---|
[2612323f] | 180 | not installed <application>Gobject Introspection</application>.
|
---|
[28b61748] | 181 | </para>
|
---|
| 182 |
|
---|
[f56d2e7] | 183 | <para>
|
---|
[11e68b95] | 184 | <option>- -disable-gtk-doc</option>: This switch prevents building
|
---|
[f56d2e7] | 185 | the API documentation, even if <xref linkend="gi-docgen"/> (despite
|
---|
| 186 | the name of the option) is available.
|
---|
| 187 | </para>
|
---|
[f210178] | 188 |
|
---|
[13d6079] | 189 | </sect2>
|
---|
[11e68b95] | 190 | -->
|
---|
[13d6079] | 191 | <sect2 role="content">
|
---|
| 192 | <title>Contents</title>
|
---|
| 193 |
|
---|
| 194 | <segmentedlist>
|
---|
| 195 | <segtitle>Installed Programs</segtitle>
|
---|
[cd68ead6] | 196 | <segtitle>Installed Library</segtitle>
|
---|
[13d6079] | 197 | <segtitle>Installed Directories</segtitle>
|
---|
| 198 |
|
---|
| 199 | <seglistitem>
|
---|
[cd68ead6] | 200 | <seg>
|
---|
[a5782d1e] | 201 | rsvg-convert
|
---|
[cd68ead6] | 202 | </seg>
|
---|
| 203 | <seg>
|
---|
[485ee94] | 204 | librsvg-2.so and
|
---|
| 205 | libpixbufloader-svg.so (installed in /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders)
|
---|
[cd68ead6] | 206 | </seg>
|
---|
| 207 | <seg>
|
---|
[360f25bb] | 208 | /usr/include/librsvg-2.0 and
|
---|
| 209 | /usr/share/doc/librsvg-&librsvg-version;
|
---|
[cd68ead6] | 210 | </seg>
|
---|
[13d6079] | 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 |
|
---|
[18971e0d] | 219 | <varlistentry id="rsvg-convert">
|
---|
| 220 | <term><command>rsvg-convert</command></term>
|
---|
| 221 | <listitem>
|
---|
[5d1cdfd] | 222 | <para>
|
---|
[4c24eb0a] | 223 | is used to convert images into PNG, PDF, PS, SVG and other formats
|
---|
[5d1cdfd] | 224 | </para>
|
---|
[18971e0d] | 225 | <indexterm zone="librsvg rsvg-convert">
|
---|
| 226 | <primary sortas="b-rsvg-convert">rsvg-convert</primary>
|
---|
| 227 | </indexterm>
|
---|
| 228 | </listitem>
|
---|
| 229 | </varlistentry>
|
---|
| 230 |
|
---|
[214718a] | 231 | <varlistentry id="librsvg-2">
|
---|
[8c668de] | 232 | <term><filename class="libraryfile">librsvg-2.so</filename></term>
|
---|
[13d6079] | 233 | <listitem>
|
---|
[5d1cdfd] | 234 | <para>
|
---|
[4c24eb0a] | 235 | provides the functions to render Scalable Vector Graphics
|
---|
[5d1cdfd] | 236 | </para>
|
---|
[214718a] | 237 | <indexterm zone="librsvg librsvg-2">
|
---|
[cd68ead6] | 238 | <primary sortas="c-librsvg-2">librsvg-2.so</primary>
|
---|
[13d6079] | 239 | </indexterm>
|
---|
| 240 | </listitem>
|
---|
| 241 | </varlistentry>
|
---|
| 242 |
|
---|
[75d341a1] | 243 | <varlistentry id="libpixbufloader-svg">
|
---|
[8c668de] | 244 | <term><filename class="libraryfile">libpixbufloader-svg.so</filename></term>
|
---|
[5d1cdfd] | 245 | <listitem>
|
---|
| 246 | <para>
|
---|
[7ded7e3] | 247 | is the <application>Gdk Pixbuf</application> plugin that allows
|
---|
[0d7900a] | 248 | <application>GTK+</application> applications to render Scalable
|
---|
[4c24eb0a] | 249 | Vector Graphics images
|
---|
[5d1cdfd] | 250 | </para>
|
---|
[75d341a1] | 251 | <indexterm zone="librsvg libpixbufloader-svg">
|
---|
| 252 | <primary sortas="c-libpixbufloader-svg">libpixbufloader-svg.so</primary>
|
---|
[5d1cdfd] | 253 | </indexterm>
|
---|
| 254 | </listitem>
|
---|
| 255 | </varlistentry>
|
---|
[7ded7e3] | 256 |
|
---|
[13d6079] | 257 | </variablelist>
|
---|
[7ded7e3] | 258 |
|
---|
[13d6079] | 259 | </sect2>
|
---|
[7ded7e3] | 260 |
|
---|
[ad45d1a] | 261 | </sect1>
|
---|