source: networking/textweb/w3m.xml@ 81bd261

systemd-11177
Last change on this file since 81bd261 was 81bd261, checked in by Krejzi <krejzi@…>, 10 years ago

More checks. Fix w3m image loading capabilities.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14011 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.3 KB
Line 
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
7 <!ENTITY w3m-download-http "&sourceforge-repo;/w3m/w3m-&w3m-version;.tar.gz">
8 <!ENTITY w3m-download-ftp " ">
9 <!ENTITY w3m-md5sum "1b845a983a50b8dec0169ac48479eacc">
10 <!ENTITY w3m-size "2.1 MB">
11 <!ENTITY w3m-buildsize "26 MB">
12 <!ENTITY w3m-time "0.3 SBU">
13]>
14
15<sect1 id="w3m" xreflabel="w3m-&w3m-version;">
16 <?dbhtml filename="w3m.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>W3m-&w3m-version;</title>
24
25 <indexterm zone="w3m">
26 <primary sortas="a-W3m">W3m</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to W3m</title>
31
32 <para><application>w3m</application> is primarily a pager but it can
33 also be used as a text-mode WWW browser.</para>
34
35 &lfs76_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>Download (HTTP): <ulink url="&w3m-download-http;"/></para>
41 </listitem>
42 <listitem>
43 <para>Download (FTP): <ulink url="&w3m-download-ftp;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download MD5 sum: &w3m-md5sum;</para>
47 </listitem>
48 <listitem>
49 <para>Download size: &w3m-size;</para>
50 </listitem>
51 <listitem>
52 <para>Estimated disk space required: &w3m-buildsize;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated build time: &w3m-time;</para>
56 </listitem>
57 </itemizedlist>
58
59 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
60 <itemizedlist spacing="compact">
61 <listitem>
62 <para>
63 Required patch:
64 <ulink url="&patch-root;/w3m-&w3m-version;-bdwgc72-1.patch"/>
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">W3m Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Required</bridgehead>
72 <para role="required"><xref linkend="gc"/></para>
73
74 <bridgehead renderas="sect4">Optional</bridgehead>
75 <para role="optional">
76 <xref linkend="gpm"/>,
77 <xref linkend="openssl"/>,
78 <xref linkend="imlib2"/>,
79 <xref linkend="gtk2"/>,
80 <ulink url="http://ftp.gnome.org/pub/gnome/sources/imlib/1.9/">Imlib</ulink>
81 (not recommended: obsolete, abandoned upstream,
82 <ulink url="http://bugs.debian.org/448360">buggy</ulink>, and gives no
83 additional functionality as compared to other image loading libraries),
84 <xref linkend="gdk-pixbuf"/>,
85 <xref linkend="compface"/>, and
86 <ulink url="http://packages.debian.org/unstable/text/nkf">nkf</ulink>,
87 a Mail User Agent, and
88 an External Browser
89 </para>
90
91 <para condition="html" role="usernotes">User Notes:
92 <ulink url="&blfs-wiki;/W3M"/></para>
93 </sect2>
94
95 <sect2 role="installation">
96 <title>Installation of W3m</title>
97
98 <para>Install <application>w3m</application> by running the following
99 commands:</para>
100
101<screen><userinput>patch -Np1 -i ../w3m-&w3m-version;-bdwgc72-1.patch &amp;&amp;
102sed -i 's/file_handle/file_foo/' istream.{c,h} &amp;&amp;
103sed -i 's#gdk-pixbuf-xlib-2.0#&amp; x11#' configure &amp;&amp;
104
105./configure --prefix=/usr --sysconfdir=/etc --with-imagelib=imlib2 &amp;&amp;
106sed -i "s:lImlib2:&amp; -lX11:" Makefile &amp;&amp;
107make</userinput></screen>
108
109 <para>This package does not come with a test suite.</para>
110
111 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
112
113<screen role="root"><userinput>make install &amp;&amp;
114install -v -m644 -D doc/keymap.default /etc/w3m/keymap &amp;&amp;
115install -v -m644 doc/menu.default /etc/w3m/menu &amp;&amp;
116install -v -m755 -d /usr/share/doc/w3m-&w3m-version; &amp;&amp;
117install -v -m644 doc/{HISTORY,READ*,keymap.*,menu.*,*.html} \
118 /usr/share/doc/w3m-&w3m-version;</userinput></screen>
119 </sect2>
120
121 <sect2 role="commands">
122 <title>Command Explanations</title>
123
124 <para>
125 <command>patch -p1 &lt; ../w3m-&w3m-version;-bdwgc72-1.patch</command>:
126 This patch fixes compiling w3m with GC-7.2 installed.
127 </para>
128
129 <para><command>sed -i 's/file_handle/file_foo/' istream.{c,h}</command>:
130 This sed renames the file_handle function to avoid a clash with a glibc
131 function that has the same name, defined in
132 /usr/include/bits/fcntl.h.</para>
133
134 <para><command>sed -i 's#gdk-pixbuf-xlib-2.0#&amp; x11#'
135 configure</command>: This sed fixes compiling <application>w3m</application>
136 using <xref linkend="gdk-pixbuf"/> as its image library. It has no impact if
137 <xref linkend="gdk-pixbuf"/> is not installed.</para>
138
139 <para>
140 <parameter>--with-imagelib=imlib2</parameter>: This switch sets
141 <xref linkend="imlib2"/> as the default image loading library. Remove it
142 if you don't need image loading capabilities or you don't want to
143 install X11. Note that build will fail if Xorg Libraries are present
144 and this switch is not used.
145 </para>
146
147 <para>
148 <parameter>--with-imagelib=gdk-pixbuf</parameter>: Use this switch if you
149 want to use <xref linkend="gdk-pixbuf"/> as the image loading library.
150 </para>
151
152 <para>
153 <command>sed -i "s:lImlib2:&amp; -lX11:" Makefile</command>: This sed
154 fixes building when using <xref linkend="imlib2"/> as the image
155 loading library.
156 </para>
157
158 </sect2>
159
160 <sect2 role="configuration">
161 <title>Configuring W3m</title>
162
163 <sect3 id="w3m-config">
164 <title>Config Files</title>
165
166 <para><filename>/etc/w3m/*</filename> and
167 <filename>~/.w3m/*</filename></para>
168
169 <indexterm zone="w3m w3m-config">
170 <primary sortas="e-etc-w3m/*">/etc/w3m/*</primary>
171 </indexterm>
172
173 <indexterm zone="w3m w3m-config">
174 <primary sortas="e-AA.w3m/*">~/.w3m/*</primary>
175 </indexterm>
176 </sect3>
177 </sect2>
178
179 <sect2 role="content">
180 <title>Contents</title>
181
182 <segmentedlist>
183 <segtitle>Installed Programs</segtitle>
184 <segtitle>Installed Libraries</segtitle>
185 <segtitle>Installed Directories</segtitle>
186
187 <seglistitem>
188 <seg>w3m and w3mman</seg>
189 <seg>None</seg>
190 <seg>/usr/libexec/w3m,
191 /usr/share/w3m, and
192 /usr/share/doc/w3m-&w3m-version;</seg>
193 </seglistitem>
194 </segmentedlist>
195
196 <variablelist>
197 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
198 <?dbfo list-presentation="list"?>
199 <?dbhtml list-presentation="table"?>
200
201 <varlistentry id="w3m-prog">
202 <term><command>w3m</command></term>
203 <listitem>
204 <para>is a text based web browser and pager.</para>
205 <indexterm zone="w3m w3m-prog">
206 <primary sortas="b-w3m">w3m</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="w3mman">
212 <!-- Don't remove the extra space, it prevent a FOP warning. -->
213 <term><command>w3mman</command> </term>
214 <listitem>
215 <para>is an interface to the on-line reference manuals in
216 <command>w3m</command>.</para>
217 <indexterm zone="w3m w3mman">
218 <primary sortas="b-w3mman">w3mman</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222 </variablelist>
223 </sect2>
224</sect1>
Note: See TracBrowser for help on using the repository browser.