# HG changeset patch # User Aleksej Bobylev # Date 1449705512 -7200 # Node ID bc08d1b89c0f404b2af5905ea25bf853551aa4e2 # Parent 1fe6e9e8e0786ce8717690670c23e872013780ba Add tidy-html5, csstidy, rcssmin diff -r 1fe6e9e8e078 -r bc08d1b89c0f csstidy/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/csstidy/description.txt Thu Dec 10 01:58:32 2015 +0200 @@ -0,0 +1,3 @@ +CSSTidy is an open source CSS parser and optimizer. In opposite to most other +CSS parsers, no regular expressions are used and thus CSSTidy has full CSS2 +support and a higher reliability. diff -r 1fe6e9e8e078 -r bc08d1b89c0f csstidy/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/csstidy/receipt Thu Dec 10 01:58:32 2015 +0200 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="csstidy" +VERSION="1.4" +CATEGORY="development" +SHORT_DESC="CSSTidy is a program that optimises, formats and fixes CSS code" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="GPL2" +WEB_SITE="http://csstidy.sourceforge.net/" +TARBALL="$PACKAGE-source-$VERSION.zip" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +DEPENDS="" +BUILD_DEPENDS="scons" + +# Rules to configure and make the package. +compile_rules() +{ + patch -p1 -i $stuff/csstidy-1.4-fix-misc.cpp.patch + scons + mkdir -p $install/usr/bin + cp -a $src/release/csstidy/csstidy $install/usr/bin +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs +} diff -r 1fe6e9e8e078 -r bc08d1b89c0f csstidy/stuff/csstidy-1.4-fix-misc.cpp.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/csstidy/stuff/csstidy-1.4-fix-misc.cpp.patch Thu Dec 10 01:58:32 2015 +0200 @@ -0,0 +1,10 @@ +--- a/csstidy/misc.cpp ++++ b/csstidy/misc.cpp +@@ -16,6 +16,7 @@ + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + ++#include + #include "csspp_globals.hpp" + + bool escaped(const string &istring, const int pos) diff -r 1fe6e9e8e078 -r bc08d1b89c0f rcssmin/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rcssmin/description.txt Thu Dec 10 01:58:32 2015 +0200 @@ -0,0 +1,50 @@ +RCSSmin is a CSS minifier written in Python. + +The minifier is based on the semantics of the YUI compressor, which itself is +based on the rule list by Isaac Schlueter. + +This module is a re-implementation aiming for speed instead of maximum +compression, so it can be used at runtime (rather than during a preprocessing +step). RCSSmin does syntactical compression only (removing spaces, comments and +possibly semicolons). It does not provide semantic compression (like removing +empty blocks, collapsing redundant properties etc). It does, however, support +various CSS hacks (by keeping them working as intended). + +Here's a feature list: + + - Strings are kept, except that escaped newlines are stripped + - Space/Comments before the very end or before various characters are + stripped: ``:{});=>],!`` (The colon (``:``) is a special case, a single + space is kept if it's outside a ruleset.) + - Space/Comments at the very beginning or after various characters are + stripped: ``{}(=:>[,!`` + - Optional space after unicode escapes is kept, resp. replaced by a simple + space + - whitespaces inside ``url()`` definitions are stripped + - Comments starting with an exclamation mark (``!``) can be kept optionally. + - All other comments and/or whitespace characters are replaced by a single + space. + - Multiple consecutive semicolons are reduced to one + - The last semicolon within a ruleset is stripped + - CSS Hacks supported: + + - IE7 hack (``>/**/``) + - Mac-IE5 hack (``/*\*/.../**/``) + - The boxmodelhack is supported naturally because it relies on valid CSS2 + strings + - Between ``:first-line`` and the following comma or curly brace a space is + inserted. (apparently it's needed for IE6) + - Same for ``:first-letter`` + +rcssmin.c is a reimplementation of rcssmin.py in C and improves runtime up to +factor 100 or so (depending on the input). docs/BENCHMARKS in the source +distribution contains the details. + +The module additionally provides a "streamy" interface: + +$ python -mrcssmin minified + +It takes two options: + + -b Keep bang-comments (Comments starting with an exclamation mark) + -p Force using the python implementation (not the C implementation) diff -r 1fe6e9e8e078 -r bc08d1b89c0f rcssmin/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rcssmin/receipt Thu Dec 10 01:58:32 2015 +0200 @@ -0,0 +1,26 @@ +# SliTaz package receipt. + +PACKAGE="rcssmin" +VERSION="1.0.6" +CATEGORY="development" +SHORT_DESC="rCSSmin is a CSS minifier written in Python" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="Apache" +WEB_SITE="http://opensource.perlig.de/rcssmin/" +TARBALL="$PACKAGE-$VERSION.tar.xz" +WGET_URL="http://storage.perlig.de/rcssmin/$TARBALL" + +DEPENDS="python" +BUILD_DEPENDS="python-dev" + +# Rules to configure and make the package. +compile_rules() +{ + python setup.py install --root=$install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/* $fs +} diff -r 1fe6e9e8e078 -r bc08d1b89c0f tidy-html5/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tidy-html5/description.txt Thu Dec 10 01:58:32 2015 +0200 @@ -0,0 +1,17 @@ +Tidy reads HTML, XHTML, and XML files and writes cleaned-up markup. For HTML +variants, it detects, reports, and corrects many common coding errors and +strives to produce visually equivalent markup that is both conformant to the +HTML specifications and that works in most browsers. + +A common use of Tidy is to convert plain HTML to XHTML. For generic XML files, +Tidy is limited to correcting basic well-formedness errors and pretty printing. + +If no input file is specified, Tidy reads the standard input. If no output file +is specified, Tidy writes the tidied markup to the standard output. If no error +file is specified, Tidy writes messages to the standard error. +For command line options that expect a numerical argument, a default is assumed +if no meaningful value can be found. + +Tidy was written by Dave Raggett , and subsequently maintained by a +team at , and now maintained by HTACG +(). diff -r 1fe6e9e8e078 -r bc08d1b89c0f tidy-html5/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tidy-html5/receipt Thu Dec 10 01:58:32 2015 +0200 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="tidy-html5" +VERSION="5.1.25" +CATEGORY="development" +SHORT_DESC="The granddaddy of HTML tools, with support for modern standards" +MAINTAINER="al.bobylev@gmail.com" +LICENSE="MIT" +WEB_SITE="http://www.htacg.org/tidy-html5/" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/htacg/tidy-html5/archive/$VERSION.tar.gz" + +DEPENDS="" +BUILD_DEPENDS="cmake libxslt" + +# Rules to configure and make the package. +compile_rules() +{ + cd build/cmake + cmake ../.. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release && + make && make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $install/usr/bin $fs/usr +}