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