[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[98d5a95] | 7 | <!ENTITY slang-download-http " ">
|
---|
[574c5ae] | 8 | <!ENTITY slang-download-ftp "ftp://space.mit.edu/pub/davis/slang/v2.2/slang-&slang-version;.tar.bz2">
|
---|
[98d5a95] | 9 | <!ENTITY slang-md5sum "7fcfd447e378f07dd0c0bae671fe6487">
|
---|
| 10 | <!ENTITY slang-size "1.4 MB">
|
---|
| 11 | <!ENTITY slang-buildsize "9.4 MB">
|
---|
| 12 | <!ENTITY slang-time "0.4 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[2027019] | 15 | <sect1 id="slang" xreflabel="S-Lang-&slang-version;">
|
---|
[c494f25] | 16 | <?dbhtml filename="slang.html"?>
|
---|
[8e75f8b9] | 17 |
|
---|
[c494f25] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[8e75f8b9] | 22 |
|
---|
[2027019] | 23 | <title>S-Lang-&slang-version;</title>
|
---|
[8e75f8b9] | 24 |
|
---|
[c494f25] | 25 | <indexterm zone="slang">
|
---|
[2027019] | 26 | <primary sortas="a-S-Lang">S-Lang</primary>
|
---|
[c494f25] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[2027019] | 30 | <title>Introduction to S-Lang</title>
|
---|
[8e75f8b9] | 31 |
|
---|
[826f430] | 32 | <para><application>S-Lang</application> is an interpreted language that
|
---|
[6fcb1b9] | 33 | may be embedded into an application to make the application extensible.
|
---|
[826f430] | 34 | It provides facilities required by interactive applications such as
|
---|
| 35 | display/screen management, keyboard input and keymaps.</para>
|
---|
[8e75f8b9] | 36 |
|
---|
[cf67717] | 37 | &lfs75_checked;
|
---|
[574c5ae] | 38 |
|
---|
[c494f25] | 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>Download (HTTP): <ulink url="&slang-download-http;"/></para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (FTP): <ulink url="&slang-download-ftp;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download MD5 sum: &slang-md5sum;</para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download size: &slang-size;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Estimated disk space required: &slang-buildsize;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated build time: &slang-time;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | </itemizedlist>
|
---|
[8e75f8b9] | 60 |
|
---|
[2027019] | 61 | <bridgehead renderas="sect3">S-Lang Dependencies</bridgehead>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[98d5a95] | 64 | <para role="optional">
|
---|
| 65 | <xref linkend="libpng"/>,
|
---|
| 66 | <xref linkend="pcre"/>, and
|
---|
| 67 | <ulink url="http://www.geocities.jp/kosako3/oniguruma/">Oniguruma</ulink>
|
---|
| 68 | </para>
|
---|
[2027019] | 69 |
|
---|
[1039de3] | 70 | <para condition="html" role="usernotes">User Notes:
|
---|
| 71 | <ulink url="&blfs-wiki;/slang"/></para>
|
---|
| 72 |
|
---|
[c494f25] | 73 | </sect2>
|
---|
[8e75f8b9] | 74 |
|
---|
[c494f25] | 75 | <sect2 role="installation">
|
---|
[2027019] | 76 | <title>Installation of S-Lang</title>
|
---|
[c494f25] | 77 |
|
---|
[8e6de809] | 78 | <note>
|
---|
| 79 | <para>
|
---|
| 80 | This package does not support parallel build.
|
---|
| 81 | </para>
|
---|
| 82 | </note>
|
---|
| 83 |
|
---|
[2027019] | 84 | <para>Install <application>S-Lang</application> by running the following
|
---|
[c494f25] | 85 | commands:</para>
|
---|
| 86 |
|
---|
[b3a719e] | 87 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 88 | --sysconfdir=/etc \
|
---|
| 89 | --with-readline=gnu &&
|
---|
[014d750f] | 90 | make -j1</userinput></screen>
|
---|
[8e75f8b9] | 91 |
|
---|
[458e7586] | 92 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
| 93 | this will also create a static version of the library which will then be
|
---|
| 94 | installed in the next step.</para>
|
---|
[acecaa7] | 95 |
|
---|
[c494f25] | 96 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8e75f8b9] | 97 |
|
---|
[4b544cf] | 98 | <screen role='root'><userinput>make install_doc_dir=/usr/share/doc/slang-&slang-version; \
|
---|
[98d5a95] | 99 | SLSH_DOC_DIR=/usr/share/doc/slang-&slang-version;/slsh \
|
---|
| 100 | install-all &&
|
---|
| 101 |
|
---|
[b789659] | 102 | chmod -v 755 /usr/lib/libslang.so.&slang-version; \
|
---|
| 103 | /usr/lib/slang/v2/modules/*.so</userinput></screen>
|
---|
[c494f25] | 104 | </sect2>
|
---|
[8e75f8b9] | 105 |
|
---|
[5ee44e37] | 106 | <sect2 role="commands">
|
---|
| 107 | <title>Command Explanations</title>
|
---|
[a41f643] | 108 |
|
---|
[b3a719e] | 109 | <para>
|
---|
| 110 | <parameter>--with-readline=gnu</parameter>: This parameter sets GNU
|
---|
| 111 | <application>Readline</application> to be used by the parser interface
|
---|
| 112 | instead of the <application>S-Lang</application> internal version.
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
[7af8778] | 115 | <para><command>make install_doc_dir=/usr/share/doc/slang-&slang-version;
|
---|
[458e7586] | 116 | SLSH_DOC_DIR=/usr/share/doc/slang-&slang-version;/slsh install-all</command>:
|
---|
| 117 | This command installs the static library as well as
|
---|
[7af8778] | 118 | the dynamic shared version and related modules. It also changes the
|
---|
[458e7586] | 119 | documentation installation directories to a versioned directory.</para>
|
---|
[2027019] | 120 |
|
---|
[5ee44e37] | 121 | </sect2>
|
---|
| 122 |
|
---|
[c494f25] | 123 | <sect2 role="configuration">
|
---|
[2027019] | 124 | <title>Configuring S-Lang</title>
|
---|
| 125 |
|
---|
| 126 | <sect3 id="slang-config">
|
---|
| 127 | <title>Config Files</title>
|
---|
| 128 | <para><filename>~/.slshrc</filename> and
|
---|
| 129 | <filename>/etc/slsh.rc</filename></para>
|
---|
| 130 |
|
---|
| 131 | <indexterm zone="slang slang-config">
|
---|
| 132 | <primary sortas="e-AA.slshrc">~/.slshrc</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 |
|
---|
| 135 | <indexterm zone="slang slang-config">
|
---|
| 136 | <primary sortas="e-etc-slsh">/etc/slsh.rc</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 | </sect3>
|
---|
[c494f25] | 139 |
|
---|
| 140 | </sect2>
|
---|
[8e75f8b9] | 141 |
|
---|
[c494f25] | 142 | <sect2 role="content">
|
---|
| 143 | <title>Contents</title>
|
---|
| 144 |
|
---|
| 145 | <segmentedlist>
|
---|
[2027019] | 146 | <segtitle>Installed Program</segtitle>
|
---|
| 147 | <segtitle>Installed Libraries</segtitle>
|
---|
| 148 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 149 |
|
---|
[c494f25] | 150 | <seglistitem>
|
---|
[2027019] | 151 | <seg>slsh</seg>
|
---|
[1039de3] | 152 | <seg>libslang.{so,a} and numerous support modules</seg>
|
---|
[7af8778] | 153 | <seg>/usr/lib/slang, /usr/share/doc/slang-&slang-version;
|
---|
| 154 | and /usr/share/slsh</seg>
|
---|
[c494f25] | 155 | </seglistitem>
|
---|
| 156 | </segmentedlist>
|
---|
| 157 |
|
---|
[2027019] | 158 | <variablelist>
|
---|
| 159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 160 | <?dbfo list-presentation="list"?>
|
---|
| 161 | <?dbhtml list-presentation="table"?>
|
---|
| 162 |
|
---|
| 163 | <varlistentry id="slsh">
|
---|
| 164 | <term><command>slsh</command></term>
|
---|
| 165 | <listitem>
|
---|
| 166 | <para>is a simple program for interpreting
|
---|
| 167 | <application>S-Lang</application> scripts. It supports dynamic loading
|
---|
| 168 | of <application>S-Lang</application> modules and includes a
|
---|
| 169 | <application>Readline</application> interface for interactive
|
---|
| 170 | use.</para>
|
---|
| 171 | <indexterm zone="slang slsh">
|
---|
| 172 | <primary sortas="b-slsh">slsh</primary>
|
---|
| 173 | </indexterm>
|
---|
| 174 | </listitem>
|
---|
| 175 | </varlistentry>
|
---|
| 176 |
|
---|
| 177 | </variablelist>
|
---|
| 178 |
|
---|
[c494f25] | 179 | </sect2>
|
---|
[f45b1953] | 180 |
|
---|
| 181 | </sect1>
|
---|