[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 |
|
---|
[c6b192c] | 7 | <!ENTITY slang-download-http "https://www.jedsoft.org/releases/slang/slang-&slang-version;.tar.bz2">
|
---|
[8dfc5c3] | 8 | <!ENTITY slang-download-ftp " ">
|
---|
[c0ee00e] | 9 | <!ENTITY slang-md5sum "c2d5a7aa0246627da490be4e399c87cb">
|
---|
[6af5310c] | 10 | <!ENTITY slang-size "1.5 MB">
|
---|
[c0ee00e] | 11 | <!ENTITY slang-buildsize "29 MB (add 4 MB for tests)">
|
---|
| 12 | <!ENTITY slang-time "0.4 SBU (add 0.2 SBU for tests)">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[6af5310c] | 15 | <sect1 id="slang" xreflabel="slang-&slang-version;">
|
---|
[c494f25] | 16 | <?dbhtml filename="slang.html"?>
|
---|
[8e75f8b9] | 17 |
|
---|
[c494f25] | 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
[8e75f8b9] | 21 |
|
---|
[6af5310c] | 22 | <title>slang-&slang-version;</title>
|
---|
[8e75f8b9] | 23 |
|
---|
[c494f25] | 24 | <indexterm zone="slang">
|
---|
[6af5310c] | 25 | <primary sortas="a-slang">slang</primary>
|
---|
[c494f25] | 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
[6af5310c] | 29 | <title>Introduction to slang</title>
|
---|
[8e75f8b9] | 30 |
|
---|
[de33b2a] | 31 | <para>
|
---|
| 32 | <application>S-Lang</application> (slang) is an interpreted language
|
---|
| 33 | that may be embedded into an application to make the application
|
---|
| 34 | extensible. It provides facilities required by interactive applications
|
---|
| 35 | such as display/screen management, keyboard input and keymaps.
|
---|
| 36 | </para>
|
---|
[8e75f8b9] | 37 |
|
---|
[c2f9a33] | 38 | &lfs111_checked;
|
---|
[574c5ae] | 39 |
|
---|
[c494f25] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[de33b2a] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&slang-download-http;"/></para>
|
---|
[c494f25] | 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
[de33b2a] | 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&slang-download-ftp;"/></para>
|
---|
[c494f25] | 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
[de33b2a] | 51 | <para>
|
---|
| 52 | Download MD5 sum: &slang-md5sum;</para>
|
---|
[c494f25] | 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
[de33b2a] | 55 | <para>
|
---|
| 56 | Download size: &slang-size;</para>
|
---|
[c494f25] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[de33b2a] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &slang-buildsize;</para>
|
---|
[c494f25] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[de33b2a] | 63 | <para>
|
---|
| 64 | Estimated build time: &slang-time;</para>
|
---|
[c494f25] | 65 | </listitem>
|
---|
| 66 | </itemizedlist>
|
---|
[8e75f8b9] | 67 |
|
---|
[6af5310c] | 68 | <bridgehead renderas="sect3">Slang Dependencies</bridgehead>
|
---|
[2027019] | 69 |
|
---|
| 70 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[98d5a95] | 71 | <para role="optional">
|
---|
| 72 | <xref linkend="libpng"/>,
|
---|
| 73 | <xref linkend="pcre"/>, and
|
---|
[05ec61e9] | 74 | <ulink url="https://github.com/kkos/oniguruma">Oniguruma</ulink>
|
---|
[98d5a95] | 75 | </para>
|
---|
[2027019] | 76 |
|
---|
[1039de3] | 77 | <para condition="html" role="usernotes">User Notes:
|
---|
| 78 | <ulink url="&blfs-wiki;/slang"/></para>
|
---|
| 79 |
|
---|
[c494f25] | 80 | </sect2>
|
---|
[8e75f8b9] | 81 |
|
---|
[c494f25] | 82 | <sect2 role="installation">
|
---|
[6af5310c] | 83 | <title>Installation of Slang</title>
|
---|
[c494f25] | 84 |
|
---|
[f3429309] | 85 | <note>
|
---|
[8e6de809] | 86 | <para>
|
---|
| 87 | This package does not support parallel build.
|
---|
| 88 | </para>
|
---|
| 89 | </note>
|
---|
[f3429309] | 90 |
|
---|
[de33b2a] | 91 | <para>
|
---|
| 92 | Install <application>slang</application> by running the following
|
---|
| 93 | commands:
|
---|
| 94 | </para>
|
---|
[c494f25] | 95 |
|
---|
[b3a719e] | 96 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 97 | --sysconfdir=/etc \
|
---|
| 98 | --with-readline=gnu &&
|
---|
[014d750f] | 99 | make -j1</userinput></screen>
|
---|
[8e75f8b9] | 100 |
|
---|
[de33b2a] | 101 | <para>
|
---|
[3554481e] | 102 | To test the results, issue: <command>make check</command>.
|
---|
[de33b2a] | 103 | </para>
|
---|
[acecaa7] | 104 |
|
---|
[de33b2a] | 105 | <para>
|
---|
| 106 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 107 | </para>
|
---|
[8e75f8b9] | 108 |
|
---|
[4b544cf] | 109 | <screen role='root'><userinput>make install_doc_dir=/usr/share/doc/slang-&slang-version; \
|
---|
[98d5a95] | 110 | SLSH_DOC_DIR=/usr/share/doc/slang-&slang-version;/slsh \
|
---|
[3554481e] | 111 | install &&
|
---|
[98d5a95] | 112 |
|
---|
[3554481e] | 113 | chmod -v 755 /usr/lib/slang/v2/modules/*.so</userinput></screen>
|
---|
[c494f25] | 114 | </sect2>
|
---|
[8e75f8b9] | 115 |
|
---|
[5ee44e37] | 116 | <sect2 role="commands">
|
---|
| 117 | <title>Command Explanations</title>
|
---|
[a41f643] | 118 |
|
---|
[b3a719e] | 119 | <para>
|
---|
| 120 | <parameter>--with-readline=gnu</parameter>: This parameter sets GNU
|
---|
| 121 | <application>Readline</application> to be used by the parser interface
|
---|
[6af5310c] | 122 | instead of the <application>slang</application> internal version.
|
---|
[b3a719e] | 123 | </para>
|
---|
| 124 |
|
---|
[de33b2a] | 125 | <para>
|
---|
| 126 | <command>make install_doc_dir=/usr/share/doc/slang-&slang-version;
|
---|
[3554481e] | 127 | SLSH_DOC_DIR=/usr/share/doc/slang-&slang-version;/slsh install</command>:
|
---|
| 128 | This command installs this package with a versioned documentation
|
---|
| 129 | installation directory.
|
---|
[de33b2a] | 130 | </para>
|
---|
[2027019] | 131 |
|
---|
[5ee44e37] | 132 | </sect2>
|
---|
| 133 |
|
---|
[c494f25] | 134 | <sect2 role="configuration">
|
---|
[6af5310c] | 135 | <title>Configuring slang</title>
|
---|
[2027019] | 136 |
|
---|
| 137 | <sect3 id="slang-config">
|
---|
| 138 | <title>Config Files</title>
|
---|
[de33b2a] | 139 | <para>
|
---|
| 140 | <filename>~/.slshrc</filename> and
|
---|
| 141 | <filename>/etc/slsh.rc</filename>
|
---|
| 142 | </para>
|
---|
[2027019] | 143 |
|
---|
| 144 | <indexterm zone="slang slang-config">
|
---|
| 145 | <primary sortas="e-AA.slshrc">~/.slshrc</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 |
|
---|
| 148 | <indexterm zone="slang slang-config">
|
---|
| 149 | <primary sortas="e-etc-slsh">/etc/slsh.rc</primary>
|
---|
| 150 | </indexterm>
|
---|
| 151 | </sect3>
|
---|
[c494f25] | 152 |
|
---|
| 153 | </sect2>
|
---|
[8e75f8b9] | 154 |
|
---|
[c494f25] | 155 | <sect2 role="content">
|
---|
| 156 | <title>Contents</title>
|
---|
| 157 |
|
---|
| 158 | <segmentedlist>
|
---|
[2027019] | 159 | <segtitle>Installed Program</segtitle>
|
---|
| 160 | <segtitle>Installed Libraries</segtitle>
|
---|
| 161 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 162 |
|
---|
[c494f25] | 163 | <seglistitem>
|
---|
[2027019] | 164 | <seg>slsh</seg>
|
---|
[3554481e] | 165 | <seg>libslang.so and numerous support modules</seg>
|
---|
[7af8778] | 166 | <seg>/usr/lib/slang, /usr/share/doc/slang-&slang-version;
|
---|
| 167 | and /usr/share/slsh</seg>
|
---|
[c494f25] | 168 | </seglistitem>
|
---|
| 169 | </segmentedlist>
|
---|
| 170 |
|
---|
[2027019] | 171 | <variablelist>
|
---|
| 172 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 173 | <?dbfo list-presentation="list"?>
|
---|
| 174 | <?dbhtml list-presentation="table"?>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="slsh">
|
---|
| 177 | <term><command>slsh</command></term>
|
---|
| 178 | <listitem>
|
---|
[de33b2a] | 179 | <para>
|
---|
| 180 | is a simple program for interpreting
|
---|
| 181 | <application>slang</application> scripts. It supports dynamic
|
---|
| 182 | loading of <application>slang</application> modules and includes a
|
---|
[4c24eb0a] | 183 | <application>Readline</application> interface for interactive use
|
---|
[de33b2a] | 184 | </para>
|
---|
[2027019] | 185 | <indexterm zone="slang slsh">
|
---|
| 186 | <primary sortas="b-slsh">slsh</primary>
|
---|
| 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
| 191 | </variablelist>
|
---|
| 192 |
|
---|
[c494f25] | 193 | </sect2>
|
---|
[f45b1953] | 194 |
|
---|
| 195 | </sect1>
|
---|