Author: ken Date: 2012-01-27 12:58:55 -0700 (Fri, 27 Jan 2012) New Revision: 9243
Added: trunk/BOOK/general/prog/spidermonkey.xml Modified: trunk/BOOK/general.ent trunk/BOOK/general/prog/prog.xml trunk/BOOK/introduction/welcome/changelog.xml Log: Add SpiderMonkey. Modified: trunk/BOOK/general/prog/prog.xml =================================================================== --- trunk/BOOK/general/prog/prog.xml 2012-01-27 18:05:39 UTC (rev 9242) +++ trunk/BOOK/general/prog/prog.xml 2012-01-27 19:58:55 UTC (rev 9243) @@ -52,6 +52,7 @@ <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="subversion.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="svnserver.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="slang.xml"/> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="spidermonkey.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tk.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="other-tools.xml"/> Added: trunk/BOOK/general/prog/spidermonkey.xml =================================================================== --- trunk/BOOK/general/prog/spidermonkey.xml (rev 0) +++ trunk/BOOK/general/prog/spidermonkey.xml 2012-01-27 19:58:55 UTC (rev 9243) @@ -0,0 +1,172 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ + <!ENTITY % general-entities SYSTEM "../../general.ent"> + %general-entities; + + <!ENTITY SpiderMonkey-download-http "https://ftp.mozilla.org/mozilla.org/js/js185-&spidermonkey-version;.tar.gz"> + <!ENTITY SpiderMonkey-download-ftp " "> + <!ENTITY SpiderMonkey-md5sum "a4574365938222adca0a6bd33329cb32"> + <!ENTITY SpiderMonkey-size "5.9 MB"> + <!ENTITY SpiderMonkey-buildsize "99 MB"> + <!ENTITY SpiderMonkey-time "1.1 SBU"> +]> + +<sect1 id="SpiderMonkey" xreflabel="SpiderMonkey-&spidermonkey-version;"> + <?dbhtml filename="SpiderMonkey.html"?> + + <sect1info> + <othername>$LastChangedBy$</othername> + <date>$Date$</date> + </sect1info> + + <title>SpiderMonkey-&spidermonkey-version;</title> + + <indexterm zone="SpiderMonkey"> + <primary sortas="a-SpiderMonkey">SpiderMonkey</primary> + </indexterm> + + <sect2 role="package"> + <title>Introduction to SpiderMonkey</title> + + <para><application>SpiderMonkey</application> is Mozilla's JavaScript engine + written in C/C++. The most recent standalone source code release implements + JavaScript 1.8.5.</para> + + &lfs70_built; + + <bridgehead renderas="sect3">Package Information</bridgehead> + <itemizedlist spacing="compact"> + <listitem> + <para>Download (HTTP): <ulink url="&SpiderMonkey-download-http;"/></para> + </listitem> + <listitem> + <para>Download (FTP): <ulink url="&SpiderMonkey-download-ftp;"/></para> + </listitem> + <listitem> + <para>Download MD5 sum: &SpiderMonkey-md5sum;</para> + </listitem> + <listitem> + <para>Download size: &SpiderMonkey-size;</para> + </listitem> + <listitem> + <para>Estimated disk space required: &SpiderMonkey-buildsize;</para> + </listitem> + <listitem> + <para>Estimated build time: &SpiderMonkey-time;</para> + </listitem> + </itemizedlist> + + <bridgehead renderas="sect3">Additional Downloads</bridgehead> + <itemizedlist spacing='compact'> + <listitem> + <para>Recommended Patch: <ulink + url="&patch-root;/js185-&spidermonkey-version;-DESTDIR-1.patch"/></para> + </listitem> + </itemizedlist> + + <bridgehead renderas="sect3">SpiderMonkey Dependencies</bridgehead> + + <bridgehead renderas="sect4">Required</bridgehead> + <para role="required"><xref linkend="nspr"/>, + <xref linkend="python"/> and + <xref linkend="zip"/></para> + + <para condition="html" role="usernotes">User Notes: + <ulink url="&blfs-wiki;/SpiderMonkey"/></para> + + </sect2> + + <sect2 role="installation"> + <title>Installation of SpiderMonkey</title> + + <para>Install <application>SpiderMonkey</application> by running the following + commands:</para> + +<screen><userinput>patch -Np1 -i ../js185-&spidermonkey-version;-DESTDIR-1.patch && +cd js/src && +./configure --prefix=/usr \ + --enable-threadsafe \ + --with-system-nspr && +make</userinput></screen> + + <para>To test the results, issue: <command>make check</command>.</para> + + <para>Now, as the <systemitem class="username">root</systemitem> user:</para> + +<screen role="root"><userinput>make install</userinput></screen> + + </sect2> + + <sect2 role="commands"> + <title>Command Explanations</title> + + <para><command>patch -Np1 -i ../js185-&spidermonkey-version;-DESTDIR-1.patch</command>: + If <application>SpiderMonkey</application> is installed in a DESTDIR, this patch fixes + the symlinks for <filename>libmozjs185.so</filename> so that they do not point to the + <emphasis>build</emphasis> tree.</para> + + <para><parameter>--enable-threadsafe</parameter>: This switch enables support + for multiple threads.</para> + + <para><parameter>--with-system-nspr</parameter>: This parameter forces the + package to link to the system version of <application>nspr</application> + instead of using its included, and now old, version.</para> + + </sect2> + + <sect2 role="content"> + <title>Contents</title> + + <segmentedlist> + <segtitle>Installed Program</segtitle> + <segtitle>Installed Libraries</segtitle> + <segtitle>Installed Directory</segtitle> + + <seglistitem> + <seg>js-config</seg> + <seg>libmozjs185-1.0.a and libmozjs185.so</seg> + <seg>/usr/include/js</seg> + </seglistitem> + </segmentedlist> + + <variablelist> + <bridgehead renderas="sect3">Short Descriptions</bridgehead> + <?dbfo list-presentation="list"?> + <?dbhtml list-presentation="table"?> + + <varlistentry id="js-config"> + <term><command>js-config</command></term> + <listitem> + <para>does this .....</para> + <indexterm zone="SpiderMonkey js-config"> + <primary sortas="b-js-config">js-config</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="libmozjs185-1"> + <term><filename class='libraryfile'>libmozjs185-1.0.a</filename></term> + <listitem> + <para>contains functions that .....</para> + <indexterm zone="SpiderMonkey libmozjs185-1"> + <primary sortas="c-libmozjs185-1">libmozjs185-1.0.a</primary> + </indexterm> + </listitem> + </varlistentry> + + <varlistentry id="libmozjs185"> + <term><filename class='libraryfile'>libmozjs185.so</filename></term> + <listitem> + <para>contains functions that .....</para> + <indexterm zone="SpiderMonkey libmozjs185"> + <primary sortas="c-libmozjs185">libmozjs185.so</primary> + </indexterm> + </listitem> + </varlistentry> + + </variablelist> + + </sect2> + +</sect1> Property changes on: trunk/BOOK/general/prog/spidermonkey.xml ___________________________________________________________________ Added: svn:keywords + Date LastChangedBy Modified: trunk/BOOK/general.ent =================================================================== --- trunk/BOOK/general.ent 2012-01-27 18:05:39 UTC (rev 9242) +++ trunk/BOOK/general.ent 2012-01-27 19:58:55 UTC (rev 9243) @@ -162,7 +162,6 @@ <!-- Chapter 8 --> <!ENTITY pcre-version "8.12"> <!ENTITY popt-version "1.16"> -<!ENTITY slang-version "2.2.4"> <!ENTITY gamin-version "0.1.10"> <!ENTITY libxml2-version "2.7.8"> <!ENTITY libxslt-version "1.1.26"> @@ -363,6 +362,8 @@ <!ENTITY dbus-python-version "0.84.0"> <!ENTITY ruby-version "1.9.2-p290"> <!ENTITY subversion-version "1.7.1"> +<!ENTITY slang-version "2.2.4"> +<!ENTITY spidermonkey-version "1.1.0"> <!ENTITY tcl-version "8.5.10"> <!ENTITY tk-version "8.5.9"> Modified: trunk/BOOK/introduction/welcome/changelog.xml =================================================================== --- trunk/BOOK/introduction/welcome/changelog.xml 2012-01-27 18:05:39 UTC (rev 9242) +++ trunk/BOOK/introduction/welcome/changelog.xml 2012-01-27 19:58:55 UTC (rev 9243) @@ -45,7 +45,8 @@ <para>January 28th, 2012</para> <itemizedlist> <listitem> - <para>[ken] - Add gdb-7.3.1 from Wayne.</para> + <para>[ken] - Add gdb-7.3.1 and SpiderMonkey (js185-1.0.0) from Wayne. + </para> </listitem> </itemizedlist> </listitem> -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
