--- csstidy-1.4.orig/debian/changelog +++ csstidy-1.4/debian/changelog @@ -0,0 +1,39 @@ +csstidy (1.4-3) unstable; urgency=low + + * Add patch gcc43fix which contains an uncaught missing include in + csstidy/misc.cpp. Closes: #455123. + * Bumped Standards-Version to 3.7.3. No changes. + + -- Kevin Coyner Sun, 24 Feb 2008 20:52:52 -0500 + +csstidy (1.4-2) unstable; urgency=low + + * Included patch from Bastian Kleineidam, which allows empty css files to be + generated instead of deemed an error. Closes: #443492. + * debian/control: + + Added dpatch as B-D + + Moved homepage from long description to Homepage field. + + -- Kevin Coyner Fri, 21 Sep 2007 22:09:29 -0400 + +csstidy (1.4-1) unstable; urgency=low + + * New upstream release 1.4. + * Changed debian/rules to use scons compiler since this is what upstream has + provided. Removed all patch invocations. + * Added scons and removed autotools-dev and dpatch as Build-Depends in debian/control. + * Removed debian/patches since no longer needed with this new release. + * Added Will Mitchell and Thierry Charbonnel to debian/copyright as upstream + authors. + * New e-mail address for maintainer. Changed throughout debian/* files. + * Upstream provides source files in a .zip. Re-packed as a .tar.gz. + + -- Kevin Coyner Tue, 14 Aug 2007 15:13:05 -0400 + +csstidy (1.2-1) unstable; urgency=low + + * Initial release. Closes: #415091 + * Added Makefile and related files using dpatch to create a proper build + system. + + -- Kevin Coyner Sun, 18 Mar 2007 15:26:26 -0400 --- csstidy-1.4.orig/debian/compat +++ csstidy-1.4/debian/compat @@ -0,0 +1 @@ +5 --- csstidy-1.4.orig/debian/control +++ csstidy-1.4/debian/control @@ -0,0 +1,17 @@ +Source: csstidy +Section: utils +Priority: extra +Maintainer: Kevin Coyner +Homepage: http://csstidy.sourceforge.net/ +Build-Depends: debhelper (>= 5), scons, dpatch +Standards-Version: 3.7.3 + +Package: csstidy +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: CSS parser and optimiser + csstidy parses and optimises your CSS code, making it cleaner and more + concise. The end result is a smaller CSS file and better written code. It + has a variety of option settings giving the user a significant amount of + control over the level of file compression and readability. It is not meant + to be a css validator. --- csstidy-1.4.orig/debian/copyright +++ csstidy-1.4/debian/copyright @@ -0,0 +1,29 @@ +This package was debianized by Kevin Coyner on +Sun, 18 Mar 2007 15:26:26 -0400. + +It was downloaded from http://csstidy.sourceforge.net. + +Upstream Authors: Florian Schmitz + Will Mitchell + Thierry Charbonnel + +Copyright: (c) 2005, 2006 Florian Schmitz + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +The Debian packaging is (C) 2007, Kevin Coyner and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- csstidy-1.4.orig/debian/rules +++ csstidy-1.4/debian/rules @@ -0,0 +1,60 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +build: patch build-stamp +build-stamp: + dh_testdir + touch $@ + +clean: clean-patched unpatch + +clean-patched: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + -rm -fr release/ + -rm -f .sconsign.dblite + dh_clean + +patch: patch-stamp +patch-stamp: + dpatch apply-all + dpatch cat-all >patch-stamp + +unpatch: + dpatch deapply-all + rm -rf patch-stamp debian/patched + +install: build + dh_testdir + dh_testroot + dh_clean -k + scons + install -D release/csstidy/csstidy debian/csstidy/usr/bin/csstidy + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installman debian/csstidy.1 + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build build-stamp clean binary-indep binary-arch binary install patch unpatch clean-patched --- csstidy-1.4.orig/debian/watch +++ csstidy-1.4/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/csstidy/csstidy-source-(.*)\.zip --- csstidy-1.4.orig/debian/csstidy.1 +++ csstidy-1.4/debian/csstidy.1 @@ -0,0 +1,148 @@ +.\" Title: csstidy +.\" Author: +.\" Generator: DocBook XSL Stylesheets v1.72.0 +.\" Date: 03/18/2007 +.\" Manual: +.\" Source: +.\" +.TH "CSSTIDY" "1" "03/18/2007" "" "" +.\" disable hyphenation +.nh +.\" disable justification (adjust text to left margin only) +.ad l +.SH "NAME" +csstidy \- CSS parser and optimiser +.SH "SYNOPSIS" +\fIcsstidy\fR input\-file [options] [output\-file] +.sp +.SH "DESCRIPTION" +The csstidy(1) command parses and optimises a css file given as \fIinput\-file\fR. If no \fIoutput\-file\fR is specified, the results are displayed to standard output. Various options allow for fine\-grained control over the level of readability, file size and other items. +.sp +If you use the filename "\-", csstidy reads from stdin. In most case you will probably find that csstidy defaults are reasonable and applicable to most situations. +.sp +Note that csstidy is not designed to be a css validator. Although you should only enter valid (or rather well\-formed) code, csstidy will also parse and fix incorrect code. +.sp +.SH "EXAMPLES" +.PP +To optimise a CSS file and send the output to screen use: +.RS 4 +csstidy mycssfile.css +.RE +.PP +If you want to save the output to a file, use: +.RS 4 +csstidy mycssfile.css myoutputfile.css +.RE +.PP +If you want to use an option[s] and output to a file, use: +.RS 4 +csstidy mycssfile.css \-\-lowercase_s=true myoutputfile.css +.RE +.SH "OPTIONS" +.PP +\-\-allow_html_in_templates=[false|true] +.RS 4 +default = false +.RE +.PP +\-\-case_properties=[false|true] +.RS 4 +Case for properties. Default = false. +.RE +.PP +\-\-compress_colors=[true|false] +.RS 4 +If set to true, csstidy will optimize color value by trying to save bytes (i.e. black becomes #000). Default = true. +.RE +.PP +\-\-compress_font\-weight=[true|false] +.RS 4 +If set to true, csstidy will optimize font value by trying to save bytes (i.e. normal becomes 400). Default = true. +.RE +.PP +\-\-discard_invalid_properties=[false|true] +.RS 4 +If set to true, csstidy will remove invalid properties. In a sense this is like validation, except you get no warnings unless you study the output. As an example, if you misspelled the property "width" as "with", that property will simply be removed. Default = false. +.RE +.PP +\-\-lowercase_s=[false|true] +.RS 4 +If set to true, all uppercase selectors (i.e. A, P, SPAN) will be rewritten in lowercase. Default = false. +.RE +.PP +\-\-preserve_css=[false|true] +.RS 4 +All comments and most browser specific hacks will be removed if this is set to false. Setting this to true will preserve browser specific hacks. Default = false. +.RE +.PP +\-\-remove_bslash=[true|false] +.RS 4 +Remove unnecessary backslashes. This may or may not be desirable depending upon whether you have used backslashes to accomodate browsers that do not comply with w3c standards. Default = true. +.RE +.PP +\-\-remove_last_;=[false|true] +.RS 4 +Default = false. +.RE +.PP +\-\-silent=[false|true] +.RS 4 +When set to true, csstidy will not output information about the optimizations preformed. Default = false. +.RE +.PP +\-\-sort_properties=[false|true] +.RS 4 +Sorts properties (i.e. background, color, width) of selectors. Default = false. +.RE +.PP +\-\-sort_selectors=[false|true] +.RS 4 +Sorts selectors. Use this with caution, as it will totally rearrange any sense of layout in your file that you may have written into it, and css is sensitive to order. Sorts in order of ID's, classes and then selectors. Default = false. +.RE +.PP +\-\-timestamp=[false|true] +.RS 4 +If set to true, adds a comment enclosed timestamp to the top of the output. Default = false. +.RE +.PP +\-\-merge_selectors=[2|1|0] +.RS 4 +If selectors (including ID's and classes) have identical properties, then csstidy will merge them. A setting of 2 represents a high degree of merging. 0 represents no merging. Default = 2. +.RE +.PP +\-\-optimise_shorthands=[1|2|0] +.RS 4 +If set to 2, csstidy will invoke all optimisations. 0 represents no optimisations, and 1 a safe level of optimatisations. Default = 1. +.RE +.PP +\-\-template=[default|filename|low|high|highest] +.RS 4 +Affects how much whitespace is removed and ultimately the readability of the output. +.RE +.SH "CSS HACKS" +The following is a list of all CSS hacks that will not be modified by default by csstidy. If you enable "preserve CSS", more hacks will be saved. In general you should do without CSS hacks anyway, but if you need them and want to use csstidy you should use one of the following hacks: +.sp +.sp +.RS 4 +.nf +p\eroperty:value; (only if you disable the removal of unnecessary backslashes) +div#test +head:first\-child+body div +body>div +html[xmlns] div +@import "null?\e"\e\e{"; @import "styles.css"; (and all other @import rules) +@media all{/\e* rules \e*/} +* html div +i\e{content:"\e"/*"\e} div\e{property:value\e} +html*#test +_property:value +.fi +.RE +.SH "AUTHOR" +Written by Florian Schmitz +.sp +.SH "RESOURCES" +Main web site: \fIhttp://csstidy.sourceforge.net/\fR +.sp +This manual page was written by Kevin Coyner for the Debian project but may be used by others. +.sp --- csstidy-1.4.orig/debian/patches/00list +++ csstidy-1.4/debian/patches/00list @@ -0,0 +1,2 @@ +001_emptyfile +002_gcc43fix --- csstidy-1.4.orig/debian/patches/001_emptyfile.dpatch +++ csstidy-1.4/debian/patches/001_emptyfile.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 001_emptyfile.dpatch by Kevin Coyner +## +## DP: allows empty css files to be generated, which are actually valid. +## DP: thanks to Bastian Kleineidam + +@DPATCH@ +diff -urNad csstidy-1.4~/csstidy/print_css.cpp csstidy-1.4/csstidy/print_css.cpp +--- csstidy-1.4~/csstidy/print_css.cpp 2007-07-10 10:20:52.000000000 -0400 ++++ csstidy-1.4/csstidy/print_css.cpp 2007-09-21 22:13:06.000000000 -0400 +@@ -78,8 +78,7 @@ + { + if(css.empty() && charset == "" && namesp == "" && import.empty() && csstokens.empty()) + { +- if(!settings["silent"]) cout << "Invalid CSS!" << endl; +- return; ++ if(!settings["silent"]) cout << "Warning: empty CSS output!" << endl; + } + + ofstream file_output; --- csstidy-1.4.orig/debian/patches/002_gcc43fix.dpatch +++ csstidy-1.4/debian/patches/002_gcc43fix.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 00_gcc43fix.dpatch by Kevin Coyner +## +## DP: in csstidy/misc.cpp, add uncaught missing #include +## DP: closes bug #455123 + +@DPATCH@ +diff -urNad csstidy-1.4~/csstidy/misc.cpp csstidy-1.4/csstidy/misc.cpp +--- csstidy-1.4~/csstidy/misc.cpp 2007-07-10 10:20:54.000000000 -0400 ++++ csstidy-1.4/csstidy/misc.cpp 2008-02-24 20:49:26.000000000 -0500 +@@ -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)