[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[7baaf2a] | 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 gtksourceview4-download-http
|
---|
[28df041] | 8 | "&gnome-download-http;/gtksourceview/4.8/gtksourceview->ksourceview4-version;.tar.xz">
|
---|
[f4ac7141] | 9 | <!ENTITY gtksourceview4-download-ftp " ">
|
---|
[7dabddd] | 10 | <!ENTITY gtksourceview4-md5sum "2bf056caaae27654ec3a5930dd5597d3">
|
---|
[12b10249] | 11 | <!ENTITY gtksourceview4-size "1.1 MB">
|
---|
[7dabddd] | 12 | <!ENTITY gtksourceview4-buildsize "71 MB (with tests)">
|
---|
[2c3969a] | 13 | <!ENTITY gtksourceview4-time "0.1 SBU (with tests; both using parallelism=4)">
|
---|
[7baaf2a] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="gtksourceview4" xreflabel="gtksourceview4->ksourceview4-version;">
|
---|
| 17 | <?dbhtml filename="gtksourceview4.html"?>
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | <title>gtksourceview4->ksourceview4-version;</title>
|
---|
| 21 |
|
---|
| 22 | <indexterm zone="gtksourceview4">
|
---|
| 23 | <primary sortas="a-gtksourceview4">gtksourceview4</primary>
|
---|
| 24 | </indexterm>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="package">
|
---|
| 27 | <title>Introduction to GtkSourceView</title>
|
---|
| 28 |
|
---|
| 29 | <para>
|
---|
| 30 | The <application>GtkSourceView</application> package contains
|
---|
| 31 | libraries used for extending the <application>GTK+</application>
|
---|
| 32 | text functions to include syntax highlighting.
|
---|
| 33 | </para>
|
---|
| 34 |
|
---|
[2995216f] | 35 | &lfs122_checked;
|
---|
[7baaf2a] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url=">ksourceview4-download-http;"/>
|
---|
| 42 | </para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url=">ksourceview4-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download MD5 sum: >ksourceview4-md5sum;
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download size: >ksourceview4-size;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Estimated disk space required: >ksourceview4-buildsize;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated build time: >ksourceview4-time;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
[09acc5d] | 71 | <!--
|
---|
[5d2965c] | 72 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 73 | <itemizedlist spacing="compact">
|
---|
| 74 | <listitem>
|
---|
| 75 | <para>
|
---|
| 76 | Required patch:
|
---|
| 77 | <ulink url="&patch-root;/gtksourceview4->ksourceview4-version;-buildfix-1.patch"/>
|
---|
| 78 | </para>
|
---|
| 79 | </listitem>
|
---|
| 80 | </itemizedlist>
|
---|
[09acc5d] | 81 | -->
|
---|
[5d2965c] | 82 |
|
---|
[7baaf2a] | 83 | <bridgehead renderas="sect3">GtkSourceView Dependencies</bridgehead>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 86 | <para role="required">
|
---|
| 87 | <xref linkend="gtk3"/>
|
---|
| 88 | </para>
|
---|
| 89 |
|
---|
| 90 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 91 | <para role="recommended">
|
---|
[c0bc0a9] | 92 | &gobject-introspection; and
|
---|
[cb5164ad] | 93 | <xref linkend="libxml2"/>
|
---|
[7baaf2a] | 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 97 | <para role="optional">
|
---|
| 98 | <xref linkend="vala"/>,
|
---|
| 99 | <xref linkend="valgrind"/>,
|
---|
| 100 | <xref linkend="gtk-doc"/>,
|
---|
| 101 | <xref linkend="itstool"/>,
|
---|
| 102 | <xref linkend="fop"/> (or
|
---|
[c6b192c] | 103 | <ulink url="https://sourceforge.net/projects/dblatex/">dblatex</ulink>),
|
---|
[7baaf2a] | 104 | and
|
---|
[87fc185] | 105 | <ulink url="https://glade.gnome.org/">Glade</ulink>
|
---|
[7baaf2a] | 106 | </para>
|
---|
| 107 |
|
---|
| 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2 role="installation">
|
---|
| 111 | <title>Installation of GtkSourceView</title>
|
---|
| 112 |
|
---|
[09acc5d] | 113 | <!--
|
---|
[5d2965c] | 114 | <para>
|
---|
| 115 | First, apply a patch to prevent a race condition:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen><userinput remap="pre">patch -Np1 -i ../gtksourceview4->ksourceview4-version;-buildfix-1.patch</userinput></screen>
|
---|
[09acc5d] | 119 | -->
|
---|
[5d2965c] | 120 |
|
---|
[7baaf2a] | 121 | <para>
|
---|
| 122 | Install <application>GtkSourceView</application> by running the
|
---|
| 123 | following commands:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
[12b10249] | 126 | <screen><userinput>mkdir build &&
|
---|
| 127 | cd build &&
|
---|
[7baaf2a] | 128 |
|
---|
[91318eb] | 129 | meson setup --prefix=/usr --buildtype=release .. &&
|
---|
[12b10249] | 130 | ninja</userinput></screen>
|
---|
[7baaf2a] | 131 |
|
---|
| 132 | <para>
|
---|
[12b10249] | 133 | To test the results, issue <command>ninja test</command>. The tests need
|
---|
[7baaf2a] | 134 | to be run in a graphical environment.
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
| 137 | <para>
|
---|
| 138 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 139 | </para>
|
---|
| 140 |
|
---|
[12b10249] | 141 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[7baaf2a] | 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | <sect2 role="commands">
|
---|
| 146 | <title>Command Explanations</title>
|
---|
| 147 |
|
---|
[baac59c] | 148 | <para>
|
---|
[d6fab82] | 149 | <option>-D gtk_doc=true</option>: This option is normally
|
---|
[8558044] | 150 | used if <application>GTK-Doc</application> is installed and you wish
|
---|
[baac59c] | 151 | to rebuild and install the API documentation.
|
---|
| 152 | </para>
|
---|
[7baaf2a] | 153 |
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="content">
|
---|
| 157 | <title>Contents</title>
|
---|
| 158 |
|
---|
| 159 | <segmentedlist>
|
---|
| 160 | <segtitle>Installed Programs</segtitle>
|
---|
| 161 | <segtitle>Installed Library</segtitle>
|
---|
| 162 | <segtitle>Installed Directories</segtitle>
|
---|
| 163 |
|
---|
| 164 | <seglistitem>
|
---|
| 165 | <seg>
|
---|
| 166 | None
|
---|
| 167 | </seg>
|
---|
| 168 | <seg>
|
---|
| 169 | libgtksourceview-4.so
|
---|
| 170 | </seg>
|
---|
| 171 | <seg>
|
---|
| 172 | /usr/{include,share,share/gtk-doc/html}/gtksourceview-4
|
---|
| 173 | </seg>
|
---|
| 174 | </seglistitem>
|
---|
| 175 | </segmentedlist>
|
---|
| 176 |
|
---|
| 177 | <variablelist>
|
---|
| 178 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 179 | <?dbfo list-presentation="list"?>
|
---|
| 180 | <?dbhtml list-presentation="table"?>
|
---|
| 181 |
|
---|
| 182 | <varlistentry id="libgtksourceview-4">
|
---|
| 183 | <term><filename class="libraryfile">libgtksourceview-4.so</filename></term>
|
---|
| 184 | <listitem>
|
---|
| 185 | <para>
|
---|
[4c24eb0a] | 186 | contains function extensions for the GtkTextView widget
|
---|
[7baaf2a] | 187 | </para>
|
---|
| 188 | <indexterm zone="gtksourceview4 libgtksourceview-4">
|
---|
| 189 | <primary sortas="c-libgtksourceview-4">libgtksourceview-4.so</primary>
|
---|
| 190 | </indexterm>
|
---|
| 191 | </listitem>
|
---|
| 192 | </varlistentry>
|
---|
| 193 |
|
---|
| 194 | </variablelist>
|
---|
| 195 |
|
---|
| 196 | </sect2>
|
---|
| 197 |
|
---|
| 198 | </sect1>
|
---|