[acb3e9f] | 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 |
|
---|
[3c64e32] | 7 | <!ENTITY newt-download-http "https://releases.pagure.org/newt/newt-&newt-version;.tar.gz">
|
---|
[acb3e9f] | 8 | <!ENTITY newt-download-ftp " ">
|
---|
[c48b85a1] | 9 | <!ENTITY newt-md5sum "a0a5fd6b53bb167a65e15996b249ebb5">
|
---|
| 10 | <!ENTITY newt-size "172 KB">
|
---|
| 11 | <!ENTITY newt-buildsize "6.4 MB">
|
---|
[4a89273c] | 12 | <!ENTITY newt-time "less than 0.1 SBU">
|
---|
[acb3e9f] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="newt" xreflabel="newt-&newt-version;">
|
---|
| 16 | <?dbhtml filename="newt.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[bc5778f] | 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[acb3e9f] | 21 | </sect1info>
|
---|
| 22 |
|
---|
[d69b726] | 23 | <title>newt-&newt-version;</title>
|
---|
[acb3e9f] | 24 |
|
---|
| 25 | <indexterm zone="newt">
|
---|
| 26 | <primary sortas="a-newt">newt</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[d69b726] | 30 | <title>Introduction to newt</title>
|
---|
[acb3e9f] | 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>Newt</application> is a programming library for color text
|
---|
| 34 | mode, widget based user interfaces. It can be used to add stacked
|
---|
| 35 | windows, entry widgets, checkboxes, radio buttons, labels, plain text
|
---|
| 36 | fields, scrollbars, etc., to text mode user interfaces.
|
---|
[f3429309] | 37 | <application>Newt</application> is based on the S-Lang library.
|
---|
[acb3e9f] | 38 | </para>
|
---|
| 39 |
|
---|
[d437f756] | 40 | &lfs101_checked;
|
---|
[acb3e9f] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (HTTP): <ulink url="&newt-download-http;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download (FTP): <ulink url="&newt-download-ftp;"/>
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download MD5 sum: &newt-md5sum;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Download size: &newt-size;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated disk space required: &newt-buildsize;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
| 71 | Estimated build time: &newt-time;
|
---|
| 72 | </para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </itemizedlist>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect3">Newt Dependencies</bridgehead>
|
---|
| 77 |
|
---|
| 78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 79 | <para role="required">
|
---|
| 80 | <xref linkend="popt"/> and
|
---|
| 81 | <xref linkend="slang"/>
|
---|
| 82 | </para>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 85 | <para role="recommended">
|
---|
[f4002c5] | 86 | <!-- <xref linkend="tcl"/> and -->
|
---|
[572553b] | 87 | <xref role="runtime" linkend="gpm"/> (runtime)
|
---|
[acb3e9f] | 88 | </para>
|
---|
[5aca57c0] | 89 | <!-- Python 3 can be used, do not tell about python2
|
---|
[acb3e9f] | 90 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 91 | <para role="optional">
|
---|
[60ddbaf] | 92 | <xref linkend="python2"/>
|
---|
[acb3e9f] | 93 | </para>
|
---|
[5aca57c0] | 94 | -->
|
---|
[acb3e9f] | 95 | <para condition="html" role="usernotes">User Notes:
|
---|
| 96 | <ulink url="&blfs-wiki;/newt"/>
|
---|
| 97 | </para>
|
---|
| 98 | </sect2>
|
---|
| 99 |
|
---|
| 100 | <sect2 role="installation">
|
---|
[d69b726] | 101 | <title>Installation of newt</title>
|
---|
[acb3e9f] | 102 |
|
---|
| 103 | <para>
|
---|
| 104 | Install <application>newt</application> by running the following
|
---|
| 105 | command:
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
[5aca57c0] | 108 | <screen><userinput>sed -e 's/^LIBNEWT =/#&/' \
|
---|
[acb3e9f] | 109 | -e '/install -m 644 $(LIBNEWT)/ s/^/#/' \
|
---|
[5aca57c0] | 110 | -e 's/$(LIBNEWT)/$(LIBNEWTSONAME)/g' \
|
---|
| 111 | -i Makefile.in &&
|
---|
[059a1a5c] | 112 |
|
---|
[5aca57c0] | 113 | ./configure --prefix=/usr \
|
---|
| 114 | --with-gpm-support \
|
---|
| 115 | --with-python=python&python3-majorver; &&
|
---|
[acb3e9f] | 116 | make</userinput></screen>
|
---|
| 117 |
|
---|
| 118 | <para>
|
---|
[f3429309] | 119 | This package does not come with a test suite.
|
---|
[acb3e9f] | 120 | </para>
|
---|
| 121 |
|
---|
| 122 | <para>
|
---|
| 123 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 127 |
|
---|
| 128 | </sect2>
|
---|
| 129 |
|
---|
| 130 | <sect2 role="commands">
|
---|
| 131 | <title>Command Explanations</title>
|
---|
| 132 |
|
---|
[5aca57c0] | 133 | <para>
|
---|
| 134 | <command>sed -e ... -i Makefile.in</command>: Disables installation of a
|
---|
| 135 | static library.
|
---|
| 136 | </para>
|
---|
| 137 |
|
---|
[e130fead] | 138 | <para>
|
---|
| 139 | <parameter>--with-gpm-support</parameter>: This switch enables mouse support for newt
|
---|
| 140 | applications through GPM.
|
---|
| 141 | </para>
|
---|
| 142 |
|
---|
[acb3e9f] | 143 | <para>
|
---|
[5aca57c0] | 144 | <parameter>--with-python=python&python3-majorver;</parameter>: By giving
|
---|
| 145 | explicitly the name of the directory where python modules reside, this
|
---|
| 146 | switch prevents building the python2 module.
|
---|
[acb3e9f] | 147 | </para>
|
---|
| 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2 role="content">
|
---|
| 152 | <title>Contents</title>
|
---|
| 153 |
|
---|
| 154 | <segmentedlist>
|
---|
| 155 | <segtitle>Installed Programs</segtitle>
|
---|
| 156 | <segtitle>Installed Library</segtitle>
|
---|
| 157 | <segtitle>Installed Directories</segtitle>
|
---|
| 158 |
|
---|
| 159 | <seglistitem>
|
---|
| 160 | <seg> whiptail </seg>
|
---|
[f3429309] | 161 | <seg> libnewt.so, whiptcl.so, and
|
---|
[5aca57c0] | 162 | /usr/lib/python&python3-majorver;/site-packages/_snack.so </seg>
|
---|
[acb3e9f] | 163 | <seg> None </seg>
|
---|
| 164 | </seglistitem>
|
---|
| 165 | </segmentedlist>
|
---|
| 166 |
|
---|
| 167 | <variablelist>
|
---|
| 168 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 169 | <?dbfo list-presentation="list"?>
|
---|
| 170 | <?dbhtml list-presentation="table"?>
|
---|
| 171 |
|
---|
| 172 | <varlistentry id="whiptail-prog">
|
---|
| 173 | <term><command>whiptail</command></term>
|
---|
| 174 | <listitem>
|
---|
| 175 | <para>
|
---|
[4c24eb0a] | 176 | displays dialog boxes from shell scripts
|
---|
[acb3e9f] | 177 | </para>
|
---|
| 178 | <indexterm zone="newt whiptail-prog">
|
---|
| 179 | <primary sortas="b-whiptail-prog">newt</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
| 183 |
|
---|
| 184 | <varlistentry id="libnewt-lib">
|
---|
| 185 | <term><filename class="libraryfile">libnewt.so</filename></term>
|
---|
| 186 | <listitem>
|
---|
| 187 | <para>
|
---|
[4c24eb0a] | 188 | is the library for color text mode, widget based user interfaces
|
---|
[acb3e9f] | 189 | </para>
|
---|
| 190 | <indexterm zone="newt libnewt-lib">
|
---|
| 191 | <primary sortas="b-libnewt-lib">libnewt</primary>
|
---|
| 192 | </indexterm>
|
---|
| 193 | </listitem>
|
---|
| 194 | </varlistentry>
|
---|
| 195 |
|
---|
| 196 | </variablelist>
|
---|
| 197 |
|
---|
| 198 | </sect2>
|
---|
| 199 |
|
---|
| 200 | </sect1>
|
---|