[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
|
---|
| 33 | maybe be embedded into an application to make the application extensible.
|
---|
| 34 | It provides facilities required by interactive applications such as
|
---|
| 35 | display/screen management, keyboard input and keymaps.</para>
|
---|
[8e75f8b9] | 36 |
|
---|
[98d5a95] | 37 | &lfs70_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 |
|
---|
[2027019] | 78 | <para>Install <application>S-Lang</application> by running the following
|
---|
[c494f25] | 79 | commands:</para>
|
---|
| 80 |
|
---|
[98d5a95] | 81 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &&
|
---|
[7af8778] | 82 | make</userinput></screen>
|
---|
[8e75f8b9] | 83 |
|
---|
[458e7586] | 84 | <para>To test the results, issue: <command>make check</command>. Note that
|
---|
| 85 | this will also create a static version of the library which will then be
|
---|
| 86 | installed in the next step.</para>
|
---|
[acecaa7] | 87 |
|
---|
[c494f25] | 88 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[8e75f8b9] | 89 |
|
---|
[98d5a95] | 90 | <screen role='root'><userinput>
|
---|
| 91 | make install_doc_dir=/usr/share/doc/slang-&slang-version; \
|
---|
| 92 | SLSH_DOC_DIR=/usr/share/doc/slang-&slang-version;/slsh \
|
---|
| 93 | install-all &&
|
---|
| 94 |
|
---|
[b789659] | 95 | chmod -v 755 /usr/lib/libslang.so.&slang-version; \
|
---|
| 96 | /usr/lib/slang/v2/modules/*.so</userinput></screen>
|
---|
[c494f25] | 97 | </sect2>
|
---|
[8e75f8b9] | 98 |
|
---|
[5ee44e37] | 99 | <sect2 role="commands">
|
---|
| 100 | <title>Command Explanations</title>
|
---|
[a41f643] | 101 |
|
---|
[7af8778] | 102 | <para><command>make install_doc_dir=/usr/share/doc/slang-&slang-version;
|
---|
[458e7586] | 103 | SLSH_DOC_DIR=/usr/share/doc/slang-&slang-version;/slsh install-all</command>:
|
---|
| 104 | This command installs the static library as well as
|
---|
[7af8778] | 105 | the dynamic shared version and related modules. It also changes the
|
---|
[458e7586] | 106 | documentation installation directories to a versioned directory.</para>
|
---|
[2027019] | 107 |
|
---|
[7af8778] | 108 | <para><option>--with-readline=gnu</option>: Use this parameter to use the
|
---|
| 109 | Gnu <application>Readline</application> parser instead of the
|
---|
| 110 | <application>S-Lang</application> internal version.</para>
|
---|
[5ee44e37] | 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
[c494f25] | 114 | <sect2 role="configuration">
|
---|
[2027019] | 115 | <title>Configuring S-Lang</title>
|
---|
| 116 |
|
---|
| 117 | <sect3 id="slang-config">
|
---|
| 118 | <title>Config Files</title>
|
---|
| 119 | <para><filename>~/.slshrc</filename> and
|
---|
| 120 | <filename>/etc/slsh.rc</filename></para>
|
---|
| 121 |
|
---|
| 122 | <indexterm zone="slang slang-config">
|
---|
| 123 | <primary sortas="e-AA.slshrc">~/.slshrc</primary>
|
---|
| 124 | </indexterm>
|
---|
| 125 |
|
---|
| 126 | <indexterm zone="slang slang-config">
|
---|
| 127 | <primary sortas="e-etc-slsh">/etc/slsh.rc</primary>
|
---|
| 128 | </indexterm>
|
---|
| 129 | </sect3>
|
---|
[c494f25] | 130 |
|
---|
| 131 | </sect2>
|
---|
[8e75f8b9] | 132 |
|
---|
[c494f25] | 133 | <sect2 role="content">
|
---|
| 134 | <title>Contents</title>
|
---|
| 135 |
|
---|
| 136 | <segmentedlist>
|
---|
[2027019] | 137 | <segtitle>Installed Program</segtitle>
|
---|
| 138 | <segtitle>Installed Libraries</segtitle>
|
---|
| 139 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 140 |
|
---|
[c494f25] | 141 | <seglistitem>
|
---|
[2027019] | 142 | <seg>slsh</seg>
|
---|
[1039de3] | 143 | <seg>libslang.{so,a} and numerous support modules</seg>
|
---|
[7af8778] | 144 | <seg>/usr/lib/slang, /usr/share/doc/slang-&slang-version;
|
---|
| 145 | and /usr/share/slsh</seg>
|
---|
[c494f25] | 146 | </seglistitem>
|
---|
| 147 | </segmentedlist>
|
---|
| 148 |
|
---|
[2027019] | 149 | <variablelist>
|
---|
| 150 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 151 | <?dbfo list-presentation="list"?>
|
---|
| 152 | <?dbhtml list-presentation="table"?>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="slsh">
|
---|
| 155 | <term><command>slsh</command></term>
|
---|
| 156 | <listitem>
|
---|
| 157 | <para>is a simple program for interpreting
|
---|
| 158 | <application>S-Lang</application> scripts. It supports dynamic loading
|
---|
| 159 | of <application>S-Lang</application> modules and includes a
|
---|
| 160 | <application>Readline</application> interface for interactive
|
---|
| 161 | use.</para>
|
---|
| 162 | <indexterm zone="slang slsh">
|
---|
| 163 | <primary sortas="b-slsh">slsh</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | </variablelist>
|
---|
| 169 |
|
---|
[c494f25] | 170 | </sect2>
|
---|
[f45b1953] | 171 |
|
---|
| 172 | </sect1>
|
---|