source: general/graphlib/newt.xml

trunk
Last change on this file was 2fec8e3, checked in by Bruce Dubbs <bdubbs@…>, 2 months ago

Tag the rest of Chapter 10 *Graphics Libraries)

  • Property mode set to 100644
File size: 5.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
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
7 <!ENTITY newt-download-http "https://releases.pagure.org/newt/newt-&newt-version;.tar.gz">
8 <!ENTITY newt-download-ftp " ">
9 <!ENTITY newt-md5sum "9a0630e2f59eaa3037aec94989c36c4a">
10 <!ENTITY newt-size "176 KB">
11 <!ENTITY newt-buildsize "3.0 MB">
12 <!ENTITY newt-time "less than 0.1 SBU">
13]>
14
15<sect1 id="newt" xreflabel="newt-&newt-version;">
16 <?dbhtml filename="newt.html"?>
17
18
19 <title>newt-&newt-version;</title>
20
21 <indexterm zone="newt">
22 <primary sortas="a-newt">newt</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to newt</title>
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.
33 <application>Newt</application> is based on the S-Lang library.
34 </para>
35
36 &lfs121_checked;
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">
82 <!-- <xref linkend="tcl"/> and -->
83 <xref role="runtime" linkend="gpm"/> (runtime)
84 </para>
85 </sect2>
86
87 <sect2 role="installation">
88 <title>Installation of newt</title>
89
90 <para>
91 Install <application>newt</application> by running the following
92 command:
93 </para>
94
95<screen><userinput>sed -e '/install -m 644 $(LIBNEWT)/ s/^/#/' \
96 -e '/$(LIBNEWT):/,/rv/ s/^/#/' \
97 -e 's/$(LIBNEWT)/$(LIBNEWTSH)/g' \
98 -i Makefile.in &amp;&amp;
99
100./configure --prefix=/usr \
101 --with-gpm-support \
102 --with-python=python&python3-majorver; &amp;&amp;
103make</userinput></screen>
104
105 <para>
106 This package does not come with a test suite.
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
120 <para>
121 <command>sed -e ... -i Makefile.in</command>: Disables installation of a
122 static library.
123 </para>
124
125 <para>
126 <parameter>--with-gpm-support</parameter>: This switch enables mouse support for newt
127 applications through GPM.
128 </para>
129
130 <para>
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.
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>
148 <seg> libnewt.so, whiptcl.so, and
149 /usr/lib/python&python3-majorver;/site-packages/_snack.so </seg>
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>
163 displays dialog boxes from shell scripts
164 </para>
165 <indexterm zone="newt whiptail-prog">
166 <primary sortas="b-whiptail">whiptail</primary>
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>
175 is the library for color text mode, widget based user interfaces
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>
Note: See TracBrowser for help on using the repository browser.