bc: remove an extra quote
[linux_from_scratch.git] / BOOK / chapter08 / meson.xml
blob27e2bdf2482f1af435f046f1fb0b3b5bae6db58f
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 ]>
8 <sect1 id="ch-system-meson" role="wrap">
9   <?dbhtml filename="meson.html"?>
11   <sect1info condition="script">
12     <productname>meson</productname>
13     <productnumber>&meson-version;</productnumber>
14     <address>&meson-url;</address>
15   </sect1info>
17   <title>Meson-&meson-version;</title>
19   <indexterm zone="ch-system-meson">
20     <primary sortas="a-Meson">Meson</primary>
21   </indexterm>
23   <sect2 role="package">
24     <title/>
26     <para>Meson is an open source build system meant to be both extremely fast
27     and as user friendly as possible.</para>
29     <segmentedlist>
30       <segtitle>&buildtime;</segtitle>
31       <segtitle>&diskspace;</segtitle>
32       <seglistitem>
33         <seg>&meson-fin-sbu;</seg>
34         <seg>&meson-fin-du;</seg>
35       </seglistitem>
36     </segmentedlist>
38     <tip revision="sysv">
39       <para>This section is not strictly required for LFS if not using
40       systemd. On the other hand, meson/ninja is a powerful build system,
41       which is expected to be used more and more often. It is required for
42       several packages in <ulink url="&blfs-book;">the BLFS
43       book</ulink>.</para>
44     </tip>
46   </sect2>
48   <sect2 role="installation">
49     <title>Installation of Meson</title>
51 <!-- Applied in 0.56.2
52     <para>First, apply a patch that fixes an issue with pkgconfig files
53     for static libraries:</para>
55 <screen><userinput remap="pre">patch -Np1 -i ../&meson-fix-patch;</userinput></screen>
56 -->
57     <para>Compile Meson with the following command:</para>
59 <screen><userinput remap="make">python3 setup.py build</userinput></screen>
61     <para>This package does not come with a test suite.</para>
63     <para>Install the package:</para>
65 <screen><userinput remap="install">python3 setup.py install --root=dest
66 cp -rv dest/* /
67 install -vDm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson
68 install -vDm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson</userinput></screen>
70     <variablelist>
71       <title>The meaning of the install parameters:</title>
72       
73       <varlistentry>
74         <term><parameter>--root=dest</parameter></term>
75         <listitem>
76           <para>By default <command>python3 setup.py install</command>
77           installs various files (such as man pages) into Python Eggs.
78           With a specified root location, <command>setup.py</command> installs
79           these files into a standard hierarchy.  Then the hierarchy
80           can just be copied to the standard location.
81         </para>
82         </listitem>
83       </varlistentry>
85     </variablelist>
86   </sect2>
88   <sect2 id="contents-meson" role="content">
89     <title>Contents of Meson</title>
91     <segmentedlist>
92       <segtitle>Installed programs</segtitle>
93       <segtitle>Installed directory</segtitle>
95       <seglistitem>
96         <seg>meson</seg>
97         <seg>/usr/lib/python&python-minor;/site-packages/meson-&meson-version;-py&python-minor;.egg-info and /usr/lib/python&python-minor;/site-packages/mesonbuild</seg>
98       </seglistitem>
99     </segmentedlist>
101     <variablelist>
102       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
103       <?dbfo list-presentation="list"?>
104       <?dbhtml list-presentation="table"?>
106       <varlistentry id="meson">
107                 <term><command>meson</command></term>
108         <listitem>
109           <para>A high productivity build system</para>
110           <indexterm zone="ch-system-meson meson">
111             <primary sortas="b-meson">meson</primary>
112           </indexterm>
113         </listitem>
114       </varlistentry>
116     </variablelist>
118   </sect2>
120 </sect1>