[ec6047d8] | 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 libportal-download-http "https://github.com/flatpak/libportal/releases/download/&libportal-version;/libportal-&libportal-version;.tar.xz">
|
---|
| 8 | <!ENTITY libportal-download-ftp " ">
|
---|
[5070c5f] | 9 | <!ENTITY libportal-md5sum "e16c8ca2621aff64774a1d2ad6a2a346">
|
---|
| 10 | <!ENTITY libportal-size "64 KB">
|
---|
| 11 | <!ENTITY libportal-buildsize "2.9 MB">
|
---|
[0f870c5] | 12 | <!ENTITY libportal-time "0.1 SBU">
|
---|
[ec6047d8] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libportal" xreflabel="libportal-&libportal-version;">
|
---|
| 16 | <?dbhtml filename="libportal.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>libportal-&libportal-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="libportal">
|
---|
| 25 | <primary sortas="a-libportal">libportal</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to libportal</title>
|
---|
| 30 |
|
---|
| 31 | <para>
|
---|
| 32 | The <application>libportal</application> package provides
|
---|
| 33 | a library that contains GIO-style async APIs for most Flatpak portals.
|
---|
| 34 | </para>
|
---|
| 35 |
|
---|
[19f84a6] | 36 | &lfs112_checked;
|
---|
[ec6047d8] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (HTTP): <ulink url="&libportal-download-http;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download (FTP): <ulink url="&libportal-download-ftp;"/>
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download MD5 sum: &libportal-md5sum;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Download size: &libportal-size;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated disk space required: &libportal-buildsize;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>
|
---|
| 67 | Estimated build time: &libportal-time;
|
---|
| 68 | </para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">libportal Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 75 | <para role="required">
|
---|
[673f231] | 76 | <xref linkend="gobject-introspection"/>
|
---|
| 77 | </para>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 80 | <para role="recommended">
|
---|
| 81 | <xref linkend="gtk3"/>,
|
---|
| 82 | <xref linkend="gtk4"/>, and
|
---|
| 83 | <xref linkend="qt5"/>
|
---|
[f21106a] | 84 | </para>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 87 | <para role="optional">
|
---|
[673f231] | 88 | <xref linkend="vala"/> and
|
---|
[0a0ad3a] | 89 | <ulink url="https://gitlab.gnome.org/ebassi/gi-docgen">gi-docgen</ulink>
|
---|
[ec6047d8] | 90 | </para>
|
---|
| 91 |
|
---|
| 92 | <para condition="html" role="usernotes">
|
---|
| 93 | User Notes: <ulink url="&blfs-wiki;/libportal"/>
|
---|
| 94 | </para>
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="installation">
|
---|
| 98 | <title>Installation of libportal</title>
|
---|
| 99 |
|
---|
[75b6dff] | 100 | <warning>
|
---|
| 101 | <para>
|
---|
| 102 | If a previous version of libportal is installed, move the
|
---|
| 103 | headers out of the way so that later packages do not encounter
|
---|
[77e8024] | 104 | conflicts (as the <systemitem role="username">root</systemitem>
|
---|
| 105 | user):
|
---|
[75b6dff] | 106 | </para>
|
---|
[77e8024] | 107 | <screen role="root"><userinput>if [ -e /usr/include/libportal ]; then
|
---|
[75b6dff] | 108 | rm -rf /usr/include/libportal.old &&
|
---|
| 109 | mv -vf /usr/include/libportal{,.old}
|
---|
| 110 | fi</userinput></screen>
|
---|
| 111 | </warning>
|
---|
| 112 |
|
---|
[ec6047d8] | 113 | <para>
|
---|
| 114 | Install <application>libportal</application> by running the following
|
---|
| 115 | commands:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
| 118 | <screen><userinput>mkdir build &&
|
---|
| 119 | cd build &&
|
---|
| 120 |
|
---|
[602f5cd] | 121 | meson --prefix=/usr --buildtype=release -Ddocs=false .. &&
|
---|
[ec6047d8] | 122 | ninja</userinput></screen>
|
---|
| 123 |
|
---|
| 124 | <para>
|
---|
| 125 | This package does not come with a test suite.
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <para>
|
---|
| 129 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
[f21106a] | 135 | <sect2 role="commands">
|
---|
| 136 | <title>Command Explanations</title>
|
---|
| 137 |
|
---|
[20f070d8] | 138 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 139 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 140 |
|
---|
[f21106a] | 141 | <para>
|
---|
[602f5cd] | 142 | <parameter>-Ddocs=false</parameter>: Remove this parameter if
|
---|
[0a0ad3a] | 143 | <application>gi-docgen</application> is installed and you wish to rebuild
|
---|
[f21106a] | 144 | and install the API documentation.
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
[86bb3fe8] | 147 | <para>
|
---|
[1fe05eb] | 148 | <option>-Dbackends=gtk3,gtk4,qt5</option>: This switch allows you to set
|
---|
[86bb3fe8] | 149 | the available backends. You can use it to disable the dependency on gtk-3,
|
---|
[1fe05eb] | 150 | gtk-4, or qt-5. Most applications that use libportal will use either
|
---|
[86bb3fe8] | 151 | gtk-4 or gtk-3. The default is to build all three backends.
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
[f21106a] | 154 | </sect2>
|
---|
[ec6047d8] | 155 | <sect2 role="content">
|
---|
| 156 | <title>Contents</title>
|
---|
| 157 |
|
---|
| 158 | <segmentedlist>
|
---|
| 159 | <segtitle>Installed Programs</segtitle>
|
---|
| 160 | <segtitle>Installed Libraries</segtitle>
|
---|
| 161 | <segtitle>Installed Directories</segtitle>
|
---|
| 162 |
|
---|
| 163 | <seglistitem>
|
---|
| 164 | <seg>
|
---|
| 165 | None
|
---|
| 166 | </seg>
|
---|
| 167 | <seg>
|
---|
[673f231] | 168 | libportal.so,
|
---|
| 169 | libportal-gtk3.so,
|
---|
| 170 | libportal-gtk4.so, and
|
---|
| 171 | libportal-qt5.so
|
---|
[ec6047d8] | 172 | </seg>
|
---|
| 173 | <seg>
|
---|
| 174 | /usr/include/libportal and
|
---|
| 175 | /usr/share/gtk-doc/html/libportal
|
---|
| 176 | </seg>
|
---|
| 177 | </seglistitem>
|
---|
| 178 | </segmentedlist>
|
---|
| 179 |
|
---|
| 180 | <variablelist>
|
---|
| 181 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 182 | <?dbfo list-presentation="list"?>
|
---|
| 183 | <?dbhtml list-presentation="table"?>
|
---|
| 184 |
|
---|
| 185 | <varlistentry id="libportal-lib">
|
---|
| 186 | <term><filename class="libraryfile">libportal.so</filename></term>
|
---|
| 187 | <listitem>
|
---|
| 188 | <para>
|
---|
[4c24eb0a] | 189 | provides GIO-style async APIs for most Flatpak portals
|
---|
[ec6047d8] | 190 | </para>
|
---|
| 191 | <indexterm zone="libportal libportal-lib">
|
---|
| 192 | <primary sortas="c-libportal">libportal.so</primary>
|
---|
| 193 | </indexterm>
|
---|
| 194 | </listitem>
|
---|
| 195 | </varlistentry>
|
---|
[673f231] | 196 |
|
---|
| 197 | <varlistentry id="libportal-gtk3">
|
---|
| 198 | <term><filename class="libraryfile">libportal-gtk3.so</filename></term>
|
---|
| 199 | <listitem>
|
---|
| 200 | <para>
|
---|
| 201 | provides GTK+-3 specific functions for interacting with Flatpak
|
---|
| 202 | portals.
|
---|
| 203 | </para>
|
---|
| 204 | <indexterm zone="libportal libportal-gtk3">
|
---|
| 205 | <primary sortas="c-libportal-gtk3">libportal-gtk3.so</primary>
|
---|
| 206 | </indexterm>
|
---|
| 207 | </listitem>
|
---|
| 208 | </varlistentry>
|
---|
| 209 |
|
---|
| 210 | <varlistentry id="libportal-gtk4">
|
---|
| 211 | <term><filename class="libraryfile">libportal-gtk4.so</filename></term>
|
---|
| 212 | <listitem>
|
---|
| 213 | <para>
|
---|
| 214 | provides GTK-4 specific functions for interacting with Flatpak
|
---|
| 215 | portals.
|
---|
| 216 | </para>
|
---|
| 217 | <indexterm zone="libportal libportal-gtk4">
|
---|
| 218 | <primary sortas="c-libportal-gtk4">libportal-gtk4.so</primary>
|
---|
| 219 | </indexterm>
|
---|
| 220 | </listitem>
|
---|
| 221 | </varlistentry>
|
---|
| 222 |
|
---|
| 223 | <varlistentry id="libportal-qt5">
|
---|
| 224 | <term><filename class="libraryfile">libportal-qt5.so</filename></term>
|
---|
| 225 | <listitem>
|
---|
| 226 | <para>
|
---|
| 227 | provides Qt5 specific functions for interacting with Flatpak
|
---|
| 228 | portals.
|
---|
| 229 | </para>
|
---|
| 230 | <indexterm zone="libportal libportal-qt5">
|
---|
| 231 | <primary sortas="c-libportal-qt5">libportal-qt5.so</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
[ec6047d8] | 235 | </variablelist>
|
---|
| 236 | </sect2>
|
---|
[4c24eb0a] | 237 |
|
---|
[ec6047d8] | 238 | </sect1>
|
---|