source: archive/js2.xml

trunk
Last change on this file was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 6.3 KB
RevLine 
[caa9a351]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
[604bf744]7 <!ENTITY JS2-download-http "http://ftp.mozilla.org/pub/mozilla.org/js/mozjs-&JS2-version;.tar.bz2">
8<!-- <!ENTITY JS2-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/js/mozjs-&JS2-version;.tar.bz2">-->
9 <!ENTITY JS2-download-ftp " ">
[caa9a351]10 <!ENTITY JS2-md5sum "5db79c10e049a2dc117a6e6a3bc78a8e">
11 <!ENTITY JS2-size "15 MB">
12 <!ENTITY JS2-buildsize "1.8 GB">
13 <!ENTITY JS2-time "4.2 SBU (additional 1.6 SBU for the tests)">
14]>
15
16<sect1 id="JS2" xreflabel="JS2-&JS2-version;">
17 <?dbhtml filename="JS2.html"?>
18
19
20 <title>JS-&JS2-version;</title>
21
22 <indexterm zone="JS2">
23 <primary sortas="a-JS2">JS2</primary>
24 </indexterm>
25
26 <sect2 role="package">
27 <title>Introduction to JS</title>
28
29 <para>
30 <application>JS</application> is Mozilla's JavaScript engine
31 written in C/C++.
32 </para>
33
[6827378]34 &lfs80_checked;
[caa9a351]35
36 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>
40 Download (HTTP): <ulink url="&JS2-download-http;"/>
41 </para>
42 </listitem>
43 <listitem>
44 <para>
45 Download (FTP): <ulink url="&JS2-download-ftp;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download MD5 sum: &JS2-md5sum;
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download size: &JS2-size;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Estimated disk space required: &JS2-buildsize;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated build time: &JS2-time;
66 </para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">JS Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para role="required">
74 <xref linkend="libffi"/>,
75 <xref linkend="nspr"/>,
76 <xref linkend="python2"/> and
77 <xref linkend="zip"/>
78 </para>
79
80 <bridgehead renderas="sect4">Optional</bridgehead>
81 <para role="optional">
82 <xref linkend="doxygen"/>
83 </para>
84
85 <para condition="html" role="usernotes">User Notes:
86 <ulink url="&blfs-wiki;/JS2"/>
87 </para>
88 </sect2>
89
90 <sect2 role="installation">
91 <title>Installation of JS</title>
92
[e9c856f]93 <note><para>
94 This package can be installed without problems, if you have
95 installed <xref linkend="JS"/>. It is necessary to set
96 <command>SHELL=/bin/bash</command> if you are working in chroot.
97 </para></note>
98
[caa9a351]99 <para>
100 Install <application>JS</application> by running the
101 following commands:
102 </para>
103
104<screen><userinput>cd js/src &amp;&amp;
[8b7f5b9]105
106sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl &amp;&amp;
107
[caa9a351]108./configure --prefix=/usr \
109 --enable-readline \
110 --enable-threadsafe \
111 --with-system-ffi \
112 --with-system-nspr &amp;&amp;
113make</userinput></screen>
114
115 <para>
116 To test the results, issue: <command>make check</command>.
117 </para>
118
119 <para>
120 Now, as the <systemitem class="username">root</systemitem>
121 user:
122 </para>
123
124<screen role="root"><userinput>make install &amp;&amp;
125find /usr/include/mozjs-24/ \
126 /usr/lib/libmozjs-24.a \
127 /usr/lib/pkgconfig/mozjs-24.pc \
128 -type f -exec chmod -v 644 {} \;</userinput></screen>
129
130 </sect2>
131
132 <sect2 role="commands">
133 <title>Command Explanations</title>
134
[8b7f5b9]135 <para>
136 <command>sed ... config/milestone.pl</command>: Fix an
137 issue caused by perl-5.22.0 and later.
138 </para>
139
[caa9a351]140 <para>
[f1d7196]141 <parameter>--enable-threadsafe</parameter>: This switch enables
[caa9a351]142 support for multiple threads.
143 </para>
144
145 <para>
[f1d7196]146 <parameter>--enable-readline</parameter>: This switch enables
[caa9a351]147 <application>Readline</application> support in JS shell.
148 </para>
149
150 <para>
[f1d7196]151 <parameter>--with-system-ffi</parameter>: This switch forces the
[caa9a351]152 package to link to the system version of <application>libffi</application>
153 instead of using its included, and now old, version.
154 </para>
155
156 <para>
[f1d7196]157 <parameter>--with-system-nspr</parameter>: This switch forces the
[caa9a351]158 package to link to the system version of <application>NSPR</application>
159 instead of using its included, and now old, version.
160 </para>
161
162 </sect2>
163
164 <sect2 role="content">
165 <title>Contents</title>
166
167 <segmentedlist>
168 <segtitle>Installed Programs</segtitle>
169 <segtitle>Installed Libraries</segtitle>
170 <segtitle>Installed Directory</segtitle>
171
172 <seglistitem>
173 <seg>
174 js24 and js24-config
175 </seg>
176 <seg>
177 libmozjs-24.a and libmozjs-24.so
178 </seg>
179 <seg>
180 /usr/include/mozjs-24
181 </seg>
182 </seglistitem>
183 </segmentedlist>
184
185 <variablelist>
186 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
187 <?dbfo list-presentation="list"?>
188 <?dbhtml list-presentation="table"?>
189
190 <varlistentry id="js24">
191 <term><command>js24</command></term>
192 <listitem>
193 <para>
194 provides a command line interface to the JavaScript engine.
195 </para>
196 <indexterm zone="JS2 js24">
197 <primary sortas="b-js24">js24</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="js24-config">
203 <term><command>js24-config</command></term>
204 <listitem>
205 <para>
206 is used to find out <application>JS</application>
207 compiler and linker flags.
208 </para>
209 <indexterm zone="JS2 js24-config">
210 <primary sortas="b-js24-config">js24-config</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 <varlistentry id="libmozjs2">
216 <term><filename class="libraryfile">libmozjs-24.so</filename></term>
217 <listitem>
218 <para>
219 contains the <application>Mozilla JavaScript</application> API functions.
220 </para>
221 <indexterm zone="JS2 libmozjs2">
222 <primary sortas="c-libmozjs2">libmozjs-24.so</primary>
223 </indexterm>
224 </listitem>
225 </varlistentry>
226
227 </variablelist>
228
229 </sect2>
230
231</sect1>
Note: See TracBrowser for help on using the repository browser.