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