[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY scour-download-http "https://github.com/scour-project/scour/archive/v&scour-version;/scour-&scour-version;.tar.gz">
|
---|
[9f18cc0] | 8 | <!ENTITY scour-download-ftp " ">
|
---|
[1456c25] | 9 | <!ENTITY scour-md5sum "1de595a0b1627d47b01b4e5fa2976087">
|
---|
| 10 | <!ENTITY scour-size "96 KB">
|
---|
| 11 | <!ENTITY scour-buildsize "1.3 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 |
|
---|
[11193870] | 33 | &lfs91_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 | <bridgehead renderas="sect5">Recommended</bridgehead>
|
---|
| 78 | <para role="recommended">
|
---|
| 79 | <xref linkend="python2"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
| 82 | <note>
|
---|
| 83 | <para>
|
---|
| 84 | The only use of Scour in this book is by applications which
|
---|
| 85 | require Python2.
|
---|
| 86 | </para>
|
---|
| 87 | </note>
|
---|
| 88 |
|
---|
[9f18cc0] | 89 | <para condition="html" role="usernotes">
|
---|
| 90 | User Notes: <ulink url="&blfs-wiki;/scour"/>
|
---|
| 91 | </para>
|
---|
| 92 | </sect3>
|
---|
| 93 |
|
---|
| 94 | <sect3 role="installation">
|
---|
| 95 | <title>Installation of scour</title>
|
---|
| 96 |
|
---|
| 97 |
|
---|
[f6ee672] | 98 | <note>
|
---|
[9f18cc0] | 99 | <para>
|
---|
[f6ee672] | 100 | Both <application>Python 2</application> and
|
---|
| 101 | <application>Python 3</application> modules can
|
---|
| 102 | be built and installed without any conflicts.
|
---|
[9f18cc0] | 103 | </para>
|
---|
| 104 | </note>
|
---|
| 105 |
|
---|
[f6ee672] | 106 | <!-- Editors note: Use - -root= instead of DESTDIR= when updating. -->
|
---|
[9f18cc0] | 107 |
|
---|
| 108 | <para>
|
---|
[77deb22e] | 109 | To build both <application>Python 2</application> and
|
---|
| 110 | <application>Python 3</application> modules,
|
---|
| 111 | run the following commands:
|
---|
[9f18cc0] | 112 | </para>
|
---|
| 113 |
|
---|
[77deb22e] | 114 | <screen><userinput>python2 setup.py build &&
|
---|
| 115 | python3 setup.py build</userinput></screen>
|
---|
[9f18cc0] | 116 |
|
---|
| 117 | <para>
|
---|
[77deb22e] | 118 | To partially test the results, issue: <command>python2 testcss.py</command>.
|
---|
[9f18cc0] | 119 | If you have installed <application>Six</application> you can run the main
|
---|
[77deb22e] | 120 | tests by issuing: <command>python2 testscour.py</command>.
|
---|
[9f18cc0] | 121 | </para>
|
---|
| 122 |
|
---|
| 123 | <para>
|
---|
[77deb22e] | 124 | To install both modules, run the following command as the
|
---|
[9f18cc0] | 125 | <systemitem class="username">root</systemitem> user:
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
[77deb22e] | 128 | <screen role="root"><userinput>python2 setup.py install --optimize=1 &&
|
---|
| 129 | python3 setup.py install --optimize=1</userinput></screen>
|
---|
[9f18cc0] | 130 |
|
---|
| 131 | </sect3>
|
---|
| 132 |
|
---|
| 133 | <sect3 role="content">
|
---|
| 134 | <title>Contents</title>
|
---|
| 135 |
|
---|
| 136 | <segmentedlist>
|
---|
| 137 | <segtitle>Installed Programs</segtitle>
|
---|
| 138 | <segtitle>Installed Libraries</segtitle>
|
---|
| 139 | <segtitle>Installed Directories</segtitle>
|
---|
| 140 |
|
---|
| 141 | <seglistitem>
|
---|
| 142 | <seg>
|
---|
| 143 | scour
|
---|
| 144 | </seg>
|
---|
| 145 | <seg>
|
---|
| 146 | None
|
---|
| 147 | </seg>
|
---|
| 148 | <seg>
|
---|
| 149 | None
|
---|
| 150 | </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="scour-prog">
|
---|
| 160 | <term><command>scour</command></term>
|
---|
| 161 | <listitem>
|
---|
| 162 | <para>
|
---|
| 163 | is a program to optimize and clean SVG files.
|
---|
| 164 | </para>
|
---|
[2630345] | 165 | <indexterm zone="scour scour-prog">
|
---|
| 166 | <primary sortas="b-scour">scour</primary>
|
---|
[9f18cc0] | 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 |
|
---|
| 171 | </variablelist>
|
---|
| 172 |
|
---|
| 173 | </sect3>
|
---|
| 174 |
|
---|
| 175 | </sect2>
|
---|
| 176 | <!--End scour -->
|
---|