source: general/genlib/js2.xml@ a3394a71

systemd-13485
Last change on this file since a3394a71 was ac38e9dc, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Import back into SVN from Github

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16309 af4574ff-66df-0310-9fd7-8a98e5e911e0

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