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