source: archive/js2.xml

trunk
Last change on this file was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 months ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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