[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[acb3e9f] | 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 " ">
|
---|
[7c95348b] | 9 | <!ENTITY newt-md5sum "9a0630e2f59eaa3037aec94989c36c4a">
|
---|
| 10 | <!ENTITY newt-size "176 KB">
|
---|
| 11 | <!ENTITY newt-buildsize "3.0 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 |
|
---|
[41a19c4] | 36 | &lfs122_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>
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
[d69b726] | 88 | <title>Installation of newt</title>
|
---|
[acb3e9f] | 89 |
|
---|
| 90 | <para>
|
---|
| 91 | Install <application>newt</application> by running the following
|
---|
| 92 | command:
|
---|
| 93 | </para>
|
---|
| 94 |
|
---|
[1b45a470] | 95 | <screen><userinput>sed -e '/install -m 644 $(LIBNEWT)/ s/^/#/' \
|
---|
| 96 | -e '/$(LIBNEWT):/,/rv/ s/^/#/' \
|
---|
| 97 | -e 's/$(LIBNEWT)/$(LIBNEWTSH)/g' \
|
---|
[5aca57c0] | 98 | -i Makefile.in &&
|
---|
[059a1a5c] | 99 |
|
---|
[5aca57c0] | 100 | ./configure --prefix=/usr \
|
---|
| 101 | --with-gpm-support \
|
---|
| 102 | --with-python=python&python3-majorver; &&
|
---|
[acb3e9f] | 103 | make</userinput></screen>
|
---|
| 104 |
|
---|
| 105 | <para>
|
---|
[f3429309] | 106 | This package does not come with a test suite.
|
---|
[acb3e9f] | 107 | </para>
|
---|
| 108 |
|
---|
| 109 | <para>
|
---|
| 110 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 114 |
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="commands">
|
---|
| 118 | <title>Command Explanations</title>
|
---|
| 119 |
|
---|
[5aca57c0] | 120 | <para>
|
---|
| 121 | <command>sed -e ... -i Makefile.in</command>: Disables installation of a
|
---|
| 122 | static library.
|
---|
| 123 | </para>
|
---|
| 124 |
|
---|
[e130fead] | 125 | <para>
|
---|
| 126 | <parameter>--with-gpm-support</parameter>: This switch enables mouse support for newt
|
---|
| 127 | applications through GPM.
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
[acb3e9f] | 130 | <para>
|
---|
[5aca57c0] | 131 | <parameter>--with-python=python&python3-majorver;</parameter>: By giving
|
---|
| 132 | explicitly the name of the directory where python modules reside, this
|
---|
| 133 | switch prevents building the python2 module.
|
---|
[acb3e9f] | 134 | </para>
|
---|
| 135 |
|
---|
| 136 | </sect2>
|
---|
| 137 |
|
---|
| 138 | <sect2 role="content">
|
---|
| 139 | <title>Contents</title>
|
---|
| 140 |
|
---|
| 141 | <segmentedlist>
|
---|
| 142 | <segtitle>Installed Programs</segtitle>
|
---|
| 143 | <segtitle>Installed Library</segtitle>
|
---|
| 144 | <segtitle>Installed Directories</segtitle>
|
---|
| 145 |
|
---|
| 146 | <seglistitem>
|
---|
| 147 | <seg> whiptail </seg>
|
---|
[f3429309] | 148 | <seg> libnewt.so, whiptcl.so, and
|
---|
[5aca57c0] | 149 | /usr/lib/python&python3-majorver;/site-packages/_snack.so </seg>
|
---|
[acb3e9f] | 150 | <seg> None </seg>
|
---|
| 151 | </seglistitem>
|
---|
| 152 | </segmentedlist>
|
---|
| 153 |
|
---|
| 154 | <variablelist>
|
---|
| 155 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 156 | <?dbfo list-presentation="list"?>
|
---|
| 157 | <?dbhtml list-presentation="table"?>
|
---|
| 158 |
|
---|
| 159 | <varlistentry id="whiptail-prog">
|
---|
| 160 | <term><command>whiptail</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para>
|
---|
[4c24eb0a] | 163 | displays dialog boxes from shell scripts
|
---|
[acb3e9f] | 164 | </para>
|
---|
| 165 | <indexterm zone="newt whiptail-prog">
|
---|
[0bdfbb9] | 166 | <primary sortas="b-whiptail">whiptail</primary>
|
---|
[acb3e9f] | 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 |
|
---|
| 171 | <varlistentry id="libnewt-lib">
|
---|
| 172 | <term><filename class="libraryfile">libnewt.so</filename></term>
|
---|
| 173 | <listitem>
|
---|
| 174 | <para>
|
---|
[4c24eb0a] | 175 | is the library for color text mode, widget based user interfaces
|
---|
[acb3e9f] | 176 | </para>
|
---|
| 177 | <indexterm zone="newt libnewt-lib">
|
---|
| 178 | <primary sortas="b-libnewt-lib">libnewt</primary>
|
---|
| 179 | </indexterm>
|
---|
| 180 | </listitem>
|
---|
| 181 | </varlistentry>
|
---|
| 182 |
|
---|
| 183 | </variablelist>
|
---|
| 184 |
|
---|
| 185 | </sect2>
|
---|
| 186 |
|
---|
| 187 | </sect1>
|
---|