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 gjs-download-http "&gnome-download-http;/gjs/1.66/gjs-&gjs-version;.tar.xz">
|
---|
8 | <!ENTITY gjs-download-ftp "&gnome-download-ftp;/gjs/1.66/gjs-&gjs-version;.tar.xz">
|
---|
9 | <!ENTITY gjs-md5sum "d43a936f5edd8ff36ecc54684b26d82a">
|
---|
10 | <!ENTITY gjs-size "432 KB">
|
---|
11 | <!ENTITY gjs-buildsize "76 MB (with tests)">
|
---|
12 | <!ENTITY gjs-time "0.8 SBU (with tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="gjs" xreflabel="Gjs-&gjs-version;">
|
---|
16 | <?dbhtml filename="gjs.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>Gjs-&gjs-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="gjs">
|
---|
26 | <primary sortas="a-Gjs">Gjs</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to Gjs</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | <application>Gjs</application> is a set of Javascript bindings for
|
---|
34 | <application>GNOME</application>.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs10_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&gjs-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&gjs-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &gjs-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &gjs-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &gjs-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &gjs-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
74 | <itemizedlist spacing="compact">
|
---|
75 | <listitem>
|
---|
76 | <para>
|
---|
77 | Required patch:
|
---|
78 | <ulink url="&patch-root;/gjs-&gjs-version;-upstream_fixes-1.patch"/>
|
---|
79 | </para>
|
---|
80 | </listitem>
|
---|
81 | </itemizedlist>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect3">Gjs Dependencies</bridgehead>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
86 | <para role="required">
|
---|
87 | <xref linkend="cairo"/>,
|
---|
88 | <xref linkend="dbus"/>,
|
---|
89 | <xref linkend="gobject-introspection"/>, and
|
---|
90 | <xref linkend="js78"/>
|
---|
91 | </para>
|
---|
92 |
|
---|
93 | <bridgehead renderas="sect4">Recommended (required for GNOME)</bridgehead>
|
---|
94 | <para role="recommended">
|
---|
95 | <xref linkend="gtk3"/>
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
99 | <para role="optional">
|
---|
100 | <xref linkend="sysprof"/>,
|
---|
101 | <xref linkend="valgrind"/> (for tests),
|
---|
102 | <ulink url="http://dtrace.org/blogs/about">DTrace</ulink>,
|
---|
103 | <ulink url="http://ltp.sourceforge.net/coverage/lcov.php">LCOV</ulink>, and
|
---|
104 | <ulink url="https://sourceware.org/systemtap">Systemtap</ulink>
|
---|
105 | </para>
|
---|
106 |
|
---|
107 | <para condition="html" role="usernotes">User Notes:
|
---|
108 | <ulink url="&blfs-wiki;/gjs"/>
|
---|
109 | </para>
|
---|
110 | </sect2>
|
---|
111 |
|
---|
112 | <sect2 role="installation">
|
---|
113 | <title>Installation of Gjs</title>
|
---|
114 | <!--
|
---|
115 | <para>
|
---|
116 | First, work around a bug in meson caused by support for Windows NT:
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | When scripting, 'ninja install' fails because the 'gjs' symlink is
|
---|
120 | generated before 'gjs-console' is installed. This seems to be due
|
---|
121 | to adding symbolic link support for Windows NT-based platforms.
|
---|
122 | This shouldn't affect us, so let's create the symlink manually
|
---|
123 | like we do in other packages.
|
---|
124 | Invalid with 1.64.3. Make sure you don't have DESTDIR
|
---|
125 | set, such as you'd do in an update script.
|
---|
126 |
|
---|
127 | <screen><userinput remap="pre">sed -i '/symlink-gjs.py/s/^/#/g' meson.build</userinput></screen>-->
|
---|
128 |
|
---|
129 | <para>
|
---|
130 | First, apply a patch to fix some regressions in this version of gjs:
|
---|
131 | </para>
|
---|
132 |
|
---|
133 | <screen><userinput remap="pre">patch -Np1 -i ../gjs-&gjs-version;-upstream_fixes-1.patch</userinput></screen>
|
---|
134 |
|
---|
135 | <para>
|
---|
136 | Install <application>Gjs</application> by running the following
|
---|
137 | commands:
|
---|
138 | </para>
|
---|
139 |
|
---|
140 | <screen><userinput>mkdir gjs-build &&
|
---|
141 | cd gjs-build &&
|
---|
142 |
|
---|
143 | meson --prefix=/usr .. &&
|
---|
144 | ninja</userinput></screen>
|
---|
145 |
|
---|
146 | <para>
|
---|
147 | To test the results, issue: <command>ninja test</command>. The
|
---|
148 | <application>GTK</application> and <application>Cairo</application>
|
---|
149 | tests will fail if not running in an Xorg session. Additionally, four
|
---|
150 | tests are currently known to fail:
|
---|
151 | <filename>gjs:C / API tests</filename>,
|
---|
152 | <filename>gjs:JS / GIMarshalling</filename>,
|
---|
153 | <filename>gjs:JS / Regress</filename>, and
|
---|
154 | <filename>gjs:JS / Gtk3</filename>.
|
---|
155 | </para>
|
---|
156 |
|
---|
157 | <para>
|
---|
158 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
159 | </para>
|
---|
160 |
|
---|
161 | <screen role="root"><userinput>ninja install &&
|
---|
162 | ln -sfv gjs-console /usr/bin/gjs</userinput></screen>
|
---|
163 |
|
---|
164 | </sect2>
|
---|
165 |
|
---|
166 | <sect2 role="content">
|
---|
167 | <title>Contents</title>
|
---|
168 |
|
---|
169 | <segmentedlist>
|
---|
170 | <segtitle>Installed Programs</segtitle>
|
---|
171 | <segtitle>Installed Library</segtitle>
|
---|
172 | <segtitle>Installed Directories</segtitle>
|
---|
173 |
|
---|
174 | <seglistitem>
|
---|
175 | <seg>
|
---|
176 | gjs (symlink) and gjs-console
|
---|
177 | </seg>
|
---|
178 | <seg>
|
---|
179 | libgjs.so
|
---|
180 | </seg>
|
---|
181 | <seg>
|
---|
182 | /usr/include/gjs-1.0,
|
---|
183 | /usr/lib/gjs,
|
---|
184 | /usr/libexec/installed-tests/gjs,
|
---|
185 | /usr/share/gjs-1.0, and
|
---|
186 | /usr/share/installed-tests/gjs
|
---|
187 | </seg>
|
---|
188 | </seglistitem>
|
---|
189 | </segmentedlist>
|
---|
190 |
|
---|
191 | <variablelist>
|
---|
192 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
193 | <?dbfo list-presentation="list"?>
|
---|
194 | <?dbhtml list-presentation="table"?>
|
---|
195 |
|
---|
196 | <varlistentry id="gjs-console">
|
---|
197 | <term><command>gjs-console</command></term>
|
---|
198 | <listitem>
|
---|
199 | <para>
|
---|
200 | contains a console to run <application>JavaScript</application>
|
---|
201 | commands.
|
---|
202 | </para>
|
---|
203 | <indexterm zone="gjs gjs-console">
|
---|
204 | <primary sortas="b-gjs-console">gjs-console</primary>
|
---|
205 | </indexterm>
|
---|
206 | </listitem>
|
---|
207 | </varlistentry>
|
---|
208 |
|
---|
209 | <varlistentry id="libgjs">
|
---|
210 | <term><filename class="libraryfile">libgjs.so</filename></term>
|
---|
211 | <listitem>
|
---|
212 | <para>
|
---|
213 | contains the <application>GNOME</application> JavaScript bindings.
|
---|
214 | </para>
|
---|
215 | <indexterm zone="gjs libgjs">
|
---|
216 | <primary sortas="c-libgjs">libgjs.so</primary>
|
---|
217 | </indexterm>
|
---|
218 | </listitem>
|
---|
219 | </varlistentry>
|
---|
220 |
|
---|
221 | </variablelist>
|
---|
222 |
|
---|
223 | </sect2>
|
---|
224 |
|
---|
225 | </sect1>
|
---|