source: archive/js.xml@ fa91d2e

11.0 qt5new trunk
Last change on this file since fa91d2e was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 5 months ago

more SVN prop clean up

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

  • Property mode set to 100644
File size: 6.1 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 JS-download-http "http://ftp.mozilla.org/pub/mozilla.org/js/mozjs&JS-version;.tar.gz">
8<!-- <!ENTITY JS-download-ftp "ftp://ftp.mozilla.org/pub/mozilla.org/js/mozjs&JS-version;.tar.gz">-->
9 <!ENTITY JS-download-ftp " ">
10 <!ENTITY JS-md5sum "20b6f8f1140ef6e47daa3b16965c9202">
11 <!ENTITY JS-size "6.5 MB">
12 <!ENTITY JS-buildsize "1.2 GB">
13 <!ENTITY JS-time "5.0 SBU">
14]>
15
16<sect1 id="JS" xreflabel="JS-&JS-version;">
17 <?dbhtml filename="js.html"?>
18
19 <sect1info>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>JS-&JS-version;</title>
24
25 <indexterm zone="JS">
26 <primary sortas="a-JS">JS</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="&JS-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&JS-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &JS-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &JS-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &JS-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &JS-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;/JS"/>
90 </para>
91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of JS</title>
95
96 <para>
97 Install <application>JS</application> by running the
98 following commands:
99 </para>
100
101<screen><userinput>cd js/src &amp;&amp;
102
103sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl &amp;&amp;
104
105./configure --prefix=/usr \
106 --enable-readline \
107 --enable-threadsafe \
108 --with-system-ffi \
109 --with-system-nspr &amp;&amp;
110make</userinput></screen>
111
112 <para>
113 To test the results, issue: <command>make check</command>.
114 </para>
115
116 <para>
117 Now, as the <systemitem class="username">root</systemitem>
118 user:
119 </para>
120
121<screen role="root"><userinput>make install &amp;&amp;
122
123find /usr/include/js-17.0/ \
124 /usr/lib/libmozjs-17.0.a \
125 /usr/lib/pkgconfig/mozjs-17.0.pc \
126 -type f -exec chmod -v 644 {} \;</userinput></screen>
127
128 </sect2>
129
130 <sect2 role="commands">
131 <title>Command Explanations</title>
132
133 <para>
134 <command>sed ... config/milestone.pl</command>: Fix an
135 issue caused by perl-5.22.0 and later.
136 </para>
137
138 <para>
139 <parameter>--enable-threadsafe</parameter>: This switch enables
140 support for multiple threads.
141 </para>
142
143 <para>
144 <parameter>--enable-readline</parameter>: This switch enables
145 <application>Readline</application> support in JS shell.
146 </para>
147
148 <para>
149 <parameter>--with-system-ffi</parameter>: This switch forces the
150 package to link to the system version of <application>libffi</application>
151 instead of using its included, and now old, version.
152 </para>
153
154 <para>
155 <parameter>--with-system-nspr</parameter>: This switch forces the
156 package to link to the system version of <application>NSPR</application>
157 instead of using its included, and now old, version.
158 </para>
159
160 </sect2>
161
162 <sect2 role="content">
163 <title>Contents</title>
164
165 <segmentedlist>
166 <segtitle>Installed Programs</segtitle>
167 <segtitle>Installed Libraries</segtitle>
168 <segtitle>Installed Directory</segtitle>
169
170 <seglistitem>
171 <seg>
172 js17 and js17-config
173 </seg>
174 <seg>
175 libmozjs-17.0.a and libmozjs-17.0.so
176 </seg>
177 <seg>
178 /usr/include/js-17.0
179 </seg>
180 </seglistitem>
181 </segmentedlist>
182
183 <variablelist>
184 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
185 <?dbfo list-presentation="list"?>
186 <?dbhtml list-presentation="table"?>
187
188 <varlistentry id="js17">
189 <term><command>js17</command></term>
190 <listitem>
191 <para>
192 provides a command line interface to the JavaScript engine.
193 </para>
194 <indexterm zone="JS js17">
195 <primary sortas="b-js17">js17</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 <varlistentry id="js17-config">
201 <term><command>js17-config</command></term>
202 <listitem>
203 <para>
204 is used to find out <application>JS</application>
205 compiler and linker flags.
206 </para>
207 <indexterm zone="JS js17-config">
208 <primary sortas="b-js17-config">js17-config</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry id="libmozjs">
214 <term><filename class="libraryfile">libmozjs-17.0.so</filename></term>
215 <listitem>
216 <para>
217 contains the <application>Mozilla JavaScript</application> API functions.
218 </para>
219 <indexterm zone="JS libmozjs">
220 <primary sortas="c-libmozjs">libmozjs-17.0.so</primary>
221 </indexterm>
222 </listitem>
223 </varlistentry>
224
225 </variablelist>
226
227 </sect2>
228
229</sect1>
Note: See TracBrowser for help on using the repository browser.