source: general/prog/vala.xml@ 25b6f7a

12.1 ken/TL2024 lazarus rahul/power-profiles-daemon trunk xry111/llvm18
Last change on this file since 25b6f7a was ab4fdfc, checked in by Pierre Labastie <pierre.labastie@…>, 4 months ago

Change all xml decl to encoding=utf-8

  • Property mode set to 100644
File size: 8.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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 vala-download-http "&gnome-download-http;/vala/&vala-major-version;/vala-&vala-version;.tar.xz">
8 <!ENTITY vala-download-ftp " ">
9 <!ENTITY vala-md5sum "30dea3532368e3357d642b64c8a1f473">
10 <!ENTITY vala-size "3.8 MB">
11 <!ENTITY vala-buildsize "160 MB (add 18 MB for tests)">
12 <!ENTITY vala-time "0.5 SBU (add 1.0 SBU for tests; both using parallelism=4)">
13]>
14
15<sect1 id="vala" xreflabel="Vala-&vala-version;">
16 <?dbhtml filename="vala.html"?>
17
18 <title>Vala-&vala-version;</title>
19
20 <indexterm zone="vala">
21 <primary sortas="a-Vala">Vala</primary>
22 </indexterm>
23
24 <sect2 role="package">
25 <title>Introduction to Vala</title>
26
27 <para>
28 <application>Vala</application> is a new programming language that
29 aims to bring modern programming language features to
30 <application>GNOME</application> developers without imposing any
31 additional runtime requirements and without using a different ABI
32 compared to applications and libraries written in C.
33 </para>
34
35 &lfs120_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&vala-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&vala-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &vala-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &vala-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &vala-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &vala-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">Vala Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
75 <xref linkend="glib2"/>
76 </para>
77
78 <bridgehead renderas="sect4">Recommended</bridgehead>
79 <para role="recommended">
80 <xref linkend="graphviz"/> (Required for valadoc)
81 </para>
82
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="dbus"/> (Required for the tests),
86 <xref linkend="gobject-introspection"/> (Required for the tests),
87 <xref linkend="libxslt"/> (Required for generating the documentation),
88 <ulink url="https://ftpmirror.gnu.org/gnu/help2man/">help2man</ulink>,
89 <ulink url="https://github.com/relaxng/jing-trang">jing</ulink>, and
90 <ulink url="https://weasyprint.org/">weasyprint</ulink>
91 </para>
92
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of Vala</title>
97
98 <!-- https://gitlab.gnome.org/GNOME/vala/-/issues/1485 -->
99 <!-- Fixed in vala-0.56.14
100 <para>
101 At first, fix an issue causing <command>vapigen</command> to crash
102 building some packages (for example NetworkManager):
103 </para>
104
105<screen><userinput>sed -e "/next_pos =/s/$/ \
106 char buf[16]; \
107 Memory.copy (buf, next_pos, \
108 (end - next_pos >= buf.length ? buf.length - 1 : end - next_pos));/" \
109 -e 's/(string) next_pos/(string) buf/' \
110 -i vala/valamarkupreader.vala</userinput></screen>
111 -->
112
113 <para>
114 Install <application>Vala</application> by running the following
115 commands:
116 </para>
117
118<screen><userinput>./configure --prefix=/usr &amp;&amp;
119make</userinput></screen>
120
121 <para>
122 To test the results, issue: <command>make check</command>.
123 </para>
124
125 <para>
126 Now, as the <systemitem class="username">root</systemitem> user:
127 </para>
128
129<screen role="root"><userinput>make install</userinput></screen>
130
131 </sect2>
132
133 <sect2 role="commands">
134 <title>Command Explanations</title>
135
136 <para>
137 <option>bootstrap</option>: This <command>make</command>
138 target forces the building system to build the package twice and use
139 the <command>vala</command> executable produced in the first build
140 to regenerate the <filename class="extension">.c</filename> files
141 from the <filename class="extension">.vala</filename> files if needed.
142 If a <command>vala</command> executable is not installed yet and
143 you've modified any <filename class="extension">.vala</filename> files
144 in the source tree, run <command>make bootstrap</command> instead of
145 <command>make</command>.
146 </para>
147
148 <para>
149 <option>--disable-valadoc</option>: This option is
150 required if <xref linkend="graphviz"/> is not installed.
151 </para>
152 </sect2>
153
154 <sect2 role="content">
155 <title>Contents</title>
156
157 <segmentedlist>
158 <segtitle>Installed Programs</segtitle>
159 <segtitle>Installed Library</segtitle>
160 <segtitle>Installed Directories</segtitle>
161
162 <seglistitem>
163 <seg>
164 vala,
165 vala-&vala-major-version;,
166 valac,
167 valadoc,
168 vala-gen-introspect, and
169 vapigen (symlinks);
170
171 valac-&vala-major-version;,
172 valadoc-&vala-major-version;,
173 vala-gen-introspect-&vala-major-version;, and
174 vapigen-&vala-major-version;
175 </seg>
176 <seg>
177 libvala-&vala-major-version;.so and
178 libvaladoc-&vala-major-version;.so
179 </seg>
180 <seg>
181 /usr/include/vala-&vala-major-version;,
182 /usr/include/valadoc-&vala-major-version;,
183 /usr/lib/vala-&vala-major-version;,
184 /usr/lib/valadoc-&vala-major-version;,
185 /usr/share/vala,
186 /usr/share/vala-&vala-major-version;,
187 /usr/share/valadoc-&vala-major-version;, and
188 /usr/share/devhelp/books/vala-&vala-major-version;
189 </seg>
190 </seglistitem>
191 </segmentedlist>
192
193 <variablelist>
194 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
195 <?dbfo list-presentation="list"?>
196 <?dbhtml list-presentation="table"?>
197
198 <varlistentry id="valac">
199 <term><command>valac</command></term>
200 <listitem>
201 <para>
202 is a compiler that translates <application>Vala</application>
203 source code into C source and header files
204 </para>
205 <indexterm zone="vala valac">
206 <primary sortas="b-valac">valac</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="valadoc">
212 <term><command>valadoc</command></term>
213 <listitem>
214 <para>
215 is a documentation generator for generating API documentation
216 from <application>Vala</application> source code based on libvala
217 </para>
218 <indexterm zone="vala valadoc">
219 <primary sortas="b-valadoc">valadoc</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="vala-gen-introspect">
225 <term><command>vala-gen-introspect</command></term>
226 <listitem>
227 <para>
228 generates a GI file for GObject and
229 <application>GLib</application> based packages
230 </para>
231 <indexterm zone="vala vala-gen-introspect">
232 <primary sortas="b-vala-gen-introspect">vala-gen-introspect</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="vapigen">
238 <term><command>vapigen</command></term>
239 <listitem>
240 <para>
241 is an utility which generates <application>Vala</application> API
242 (VAPI) files from GI files
243 </para>
244 <indexterm zone="vala vapigen">
245 <primary sortas="b-vapigen">vapigen</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="libvala">
251 <term><filename class="libraryfile">libvala-&vala-major-version;.so</filename></term>
252 <listitem>
253 <para>
254 contains the <application>Vala</application> API functions
255 </para>
256 <indexterm zone="vala libvala">
257 <primary sortas="c-libvala">libvala-&vala-major-version;.so</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 </variablelist>
263
264 </sect2>
265
266</sect1>
Note: See TracBrowser for help on using the repository browser.