source: general/genlib/libportal.xml@ 6968baf1

12.0 12.1 kea ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 6968baf1 was 91318eb, checked in by Pierre Labastie <pierre.labastie@…>, 16 months ago

Add "setup" to meson commands

I've not been very consistent on typography, but it is a start

  • Property mode set to 100644
File size: 7.2 KB
Line 
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 " ">
9 <!ENTITY libportal-md5sum "e16c8ca2621aff64774a1d2ad6a2a346">
10 <!ENTITY libportal-size "64 KB">
11 <!ENTITY libportal-buildsize "2.9 MB">
12 <!ENTITY libportal-time "0.1 SBU">
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
33 &lfs113_checked;
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">
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"/>
81 </para>
82
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="gi-docgen"/> and
86 <xref linkend="vala"/>
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
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
101 conflicts (as the <systemitem role="username">root</systemitem>
102 user):
103 </para>
104<screen role="root"><userinput>if [ -e /usr/include/libportal ]; then
105 rm -rf /usr/include/libportal.old &amp;&amp;
106 mv -vf /usr/include/libportal{,.old}
107fi</userinput></screen>
108 </warning>
109
110 <para>
111 Install <application>libportal</application> by running the following
112 commands:
113 </para>
114
115<screen><userinput>mkdir build &amp;&amp;
116cd build &amp;&amp;
117
118meson setup --prefix=/usr --buildtype=release -Ddocs=false .. &amp;&amp;
119ninja</userinput></screen>
120
121 <para>
122 If you have <xref linkend='gi-docgen'/> installed and wish to build
123 the API documentation for this package, issue:
124 </para>
125
126<screen role='nodump'><userinput>sed "/output/s/-1/-&libportal-version;/" -i ../doc/meson.build &amp;&amp;
127meson configure -Ddocs=true &amp;&amp;
128ninja</userinput></screen>
129
130 <para>
131 This package does not come with a test suite.
132 </para>
133
134 <para>
135 Now, as the <systemitem class="username">root</systemitem> user:
136 </para>
137
138<screen role="root"><userinput>ninja install</userinput></screen>
139
140 </sect2>
141
142 <sect2 role="commands">
143 <title>Command Explanations</title>
144
145 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
146 href="../../xincludes/meson-buildtype-release.xml"/>
147
148 <para>
149 <parameter>-Ddocs=false</parameter>: &gi-doc-disable;
150 </para>
151
152 <para>
153 <option>-Dbackends=gtk3,gtk4,qt5</option>: This switch allows you to set
154 the available backends. You can use it to disable the dependency on gtk-3,
155 gtk-4, or qt-5. Most applications that use libportal will use either
156 gtk-4 or gtk-3. The default is to build all three backends.
157 </para>
158
159 </sect2>
160 <sect2 role="content">
161 <title>Contents</title>
162
163 <segmentedlist>
164 <segtitle>Installed Programs</segtitle>
165 <segtitle>Installed Libraries</segtitle>
166 <segtitle>Installed Directories</segtitle>
167
168 <seglistitem>
169 <seg>
170 None
171 </seg>
172 <seg>
173 libportal.so,
174 libportal-gtk3.so,
175 libportal-gtk4.so, and
176 libportal-qt5.so
177 </seg>
178 <seg>
179 /usr/include/libportal and
180 /usr/share/gtk-doc/html/libportal
181 </seg>
182 </seglistitem>
183 </segmentedlist>
184
185 <variablelist>
186 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
187 <?dbfo list-presentation="list"?>
188 <?dbhtml list-presentation="table"?>
189
190 <varlistentry id="libportal-lib">
191 <term><filename class="libraryfile">libportal.so</filename></term>
192 <listitem>
193 <para>
194 provides GIO-style async APIs for most Flatpak portals
195 </para>
196 <indexterm zone="libportal libportal-lib">
197 <primary sortas="c-libportal">libportal.so</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="libportal-gtk3">
203 <term><filename class="libraryfile">libportal-gtk3.so</filename></term>
204 <listitem>
205 <para>
206 provides GTK+-3 specific functions for interacting with Flatpak
207 portals.
208 </para>
209 <indexterm zone="libportal libportal-gtk3">
210 <primary sortas="c-libportal-gtk3">libportal-gtk3.so</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry id="libportal-gtk4">
216 <term><filename class="libraryfile">libportal-gtk4.so</filename></term>
217 <listitem>
218 <para>
219 provides GTK-4 specific functions for interacting with Flatpak
220 portals.
221 </para>
222 <indexterm zone="libportal libportal-gtk4">
223 <primary sortas="c-libportal-gtk4">libportal-gtk4.so</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="libportal-qt5">
229 <term><filename class="libraryfile">libportal-qt5.so</filename></term>
230 <listitem>
231 <para>
232 provides Qt5 specific functions for interacting with Flatpak
233 portals.
234 </para>
235 <indexterm zone="libportal libportal-qt5">
236 <primary sortas="c-libportal-qt5">libportal-qt5.so</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240 </variablelist>
241 </sect2>
242
243</sect1>
Note: See TracBrowser for help on using the repository browser.