Add simple-scan to the book

This package will eventually replace XSane and sane-frontends in an effort to
get away from GTK+-2. Network scanning as well as local scanning appears
to work well.
This commit is contained in:
Douglas R. Reno 2023-09-26 11:44:17 -05:00
parent 67c834138a
commit 4e7dc93e8b
4 changed files with 170 additions and 0 deletions

View File

@ -41,6 +41,11 @@
<listitem>
<para>September 26th, 2023</para>
<itemizedlist>
<listitem>
<para>[renodr] - Add simple-scan to the book. This will eventually
replace XSane. Fixes
<ulink url="&blfs-ticket-root;18532">#18532</ulink>.</para>
</listitem>
<listitem>
<para>[thomas] - Upgrade to cmake-3.27.6. Fixes
<ulink url="&blfs-ticket-root;18621">#18621</ulink>.</para>

View File

@ -1124,6 +1124,7 @@ to avoid building libxml2 twice, which is slow with all deps -->
<!-- Chapter 47 -->
<!ENTITY sane-version "1.2.1">
<!ENTITY sane-fe-version "1.0.14">
<!ENTITY simple-scan-version "44.0">
<!ENTITY xsane-version "0.999">
<!-- Chapter 48 -->

View File

@ -17,6 +17,7 @@
</para>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sane.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="simple-scan.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xsane.xml"/>
</chapter>

View File

@ -0,0 +1,163 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY simple-scan-download-http "&gnome-download-http;/simple-scan/&gnome-44;/simple-scan-&simple-scan-version;.tar.xz">
<!ENTITY simple-scan-download-ftp "&gnome-download-ftp;/simple-scan/&gnome-44;/simple-scan-&simple-scan-version;.tar.xz">
<!ENTITY simple-scan-md5sum "c64648c3190d27885e9d8aed70f70005">
<!ENTITY simple-scan-size "1.1 MB">
<!ENTITY simple-scan-buildsize "25 MB">
<!ENTITY simple-scan-time "0.1 SBU">
]>
<sect1 id="simple-scan" xreflabel="Simple-scan-&simple-scan-version;">
<?dbhtml filename="simple-scan.html"?>
<title>Simple-scan-&simple-scan-version;</title>
<indexterm zone="simple-scan">
<primary sortas="a-simple-scan">Simple-scan</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Simple-scan</title>
<para>
The <application>Simple-scan</application> package contains a modern
document scanning application. It captures images using SANE, and
supports the latest color management and graphics standards.
</para>
&lfs120_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&simple-scan-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&simple-scan-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &simple-scan-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &simple-scan-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &simple-scan-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &simple-scan-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Simple-scan Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="colord"/>,
<xref linkend="itstool"/>,
<xref linkend="libgusb"/>,
<xref linkend="libhandy1"/>,
<xref linkend="libwebp"/>, and
<xref linkend="sane"/> (backends)
</para>
</sect2>
<sect2 role="installation">
<title>Installation of Simple-scan</title>
<para>
Install <application>Simple-scan</application> by running the following
commands:
</para>
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
meson setup --prefix=/usr --buildtype=release .. &amp;&amp;
ninja</userinput></screen>
<para>
This package does not come with a test suite.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install &amp;&amp;
gtk-update-icon-cache -qtf /usr/share/icons/hicolor</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/meson-buildtype-release.xml"/>
<para>
<command>gtk-update-icon-cache [...]</command>: This command updates the
system-wide GTK+ icon cache since Simple-scan's build system does not
update it to account for the icons that it installs.
</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>
simple-scan
</seg>
<seg>
None
</seg>
<seg>
/usr/share/help/*/simple-scan
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="simple-scan-prog">
<term><command>simple-scan</command></term>
<listitem>
<para>
is a modern document scanning application
</para>
<indexterm zone="simple-scan simple-scan-prog">
<primary sortas="b-simple-scan">simple-scan</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>