wok rev 18686

Add tidy-html5, csstidy, rcssmin
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 10 01:58:32 2015 +0200 (2015-12-10)
parents 1fe6e9e8e078
children bb55ebf48a66
files csstidy/description.txt csstidy/receipt csstidy/stuff/csstidy-1.4-fix-misc.cpp.patch rcssmin/description.txt rcssmin/receipt tidy-html5/description.txt tidy-html5/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/csstidy/description.txt	Thu Dec 10 01:58:32 2015 +0200
     1.3 @@ -0,0 +1,3 @@
     1.4 +CSSTidy is an open source CSS parser and optimizer. In opposite to most other
     1.5 +CSS parsers, no regular expressions are used and thus CSSTidy has full CSS2
     1.6 +support and a higher reliability.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/csstidy/receipt	Thu Dec 10 01:58:32 2015 +0200
     2.3 @@ -0,0 +1,29 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="csstidy"
     2.7 +VERSION="1.4"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="CSSTidy is a program that optimises, formats and fixes CSS code"
    2.10 +MAINTAINER="al.bobylev@gmail.com"
    2.11 +LICENSE="GPL2"
    2.12 +WEB_SITE="http://csstidy.sourceforge.net/"
    2.13 +TARBALL="$PACKAGE-source-$VERSION.zip"
    2.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.15 +
    2.16 +DEPENDS=""
    2.17 +BUILD_DEPENDS="scons"
    2.18 +
    2.19 +# Rules to configure and make the package.
    2.20 +compile_rules()
    2.21 +{
    2.22 +	patch -p1 -i $stuff/csstidy-1.4-fix-misc.cpp.patch
    2.23 +	scons
    2.24 +	mkdir -p $install/usr/bin
    2.25 +	cp -a $src/release/csstidy/csstidy $install/usr/bin
    2.26 +}
    2.27 +
    2.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.29 +genpkg_rules()
    2.30 +{
    2.31 +	cp -a $install/* $fs
    2.32 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/csstidy/stuff/csstidy-1.4-fix-misc.cpp.patch	Thu Dec 10 01:58:32 2015 +0200
     3.3 @@ -0,0 +1,10 @@
     3.4 +--- a/csstidy/misc.cpp
     3.5 ++++ b/csstidy/misc.cpp
     3.6 +@@ -16,6 +16,7 @@
     3.7 +  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     3.8 +  */
     3.9 +  
    3.10 ++#include <string.h>
    3.11 + #include "csspp_globals.hpp"
    3.12 + 
    3.13 + bool escaped(const string &istring, const int pos) 
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/rcssmin/description.txt	Thu Dec 10 01:58:32 2015 +0200
     4.3 @@ -0,0 +1,50 @@
     4.4 +RCSSmin is a CSS minifier written in Python.
     4.5 +
     4.6 +The minifier is based on the semantics of the YUI compressor, which itself is
     4.7 +based on the rule list by Isaac Schlueter.
     4.8 +
     4.9 +This module is a re-implementation aiming for speed instead of maximum
    4.10 +compression, so it can be used at runtime (rather than during a preprocessing
    4.11 +step). RCSSmin does syntactical compression only (removing spaces, comments and
    4.12 +possibly semicolons). It does not provide semantic compression (like removing
    4.13 +empty blocks, collapsing redundant properties etc). It does, however, support
    4.14 +various CSS hacks (by keeping them working as intended).
    4.15 +
    4.16 +Here's a feature list:
    4.17 +
    4.18 +  - Strings are kept, except that escaped newlines are stripped
    4.19 +  - Space/Comments before the very end or before various characters are
    4.20 +    stripped: ``:{});=>],!`` (The colon (``:``) is a special case, a single
    4.21 +    space is kept if it's outside a ruleset.)
    4.22 +  - Space/Comments at the very beginning or after various characters are
    4.23 +    stripped: ``{}(=:>[,!``
    4.24 +  - Optional space after unicode escapes is kept, resp. replaced by a simple
    4.25 +    space
    4.26 +  - whitespaces inside ``url()`` definitions are stripped
    4.27 +  - Comments starting with an exclamation mark (``!``) can be kept optionally.
    4.28 +  - All other comments and/or whitespace characters are replaced by a single
    4.29 +    space.
    4.30 +  - Multiple consecutive semicolons are reduced to one
    4.31 +  - The last semicolon within a ruleset is stripped
    4.32 +  - CSS Hacks supported:
    4.33 +
    4.34 +    - IE7 hack (``>/**/``)
    4.35 +    - Mac-IE5 hack (``/*\*/.../**/``)
    4.36 +    - The boxmodelhack is supported naturally because it relies on valid CSS2
    4.37 +      strings
    4.38 +    - Between ``:first-line`` and the following comma or curly brace a space is
    4.39 +      inserted. (apparently it's needed for IE6)
    4.40 +    - Same for ``:first-letter``
    4.41 +
    4.42 +rcssmin.c is a reimplementation of rcssmin.py in C and improves runtime up to
    4.43 +factor 100 or so (depending on the input). docs/BENCHMARKS in the source
    4.44 +distribution contains the details.
    4.45 +
    4.46 +The module additionally provides a "streamy" interface:
    4.47 +
    4.48 +$ python -mrcssmin <css >minified
    4.49 +
    4.50 +It takes two options:
    4.51 +
    4.52 +  -b  Keep bang-comments (Comments starting with an exclamation mark)  
    4.53 +  -p  Force using the python implementation (not the C implementation)
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/rcssmin/receipt	Thu Dec 10 01:58:32 2015 +0200
     5.3 @@ -0,0 +1,26 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="rcssmin"
     5.7 +VERSION="1.0.6"
     5.8 +CATEGORY="development"
     5.9 +SHORT_DESC="rCSSmin is a CSS minifier written in Python"
    5.10 +MAINTAINER="al.bobylev@gmail.com"
    5.11 +LICENSE="Apache"
    5.12 +WEB_SITE="http://opensource.perlig.de/rcssmin/"
    5.13 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    5.14 +WGET_URL="http://storage.perlig.de/rcssmin/$TARBALL"
    5.15 +
    5.16 +DEPENDS="python"
    5.17 +BUILD_DEPENDS="python-dev"
    5.18 +
    5.19 +# Rules to configure and make the package.
    5.20 +compile_rules()
    5.21 +{
    5.22 +	python setup.py install --root=$install
    5.23 +}
    5.24 +
    5.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.26 +genpkg_rules()
    5.27 +{
    5.28 +	cp -a $install/* $fs
    5.29 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/tidy-html5/description.txt	Thu Dec 10 01:58:32 2015 +0200
     6.3 @@ -0,0 +1,17 @@
     6.4 +Tidy reads HTML, XHTML, and XML files and writes cleaned-up markup. For HTML
     6.5 +variants, it detects, reports, and corrects many common coding errors and
     6.6 +strives to produce visually equivalent markup that is both conformant to the
     6.7 +HTML specifications and that works in most browsers.
     6.8 +
     6.9 +A common use of Tidy is to convert plain HTML to XHTML. For generic XML files,
    6.10 +Tidy is limited to correcting basic well-formedness errors and pretty printing.
    6.11 +
    6.12 +If no input file is specified, Tidy reads the standard input. If no output file
    6.13 +is specified, Tidy writes the tidied markup to the standard output. If no error
    6.14 +file is specified, Tidy writes messages to the standard error.
    6.15 +For command line options that expect a numerical argument, a default is assumed
    6.16 +if no meaningful value can be found.
    6.17 +
    6.18 +Tidy was written by Dave Raggett <dsr@w3.org>, and subsequently maintained by a
    6.19 +team at <http://tidy.sourceforge.net/>, and now maintained by HTACG
    6.20 +(<http://www.htacg.org>).
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/tidy-html5/receipt	Thu Dec 10 01:58:32 2015 +0200
     7.3 @@ -0,0 +1,29 @@
     7.4 +# SliTaz package receipt.
     7.5 +
     7.6 +PACKAGE="tidy-html5"
     7.7 +VERSION="5.1.25"
     7.8 +CATEGORY="development"
     7.9 +SHORT_DESC="The granddaddy of HTML tools, with support for modern standards"
    7.10 +MAINTAINER="al.bobylev@gmail.com"
    7.11 +LICENSE="MIT"
    7.12 +WEB_SITE="http://www.htacg.org/tidy-html5/"
    7.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    7.14 +WGET_URL="https://github.com/htacg/tidy-html5/archive/$VERSION.tar.gz"
    7.15 +
    7.16 +DEPENDS=""
    7.17 +BUILD_DEPENDS="cmake libxslt"
    7.18 +
    7.19 +# Rules to configure and make the package.
    7.20 +compile_rules()
    7.21 +{
    7.22 +	cd build/cmake
    7.23 +	cmake ../.. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release &&
    7.24 +	make && make install
    7.25 +}
    7.26 +
    7.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    7.28 +genpkg_rules()
    7.29 +{
    7.30 +	mkdir -p $fs/usr
    7.31 +	cp -a $install/usr/bin $fs/usr
    7.32 +}