[9f18cc0] | 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 |
|
---|
[2e18e741] | 7 | <!ENTITY scour-download-http "https://github.com/scour-project/scour/archive/v038.1/scour-&scour-version;.tar.gz">
|
---|
[9f18cc0] | 8 | <!ENTITY scour-download-ftp " ">
|
---|
[2e18e741] | 9 | <!ENTITY scour-md5sum "dce526ebe55f48b45eba8d264849a97e">
|
---|
[18841f3] | 10 | <!ENTITY scour-size "100 KB">
|
---|
[2e18e741] | 11 | <!ENTITY scour-buildsize "1.7 MB">
|
---|
[9f18cc0] | 12 | <!ENTITY scour-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <!-- Begin scour -->
|
---|
| 16 | <sect2 id="scour" xreflabel="Scour-&scour-version;">
|
---|
| 17 |
|
---|
| 18 | <title>Scour-&scour-version;</title>
|
---|
| 19 |
|
---|
| 20 | <indexterm zone="scour">
|
---|
| 21 | <primary sortas="a-scour">scour</primary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect3 role="package">
|
---|
| 25 | <title>Introduction to Scour</title>
|
---|
| 26 |
|
---|
| 27 | <para>
|
---|
| 28 | <application>Scour</application> is an SVG (Scalable Vector Graphics)
|
---|
| 29 | optimizer/cleaner that reduces their size by optimizing structure and
|
---|
| 30 | removing unnecessary data.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[7ebcf19] | 33 | &lfs10_checked;
|
---|
[9f18cc0] | 34 |
|
---|
| 35 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&scour-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&scour-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &scour-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &scour-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &scour-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &scour-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect4">Scour Dependencies</bridgehead>
|
---|
| 70 |
|
---|
[d0331db] | 71 | <bridgehead renderas="sect5">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
| 73 | <xref linkend="six"/> (will be automatically downloaded and installed
|
---|
| 74 | if not already present)
|
---|
| 75 | </para>
|
---|
[9f18cc0] | 76 |
|
---|
[059a6e02] | 77 | <note>
|
---|
| 78 | <para>
|
---|
[0941953] | 79 | Although the download link works fine with wget, in this case downloading
|
---|
| 80 | with a browser such as firefox will create scour-038.1.tar.gz.
|
---|
[059a6e02] | 81 | </para>
|
---|
| 82 | </note>
|
---|
| 83 |
|
---|
[9f18cc0] | 84 | <para condition="html" role="usernotes">
|
---|
| 85 | User Notes: <ulink url="&blfs-wiki;/scour"/>
|
---|
| 86 | </para>
|
---|
| 87 | </sect3>
|
---|
| 88 |
|
---|
| 89 | <sect3 role="installation">
|
---|
| 90 | <title>Installation of scour</title>
|
---|
| 91 |
|
---|
[f6ee672] | 92 | <!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
|
---|
[9f18cc0] | 93 | <para>
|
---|
[0941953] | 94 | To build the <application>Python 3</application> module
|
---|
[77deb22e] | 95 | run the following commands:
|
---|
[9f18cc0] | 96 | </para>
|
---|
| 97 |
|
---|
[0941953] | 98 | <screen><userinput>python3 setup.py build</userinput></screen>
|
---|
[9f18cc0] | 99 |
|
---|
| 100 | <para>
|
---|
[0941953] | 101 | To partially test the results, issue: <command>python3 test_css.py</command>.
|
---|
[9f18cc0] | 102 | If you have installed <application>Six</application> you can run the main
|
---|
[0941953] | 103 | tests by issuing: <command>python3 test_scour.py</command>.
|
---|
[9f18cc0] | 104 | </para>
|
---|
| 105 |
|
---|
| 106 | <para>
|
---|
[0941953] | 107 | To install the module, run the following command as the
|
---|
[9f18cc0] | 108 | <systemitem class="username">root</systemitem> user:
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
[0941953] | 111 | <screen role="root"><userinput>python3 setup.py install --optimize=1</userinput></screen>
|
---|
[9f18cc0] | 112 |
|
---|
| 113 | </sect3>
|
---|
| 114 |
|
---|
| 115 | <sect3 role="content">
|
---|
| 116 | <title>Contents</title>
|
---|
| 117 |
|
---|
| 118 | <segmentedlist>
|
---|
| 119 | <segtitle>Installed Programs</segtitle>
|
---|
| 120 | <segtitle>Installed Libraries</segtitle>
|
---|
| 121 | <segtitle>Installed Directories</segtitle>
|
---|
| 122 |
|
---|
| 123 | <seglistitem>
|
---|
| 124 | <seg>
|
---|
| 125 | scour
|
---|
| 126 | </seg>
|
---|
| 127 | <seg>
|
---|
| 128 | None
|
---|
| 129 | </seg>
|
---|
| 130 | <seg>
|
---|
| 131 | None
|
---|
| 132 | </seg>
|
---|
| 133 | </seglistitem>
|
---|
| 134 | </segmentedlist>
|
---|
| 135 |
|
---|
| 136 | <variablelist>
|
---|
| 137 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 138 | <?dbfo list-presentation="list"?>
|
---|
| 139 | <?dbhtml list-presentation="table"?>
|
---|
| 140 |
|
---|
| 141 | <varlistentry id="scour-prog">
|
---|
| 142 | <term><command>scour</command></term>
|
---|
| 143 | <listitem>
|
---|
| 144 | <para>
|
---|
| 145 | is a program to optimize and clean SVG files.
|
---|
| 146 | </para>
|
---|
[2630345] | 147 | <indexterm zone="scour scour-prog">
|
---|
| 148 | <primary sortas="b-scour">scour</primary>
|
---|
[9f18cc0] | 149 | </indexterm>
|
---|
| 150 | </listitem>
|
---|
| 151 | </varlistentry>
|
---|
| 152 |
|
---|
| 153 | </variablelist>
|
---|
| 154 |
|
---|
| 155 | </sect3>
|
---|
| 156 |
|
---|
| 157 | </sect2>
|
---|
| 158 | <!--End scour -->
|
---|