[a1c3701] | 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 |
|
---|
[41aad3e3] | 7 | <!ENTITY vala-download-http "&gnome-download-http;/vala/&vala-major-version;/vala-&vala-version;.tar.xz">
|
---|
| 8 | <!ENTITY vala-download-ftp "&gnome-download-ftp;/vala/&vala-major-version;/vala-&vala-version;.tar.xz">
|
---|
[d385aba] | 9 | <!ENTITY vala-md5sum "734a14b7dcffa8628d7e22742c513c0a">
|
---|
[96f2797] | 10 | <!ENTITY vala-size "3.2 MB">
|
---|
[d385aba] | 11 | <!ENTITY vala-buildsize "110 MB (add 2 MB for tests)">
|
---|
| 12 | <!ENTITY vala-time "0.4 SBU (Using parallelism=4; add 0.5 SBU for tests)">
|
---|
[a1c3701] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="vala" xreflabel="Vala-&vala-version;">
|
---|
| 16 | <?dbhtml filename="vala.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Vala-&vala-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="vala">
|
---|
| 26 | <primary sortas="a-Vala">Vala</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Vala</title>
|
---|
| 31 |
|
---|
[7ded7e3] | 32 | <para>
|
---|
| 33 | <application>Vala</application> is a new programming language that
|
---|
| 34 | aims to bring modern programming language features to
|
---|
| 35 | <application>GNOME</application> developers without imposing any
|
---|
| 36 | additional runtime requirements and without using a different ABI
|
---|
| 37 | compared to applications and libraries written in C.
|
---|
| 38 | </para>
|
---|
[a1c3701] | 39 |
|
---|
[3a7568f] | 40 | &lfs82_checked;
|
---|
[a1c3701] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
[7ded7e3] | 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&vala-download-http;"/>
|
---|
| 47 | </para>
|
---|
[a1c3701] | 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
[7ded7e3] | 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&vala-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
[a1c3701] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[7ded7e3] | 55 | <para>
|
---|
| 56 | Download MD5 sum: &vala-md5sum;
|
---|
| 57 | </para>
|
---|
[a1c3701] | 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
[7ded7e3] | 60 | <para>
|
---|
| 61 | Download size: &vala-size;
|
---|
| 62 | </para>
|
---|
[a1c3701] | 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
[7ded7e3] | 65 | <para>
|
---|
| 66 | Estimated disk space required: &vala-buildsize;
|
---|
| 67 | </para>
|
---|
[a1c3701] | 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
[7ded7e3] | 70 | <para>
|
---|
| 71 | Estimated build time: &vala-time;
|
---|
| 72 | </para>
|
---|
[a1c3701] | 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
[e1617c94] | 75 | <!--
|
---|
[80454f5] | 76 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 77 | <itemizedlist spacing="compact">
|
---|
| 78 | <listitem>
|
---|
| 79 | <para>
|
---|
| 80 | Required patch:
|
---|
[4574961] | 81 | <ulink url="&patch-root;/vala-&vala-version;-upstream_fixes-2.patch"/>
|
---|
[80454f5] | 82 | </para>
|
---|
| 83 | </listitem>
|
---|
[e1617c94] | 84 | </itemizedlist>-->
|
---|
[80454f5] | 85 |
|
---|
[a1c3701] | 86 | <bridgehead renderas="sect3">Vala Dependencies</bridgehead>
|
---|
| 87 |
|
---|
| 88 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[b8a081c] | 89 | <para role="required">
|
---|
[5637ae8] | 90 | <xref linkend="glib2"/>
|
---|
[b8a081c] | 91 | </para>
|
---|
[a1c3701] | 92 |
|
---|
| 93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[b8a081c] | 94 | <para role="optional">
|
---|
[5637ae8] | 95 | <xref linkend="dbus"/> (Required for the tests),
|
---|
| 96 | <xref linkend="graphviz"/> (Required for valadoc),
|
---|
[7f80ece] | 97 | <xref linkend="libxslt"/> (Required for generating the documentation), and
|
---|
| 98 | <ulink url="https://ftp.gnu.org/gnu/help2man/">help2man</ulink>
|
---|
[b8a081c] | 99 | </para>
|
---|
[a1c3701] | 100 |
|
---|
| 101 | <para condition="html" role="usernotes">User Notes:
|
---|
[7ded7e3] | 102 | <ulink url="&blfs-wiki;/vala"/>
|
---|
| 103 | </para>
|
---|
[a1c3701] | 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | <sect2 role="installation">
|
---|
| 107 | <title>Installation of Vala</title>
|
---|
| 108 |
|
---|
| 109 | <para>Install <application>Vala</application> by running the following
|
---|
| 110 | commands:</para>
|
---|
| 111 |
|
---|
[5637ae8] | 112 | <note>
|
---|
| 113 | <para>The two sed commands and the autoreconf command below are required
|
---|
| 114 | if the optional dependency <xref linkend="graphviz"/> is not installed.
|
---|
| 115 | This will allow building the valadoc prgram and libraries that can be used
|
---|
| 116 | to generate API documentation in HTML format from Vala source code.
|
---|
| 117 | </para>
|
---|
| 118 | </note>
|
---|
| 119 |
|
---|
[b1c9a4b] | 120 | <screen><userinput>sed -i '115d; 121,137d; 139,140d' configure.ac &&
|
---|
[5637ae8] | 121 | sed -i '/valadoc/d' Makefile.am &&
|
---|
| 122 | ACLOCAL= autoreconf -fiv &&
|
---|
| 123 |
|
---|
| 124 | ./configure --prefix=/usr &&
|
---|
[a1c3701] | 125 | make</userinput></screen>
|
---|
| 126 |
|
---|
[7ded7e3] | 127 | <para>
|
---|
[e1617c94] | 128 | To test the results, issue: <command>make check</command>.
|
---|
[7ded7e3] | 129 | </para>
|
---|
[a1c3701] | 130 |
|
---|
[7ded7e3] | 131 | <para>
|
---|
| 132 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 133 | </para>
|
---|
[a1c3701] | 134 |
|
---|
| 135 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 136 |
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="content">
|
---|
| 140 | <title>Contents</title>
|
---|
| 141 |
|
---|
| 142 | <segmentedlist>
|
---|
| 143 | <segtitle>Installed Programs</segtitle>
|
---|
| 144 | <segtitle>Installed Library</segtitle>
|
---|
| 145 | <segtitle>Installed Directories</segtitle>
|
---|
| 146 |
|
---|
| 147 | <seglistitem>
|
---|
[e3dcc43] | 148 | <seg>
|
---|
[96f2797] | 149 | vala,
|
---|
[03c4924] | 150 | vala-&vala-major-version;,
|
---|
[96f2797] | 151 | valac,
|
---|
[488b738f] | 152 | valadoc (not built if the sed is applied),
|
---|
| 153 | vala-gen-introspect, and
|
---|
[96f2797] | 154 | vapigen (symlinks);
|
---|
| 155 |
|
---|
| 156 | valac-&vala-major-version;,
|
---|
[488b738f] | 157 | valadoc-&vala-major-version; (not built if the sed is applied),
|
---|
| 158 | vala-gen-introspect-&vala-major-version;, and
|
---|
[5ee1266] | 159 | vapigen-&vala-major-version;
|
---|
[e3dcc43] | 160 | </seg>
|
---|
| 161 | <seg>
|
---|
[96f2797] | 162 | libvala-&vala-major-version;.so and
|
---|
[488b738f] | 163 | libvaladoc-&vala-major-version;.so (not built if the sed is applied)
|
---|
[e3dcc43] | 164 | </seg>
|
---|
[0913f48] | 165 | <seg>
|
---|
[41aad3e3] | 166 | /usr/include/vala-&vala-major-version;,
|
---|
[488b738f] | 167 | /usr/include/valadoc-&vala-major-version; (not built if the sed is applied),
|
---|
[41aad3e3] | 168 | /usr/lib/vala-&vala-major-version;,
|
---|
[488b738f] | 169 | /usr/lib/valadoc (not built if the sed is applied),
|
---|
[96f2797] | 170 | /usr/share/vala,
|
---|
[488b738f] | 171 | /usr/share/valadoc (not built if the sed is applied),
|
---|
[96f2797] | 172 | /usr/share/devhelp/books/vala-&vala-major-version;, and
|
---|
[41aad3e3] | 173 | /usr/share/vala-&vala-major-version;
|
---|
[0913f48] | 174 | </seg>
|
---|
[a1c3701] | 175 | </seglistitem>
|
---|
| 176 | </segmentedlist>
|
---|
| 177 |
|
---|
| 178 | <variablelist>
|
---|
| 179 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 180 | <?dbfo list-presentation="list"?>
|
---|
| 181 | <?dbhtml list-presentation="table"?>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="valac">
|
---|
| 184 | <term><command>valac</command></term>
|
---|
| 185 | <listitem>
|
---|
[7ded7e3] | 186 | <para>
|
---|
| 187 | is a compiler that translates <application>Vala</application>
|
---|
| 188 | source code into C source and header files.
|
---|
| 189 | </para>
|
---|
[a1c3701] | 190 | <indexterm zone="vala valac">
|
---|
| 191 | <primary sortas="b-valac">valac</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
[e3dcc43] | 196 | <varlistentry id="vala-gen-introspect">
|
---|
| 197 | <term><command>vala-gen-introspect</command></term>
|
---|
| 198 | <listitem>
|
---|
[7ded7e3] | 199 | <para>
|
---|
[816595b] | 200 | generates a GI file for GObject and
|
---|
| 201 | <application>GLib</application> based packages.
|
---|
[7ded7e3] | 202 | </para>
|
---|
[e3dcc43] | 203 | <indexterm zone="vala vala-gen-introspect">
|
---|
| 204 | <primary sortas="b-vala-gen-introspect">vala-gen-introspect</primary>
|
---|
| 205 | </indexterm>
|
---|
| 206 | </listitem>
|
---|
| 207 | </varlistentry>
|
---|
| 208 |
|
---|
[488b738f] | 209 | <!--
|
---|
[a1c3701] | 210 | <varlistentry id="vapicheck">
|
---|
| 211 | <term><command>vapicheck</command></term>
|
---|
| 212 | <listitem>
|
---|
[7ded7e3] | 213 | <para>
|
---|
| 214 | verifies the generated bindings.
|
---|
| 215 | </para>
|
---|
[a1c3701] | 216 | <indexterm zone="vala vapicheck">
|
---|
| 217 | <primary sortas="b-vapicheck">vapicheck</primary>
|
---|
| 218 | </indexterm>
|
---|
| 219 | </listitem>
|
---|
[488b738f] | 220 | </varlistentry>-->
|
---|
[a1c3701] | 221 |
|
---|
| 222 | <varlistentry id="vapigen">
|
---|
| 223 | <term><command>vapigen</command></term>
|
---|
| 224 | <listitem>
|
---|
[7ded7e3] | 225 | <para>
|
---|
[2c7a1ce] | 226 | is an utility which generates <application>Vala</application> API
|
---|
[7ded7e3] | 227 | (VAPI) files from GI files.
|
---|
| 228 | </para>
|
---|
[a1c3701] | 229 | <indexterm zone="vala vapigen">
|
---|
| 230 | <primary sortas="b-vapigen">vapigen</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 | </listitem>
|
---|
| 233 | </varlistentry>
|
---|
| 234 |
|
---|
[816595b] | 235 | <varlistentry id="libvala">
|
---|
[41aad3e3] | 236 | <term><filename class="libraryfile">libvala-&vala-major-version;.so</filename></term>
|
---|
[a1c3701] | 237 | <listitem>
|
---|
[7ded7e3] | 238 | <para>
|
---|
| 239 | contains the <application>Vala</application> API functions.
|
---|
| 240 | </para>
|
---|
[816595b] | 241 | <indexterm zone="vala libvala">
|
---|
[41aad3e3] | 242 | <primary sortas="c-libvala">libvala-&vala-major-version;.so</primary>
|
---|
[a1c3701] | 243 | </indexterm>
|
---|
| 244 | </listitem>
|
---|
| 245 | </varlistentry>
|
---|
| 246 |
|
---|
| 247 | </variablelist>
|
---|
| 248 |
|
---|
| 249 | </sect2>
|
---|
| 250 |
|
---|
| 251 | </sect1>
|
---|