source: general/genlib/libwacom.xml@ 8b819c5

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 8b819c5 was 8b819c5, checked in by Pierre Labastie <pierre.labastie@…>, 18 months ago

Reference book's pytest instead of external

Note that for pycairo2, I am not sure pytest can be built for python2.

  • 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 libwacom-download-http "https://github.com/linuxwacom/libwacom/releases/download/libwacom-&libwacom-version;/libwacom-&libwacom-version;.tar.xz">
8 <!ENTITY libwacom-download-ftp " ">
9 <!ENTITY libwacom-md5sum "cd27b77adf6cb23939dd9d91f4b2731c">
10 <!ENTITY libwacom-size "107 KB">
11 <!ENTITY libwacom-buildsize "5.3 MB (with tests)">
12 <!ENTITY libwacom-time "less than 0.1 SBU (with tests)">
13]>
14
15<sect1 id="libwacom" xreflabel="libwacom-&libwacom-version;">
16 <?dbhtml filename="libwacom.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>libwacom-&libwacom-version;</title>
23
24 <indexterm zone="libwacom">
25 <primary sortas="a-libwacom">libwacom</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to libwacom</title>
30
31 <para>
32 The <application>libwacom</application> package contains a library used
33 to identify wacom tablets and their model-specific features.
34 </para>
35
36 &lfs112_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>
42 Download (HTTP): <ulink url="&libwacom-download-http;"/>
43 </para>
44 </listitem>
45 <listitem>
46 <para>
47 Download (FTP): <ulink url="&libwacom-download-ftp;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download MD5 sum: &libwacom-md5sum;
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download size: &libwacom-size;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Estimated disk space required: &libwacom-buildsize;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated build time: &libwacom-time;
68 </para>
69 </listitem>
70 </itemizedlist>
71
72 <bridgehead renderas="sect3">libwacom Dependencies</bridgehead>
73
74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required">
76 <xref linkend="libgudev"/>
77 </para>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref linkend="libxml2"/>
82 </para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
86 <xref linkend="doxygen"/>,
87 <xref linkend="git"/>,
88 <xref linkend="librsvg"/>,
89 <xref linkend="valgrind"/> (optional for some tests), and
90 <xref linkend="pytest"/> with
91 <ulink url="https://pypi.org/project/libevdev/">python-libevdev</ulink> and
92 <ulink url="https://pypi.org/project/pyudev/">pyudev</ulink>
93 </para>
94
95 <para condition="html" role="usernotes">
96 User Notes: <ulink url="&blfs-wiki;/libwacom"/>
97 </para>
98 </sect2>
99
100 <sect2 role="installation">
101 <title>Installation of libwacom</title>
102
103<!-- Fixed in libwacom-1.7
104 <para>
105 First, adapt the udev rules to upstream udev/kernel changes:
106 </para>
107
108<screen><userinput remap="pre">sed -i 's/ACTION!="add|change"/ACTION=="remove"/' tools/65-libwacom.rules.in</userinput></screen>
109-->
110
111 <para>
112 Install <application>libwacom</application> by running the following
113 commands:
114 </para>
115
116<screen><userinput>mkdir build &amp;&amp;
117cd build &amp;&amp;
118
119meson --prefix=/usr --buildtype=release -Dtests=disabled .. &amp;&amp;
120ninja</userinput></screen>
121
122 <para>
123 To test the results, issue: <command>ninja test</command>.
124 To run additional tests, install
125 <xref linkend="pytest"/> and remove
126 the "-Dtests=disabled" option from the meson line above.
127 </para>
128
129 <para>
130 Now, as the <systemitem class="username">root</systemitem> user:
131 </para>
132
133<screen role="root"><userinput>ninja install</userinput></screen>
134
135 </sect2>
136
137 <sect2 role="commands">
138 <title>Command Explanations</title>
139
140 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
141 href="../../xincludes/meson-buildtype-release.xml"/>
142
143 <para>
144 <parameter>-Dtests=disabled</parameter>: This parameter disables some of
145 the more advanced tests because they require <xref linkend="pytest"/> to
146 work properly.
147 </para>
148
149 </sect2>
150
151 <sect2 role="content">
152 <title>Contents</title>
153
154 <segmentedlist>
155 <segtitle>Installed Programs</segtitle>
156 <segtitle>Installed Libraries</segtitle>
157 <segtitle>Installed Directories</segtitle>
158
159 <seglistitem>
160 <seg>
161 libwacom-list-devices,
162 libwacom-list-local-devices,
163 libwacom-show-stylus, and
164 libwacom-update-db
165 </seg>
166 <seg>
167 libwacom.so
168 </seg>
169 <seg>
170 /usr/include/libwacom-1.0 and
171 /usr/share/libwacom
172 </seg>
173 </seglistitem>
174 </segmentedlist>
175
176 <variablelist>
177 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
178 <?dbfo list-presentation="list"?>
179 <?dbhtml list-presentation="table"?>
180
181 <varlistentry id="libwacom-list-devices">
182 <term><command>libwacom-list-devices</command></term>
183 <listitem>
184 <para>
185 lists all tablet devices that are supported by libwacom
186 </para>
187 <indexterm zone="libwacom libwacom-list-devices">
188 <primary sortas="b-libwacom-list-devices">libwacom-list-devices</primary>
189 </indexterm>
190 </listitem>
191 </varlistentry>
192
193 <varlistentry id="libwacom-list-local-devices">
194 <term><command>libwacom-list-local-devices</command></term>
195 <listitem>
196 <para>
197 lists tablet devices that are connected to the system
198 </para>
199 <indexterm zone="libwacom libwacom-list-local-devices">
200 <primary sortas="b-libwacom-list-local-devices">libwacom-list-local-devices</primary>
201 </indexterm>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry id="libwacom-show-stylus">
206 <term><command>libwacom-show-stylus</command></term>
207 <listitem>
208 <para>
209 lists tablet stylus IDs
210 </para>
211 <indexterm zone="libwacom libwacom-show-stylus">
212 <primary sortas="b-libwacom-show-stylus">libwacom-show-stylus</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
217 <varlistentry id="libwacom-update-db">
218 <term><command>libwacom-update-db</command></term>
219 <listitem>
220 <para>
221 updates the system according to the current set of tablet data files
222 </para>
223 <indexterm zone="libwacom libwacom-update-db">
224 <primary sortas="b-libwacom-update-db">libwacom-update-db</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="libwacom-lib">
230 <term><filename class="libraryfile">libwacom.so</filename></term>
231 <listitem>
232 <para>
233 contains functions used for accessing Wacom information
234 </para>
235 <indexterm zone="libwacom libwacom-lib">
236 <primary sortas="c-libwacom">libwacom.so</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 </variablelist>
242
243 </sect2>
244
245</sect1>
Note: See TracBrowser for help on using the repository browser.