Changeset d6e4445 for general/genutils
- Timestamp:
- 02/01/2016 06:52:00 AM (8 years ago)
- Branches:
- systemd-13485
- Children:
- 2f034e7
- Parents:
- 12fbef3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/genutils/tidy.xml
r12fbef3 rd6e4445 5 5 %general-entities; 6 6 7 <!ENTITY tidy-download-http " &sources-anduin-http;/tidy/tidy-&tidy-version;.tar.bz2">7 <!ENTITY tidy-download-http "https://github.com/htacg/tidy-html5/archive/&tidy-version;.tar.gz"> 8 8 <!ENTITY tidy-download-ftp " "> 9 <!ENTITY tidy-md5sum " dd1fe109b4259ad3f364b175787ad5e9">10 <!ENTITY tidy-size " 807KB">11 <!ENTITY tidy-buildsize "1 2MB">12 <!ENTITY tidy-time "0. 2SBU">9 <!ENTITY tidy-md5sum "5fd96deef635ab8cea3dc74079f54d95"> 10 <!ENTITY tidy-size "632 KB"> 11 <!ENTITY tidy-buildsize "16 MB"> 12 <!ENTITY tidy-time "0.1 SBU"> 13 13 ]> 14 14 15 <sect1 id=" html-tidy" xreflabel="HTML Tidy-&tidy-version;">15 <sect1 id="tidy-html" xreflabel="tidy-html5-&tidy-version;"> 16 16 <?dbhtml filename="tidy.html"?> 17 17 … … 21 21 </sect1info> 22 22 23 <title> HTML Tidy-&tidy-version;</title>24 25 <indexterm zone=" html-tidy">26 <primary sortas="a- HTML-Tidy">HTML Tidy</primary>23 <title>tidy-html5-&tidy-version;</title> 24 25 <indexterm zone="tidy-html"> 26 <primary sortas="a-Tidy-HTML">Tidy HTML5</primary> 27 27 </indexterm> 28 28 29 29 <sect2 role="package"> 30 <title>Introduction to HTML Tidy</title>31 32 <para>The <application> HTML Tidy</application> package contains a30 <title>Introduction to Tidy HTML5</title> 31 32 <para>The <application>Tidy HTML5</application> package contains a 33 33 command line tool and libraries used to read HTML, XHTML and XML files 34 34 and write cleaned up markup. It detects and corrects many common coding … … 60 60 </itemizedlist> 61 61 62 <para><application>HTML Tidy</application> tarballs are no longer generated 63 by the maintainers. To build from source, the 64 <application>HTML Tidy</application> developers recommend using current 65 CVS. The source tarball shown above was created by the BLFS team by pulling 66 a CVS version, then generating the autotool components and documentation. 67 BLFS made no changes to the existing source files.</para> 68 69 <bridgehead renderas="sect3">HTML Tidy Dependencies</bridgehead> 62 <note> 63 <para> 64 <application>Tidy HTML5</application> source tarball shown above 65 downloads with the correct name tidy-html5-&tidy-version;.tar.gz, if 66 using a browser such as Firefox. If you prefer to use a command line 67 program, such as wget, you obtain &tidy-version;.tar.gz. To 68 change the filename, run: <command>mv -vi 69 &tidy-version;.tar.gz tidy-html5-&tidy-version;.tar.gz</command>. 70 </para> 71 </note> 72 73 <bridgehead renderas="sect3">Tidy HTML5 Dependencies</bridgehead> 74 75 <bridgehead renderas="sect4">Required</bridgehead> 76 <para role="required"><xref linkend="cmake"/></para> 77 78 <bridgehead renderas="sect4">Recommended</bridgehead> 79 <para role="recommended"><xref linkend="libxslt"/></para> 70 80 71 81 <bridgehead renderas="sect4">Optional</bridgehead> 72 <para role="optional">< ulink url="http://dmalloc.com/">Dmalloc</ulink></para>82 <para role="optional"><xref linkend="doxygen"/></para> 73 83 74 84 <para condition="html" role="usernotes">User Notes: … … 78 88 79 89 <sect2 role="installation"> 80 <title>Installation of HTML Tidy</title> 81 82 <para>Install <application>HTML Tidy</application> by 83 running the following commands:</para> 84 85 <screen><userinput>./configure --prefix=/usr --disable-static && 90 <title>Installation of Tidy HTML5</title> 91 92 <para>Install <application>Tidy HTML5</application> by running the following 93 commands:</para> 94 95 <screen><userinput>cd build/cmake && 96 97 cmake -DCMAKE_INSTALL_PREFIX=/usr \ 98 -DCMAKE_BUILD_TYPE=Release \ 99 -DBUILD_TAB2SPACE=ON \ 100 ../.. && 101 86 102 make</userinput></screen> 87 103 88 104 <para>This package does not come with a test suite.</para> 89 <!-- <para>To test the results, issue: <command>make check</command>.</para> --> 90 91 < para>Now, as the <systemitem class="username">root</systemitem> user:</para>105 106 <para>Now, as the <systemitem class="username">root</systemitem> user: 107 </para> 92 108 93 109 <screen role="root"><userinput>make install && 94 95 install -v -m644 -D htmldoc/tidy.1 \ 96 /usr/share/man/man1/tidy.1 && 97 install -v -m755 -d /usr/share/doc/tidy-&tidy-version; && 98 install -v -m644 htmldoc/*.{html,gif,css} \ 99 /usr/share/doc/tidy-&tidy-version;</userinput></screen> 100 101 <para>If you wish to install the API documentation you must have 102 <xref linkend="doxygen"/> installed, then change directories into the 103 <filename class='directory'>htmldoc</filename> of the source tree and 104 issue the command <command>doxygen</command>. Then as the 105 <systemitem class="username">root</systemitem> user copy 106 the <filename class='directory'>api</filename> directory to 107 <filename class='directory'>/usr/share/doc/tidy-&tidy-version;.</filename></para> 110 install -v -m755 tab2space /usr/bin</userinput></screen> 111 112 <para>If you wish to install the API documentation you must have <xref 113 linkend="doxygen"/> installed, then change directories into the <filename 114 class='directory'>documentation</filename> directory of the source tree and 115 issue the command <command>doxygen doxygen.cfg</command>. Then as the 116 <systemitem class="username">root</systemitem> user copy the <filename 117 class='directory'>documentation/temp/tidylib_api</filename> directory to 118 <filename 119 class='directory'>/usr/share/doc/tidy-&tidy-version;.</filename></para> 108 120 109 121 </sect2> … … 112 124 <title>Command Explanations</title> 113 125 114 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 115 href="../../xincludes/static-libraries.xml"/> 126 <para> 127 <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used to 128 build the release library without any debug `assert` in the code. 129 </para> 130 131 <para> 132 <parameter>-DBUILD_TAB2SPACE=ON</parameter>: This switch is used to enable 133 building the <command>tab2space</command> utility. 134 </para> 116 135 117 136 </sect2> 118 137 119 138 <sect2 role="configuration"> 120 <title>Configuring HTML Tidy</title>139 <title>Configuring Tidy HTML5</title> 121 140 122 141 <sect3> … … 149 168 <seglistitem> 150 169 <seg>tab2space and tidy</seg> 151 <seg>libtidy.so </seg>170 <seg>libtidy.so and libtidys.a</seg> 152 171 <seg>/usr/share/doc/tidy-&tidy-version;</seg> 153 172 </seglistitem> … … 164 183 <para>is a utility to expand tabs and ensure consistent line 165 184 endings.</para> 166 <indexterm zone=" html-tidytab2space">185 <indexterm zone="tidy-html tab2space"> 167 186 <primary sortas="b-tab2space">tab2space</primary> 168 187 </indexterm> … … 174 193 <listitem> 175 194 <para>validates, corrects, and pretty-prints HTML files.</para> 176 <indexterm zone=" html-tidytidy">195 <indexterm zone="tidy-html tidy"> 177 196 <primary sortas="b-tidy">tidy</primary> 178 197 </indexterm> … … 181 200 182 201 <varlistentry id="libtidy"> 183 <term><filename class='libraryfile'>libtidy.so</filename></term> 202 <term> 203 <filename class='libraryfile'>libtidy.so and libtidys.a</filename> 204 </term> 184 205 <listitem> 185 <para>library provides the <application> HTML Tidy</application> API206 <para>library provides the <application>Tidy HTML5</application> API 186 207 functions to <command>tidy</command> and can also be called by other 187 208 programs.</para> 188 <indexterm zone=" html-tidylibtidy">209 <indexterm zone="tidy-html libtidy"> 189 210 <primary sortas="c-libtidy">libtidy.so</primary> 190 211 </indexterm>
Note:
See TracChangeset
for help on using the changeset viewer.