glfs/general/genlib/libxkbcommon.xml
2024-01-19 22:39:35 +01:00

237 lines
6.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY libxkbcommon-download-http "https://xkbcommon.org/download/libxkbcommon-&libxkbcommon-version;.tar.xz">
<!ENTITY libxkbcommon-download-ftp " ">
<!ENTITY libxkbcommon-md5sum "90079ab4a0c6fa56dc75abffef9b1bc6">
<!ENTITY libxkbcommon-size "500 KB">
<!ENTITY libxkbcommon-buildsize "23 MB (with tests)">
<!ENTITY libxkbcommon-time "0.4 SBU (with tests)">
]>
<sect1 id="libxkbcommon" xreflabel="libxkbcommon-&libxkbcommon-version;">
<?dbhtml filename="libxkbcommon.html"?>
<title>libxkbcommon-&libxkbcommon-version;</title>
<indexterm zone="libxkbcommon">
<primary sortas="a-libxkbcommon">libxkbcommon</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to libxkbcommon</title>
<para>
<application>libxkbcommon</application> is a keymap compiler and
support library which processes a reduced subset of keymaps as
defined by the XKB specification.
</para>
&lfs120_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&libxkbcommon-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&libxkbcommon-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &libxkbcommon-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &libxkbcommon-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &libxkbcommon-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &libxkbcommon-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">libxkbcommon Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref role="runtime" linkend="xkeyboard-config"/> (runtime)
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<xref linkend="libxcb"/>,
<xref linkend="wayland"/>, and
<xref linkend="wayland-protocols"/>
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<xref linkend="doxygen"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of libxkbcommon</title>
<para>
Install <application>libxkbcommon</application> by running the following
commands:
</para>
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
meson setup .. \
--prefix=/usr \
--buildtype=release \
-Denable-docs=false &amp;&amp;
ninja</userinput></screen>
<para>
To test the results, issue: <command>ninja test</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>ninja install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
<!--
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/static-libraries.xml"/>
<para>
<option>- -disable-x11</option>: Use this switch if you
have not installed <xref linkend="libxcb"/> and
don't need the <filename>libxkbcommon-x11.so</filename>
library.
</para>
-->
<para>
<parameter>-Denable-docs=false</parameter>: This switch disables
documentation generation. Remove it if <xref linkend="doxygen"/> is
installed.
</para>
<para>
<command>mv -v /usr/share/doc/libxkbcommon{,-&libxkbcommon-version;}</command>:
If you removed -Denable-docs=false, use this command to install the
documentation in a versioned directory.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
xkbcli
</seg>
<seg>
libxkbcommon.so,
libxkbcommon-x11.so, and
libxkbregistry.so
</seg>
<seg>
/usr/include/xkbcommon,
/usr/libexec/xkbcommon, and
/usr/share/doc/libxkbcommon-&libxkbcommon-version;
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="xkbcli">
<term><command>xkbcli</command></term>
<listitem>
<para>
provides a debugger and compiler for XKB keymaps
</para>
<indexterm zone="libxkbcommon xkbcli">
<primary sortas="b-xkbcli">xkbcli</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libxkbcommon-lib">
<term><filename class="libraryfile">libxkbcommon.so</filename></term>
<listitem>
<para>
contains the <application>libxkbcommon</application> API functions
</para>
<indexterm zone="libxkbcommon libxkbcommon-lib">
<primary sortas="c-libxkbcommon">libxkbcommon.so</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libxkbcommon-x11">
<term><filename class="libraryfile">libxkbcommon-x11.so</filename></term>
<listitem>
<para>
contains the <application>libxkbcommon</application> X11 specific API
functions
</para>
<indexterm zone="libxkbcommon libxkbcommon-x11">
<primary sortas="c-libxkbcommon-x11">libxkbcommon-x11.so</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="libxkbregistry">
<term><filename class="libraryfile">libxkbregistry.so</filename></term>
<listitem>
<para>
contains a list of available XKB models, layouts, and variants for a
given ruleset
</para>
<indexterm zone="libxkbcommon libxkbregistry">
<primary sortas="c-libxkbregistry">libxkbregistry.so</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>