--- redcloth-4.2.2.orig/debian/copyright
+++ redcloth-4.2.2/debian/copyright
@@ -0,0 +1,29 @@
+Author: Jason Garber
+
+Copyright (c) 2008 Jason Garber
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+  
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+   
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+------------------------------------------------------------------------
+
+Packaged for Debian by: Dmitry Borodaenko <angdraug@debian.org>
+
+Copyright (c) 2004-2008  Dmitry Borodaenko <angdraug@debian.org>
+
+Obtained from: http://rubyforge.org/projects/redcloth/
+
--- redcloth-4.2.2.orig/debian/compat
+++ redcloth-4.2.2/debian/compat
@@ -0,0 +1 @@
+5
--- redcloth-4.2.2.orig/debian/libredcloth-ruby1.9.1.docs
+++ redcloth-4.2.2/debian/libredcloth-ruby1.9.1.docs
@@ -0,0 +1 @@
+README
--- redcloth-4.2.2.orig/debian/rules
+++ redcloth-4.2.2/debian/rules
@@ -0,0 +1,120 @@
+#!/usr/bin/make -f
+SHELL	= /bin/bash
+
+tmp	= debian/tmp
+bindir	= /usr/bin
+libdir18 = $(shell ruby1.8 -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
+archdir18 = $(shell ruby1.8 -r rbconfig -e 'print Config::CONFIG["archdir"]')
+libdir19 = $(shell ruby1.9.1 -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
+archdir19 = $(shell ruby1.9.1 -r rbconfig -e 'print Config::CONFIG["archdir"]')
+
+build: build-ruby1.8-stamp build-ruby1.9.1-stamp
+
+build-common-stamp:
+	dh_testdir
+
+	-rm -f ext/redcloth_scan/*.c
+	ragel ext/redcloth_scan/redcloth_scan.c.rl -o ext/redcloth_scan/redcloth_scan.c
+	ragel ext/redcloth_scan/redcloth_inline.c.rl -o ext/redcloth_scan/redcloth_inline.c
+	ragel ext/redcloth_scan/redcloth_attributes.c.rl -o ext/redcloth_scan/redcloth_attributes.c
+
+	rdoc1.8 --inline-source --line-numbers \
+		--op rdoc --main README --title "RedCloth" \
+		lib README
+
+	touch build-common-stamp
+
+build-ruby1.8-stamp: build-common-stamp
+	dh_testdir
+
+	# configure
+	ruby1.8 setup.rb clean
+	ruby1.8 setup.rb config \
+		--bindir=$(tmp)$(bindir) \
+		--rbdir=$(tmp)$(libdir18) \
+		--sodir=$(tmp)$(archdir18) \
+		--shebang=never
+
+	# build
+	ruby1.8 setup.rb setup
+
+	# install
+	ruby1.8 setup.rb install
+
+	touch build-ruby1.8-stamp
+
+build-ruby1.9.1-stamp: build-common-stamp
+	dh_testdir
+
+	# configure
+	ruby1.9.1 setup.rb clean
+	ruby1.9.1 setup.rb config \
+		--bindir=$(tmp)$(bindir) \
+		--rbdir=$(tmp)$(libdir19) \
+		--sodir=$(tmp)$(archdir19) \
+		--shebang=never
+
+	# build
+	ruby1.9.1 setup.rb setup
+
+	# install
+	ruby1.9.1 setup.rb install
+
+	touch build-ruby1.9.1-stamp
+
+install: build
+	dh_testdir
+	dh_testroot
+
+	echo "$(tmp)$(libdir18)/redcloth*" >debian/libredcloth-ruby1.8.install
+	echo "$(tmp)$(archdir18)/redcloth*" >>debian/libredcloth-ruby1.8.install
+	echo "$(tmp)$(libdir19)/redcloth*" >debian/libredcloth-ruby1.9.1.install
+	echo "$(tmp)$(archdir19)/redcloth*" >>debian/libredcloth-ruby1.9.1.install
+
+	dh_install
+
+binary: binary-indep binary-arch
+
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+
+	dh_installchangelogs -i CHANGELOG
+	dh_installdocs -i
+	dh_link -i
+	dh_compress -i -X.rb -X.html -X.css
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch: build install
+	dh_testdir -a
+	dh_testroot -a
+
+	dh_installchangelogs -a CHANGELOG
+	dh_installdocs -a
+	dh_link -a
+	dh_strip -a
+	dh_compress -a -X.rb -X.html -X.css
+	dh_fixperms -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+clean:
+	dh_testdir
+	dh_testroot
+
+	ruby1.8 setup.rb distclean
+	-rm -f build-*-stamp
+	-rm -f debian/*.install
+	-rm -rf rdoc
+	-rm -f ext/redcloth_scan/*.c
+
+	dh_clean
+
+.PHONY: build install binary binary-indep binary-arch clean
--- redcloth-4.2.2.orig/debian/watch
+++ redcloth-4.2.2/debian/watch
@@ -0,0 +1,3 @@
+version=2
+http://rubyforge.org/frs/?group_id=216 \
+  .*/RedCloth-([\d\.]*)\.(tar\.gz|tgz)
--- redcloth-4.2.2.orig/debian/libredcloth-ruby1.8.docs
+++ redcloth-4.2.2/debian/libredcloth-ruby1.8.docs
@@ -0,0 +1 @@
+README
--- redcloth-4.2.2.orig/debian/control
+++ redcloth-4.2.2/debian/control
@@ -0,0 +1,55 @@
+Source: redcloth
+Maintainer: Dmitry Borodaenko <angdraug@debian.org>
+Section: ruby
+Priority: optional
+Homepage: http://redcloth.org/
+Vcs-Browser: http://github.com/jgarber/redcloth/tree/master
+Vcs-Git: git://github.com/jgarber/redcloth.git
+Build-Depends: debhelper (>= 5), ruby1.8, ruby1.8-dev, rdoc1.8, ruby1.9.1, ruby1.9.1-dev, ragel (>= 6.3)
+Standards-Version: 3.8.3
+
+Package: libredcloth-ruby
+Architecture: all
+Depends: libredcloth-ruby1.8
+Description: Textile module for Ruby
+ Textile is a very simple text format, intended for making readable text
+ that can be converted to HTML, and used in docs, blogs, and Wiki pages.
+ .
+ RedCloth is a Ruby module for converting Textile to HTML.
+ .
+ This package is a dependency package, which depends on the package
+ containing actual RedCloth module for the default Ruby version
+ (currently 1.8).
+
+Package: libredcloth-ruby-doc
+Section: doc
+Architecture: all
+Description: Textile module for Ruby documentation
+ Textile is a very simple text format, intended for making readable text
+ that can be converted to HTML, and used in docs, blogs, and Wiki pages.
+ .
+ RedCloth is a Ruby module for converting Textile to HTML.
+ .
+ This package contains documentation for RedCloth module.
+
+Package: libredcloth-ruby1.8
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Textile module for Ruby 1.8
+ Textile is a very simple text format, intended for making readable text
+ that can be converted to HTML, and used in docs, blogs, and Wiki pages.
+ .
+ RedCloth is a Ruby module for converting Textile to HTML.
+ .
+ This package contains RedCloth module for Ruby 1.8.
+
+Package: libredcloth-ruby1.9.1
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: Textile module for Ruby 1.9.1
+ Textile is a very simple text format, intended for making readable text
+ that can be converted to HTML, and used in docs, blogs, and Wiki pages.
+ .
+ RedCloth is a Ruby module for converting Textile to HTML.
+ .
+ This package contains RedCloth module for Ruby 1.9.1.
--- redcloth-4.2.2.orig/debian/libredcloth-ruby-doc.docs
+++ redcloth-4.2.2/debian/libredcloth-ruby-doc.docs
@@ -0,0 +1,2 @@
+README
+rdoc
--- redcloth-4.2.2.orig/debian/changelog
+++ redcloth-4.2.2/debian/changelog
@@ -0,0 +1,119 @@
+redcloth (4.2.2-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Switch to Ruby 1.9.1. Closes: #565839.
+
+ -- Lucas Nussbaum <lucas@lucas-nussbaum.net>  Sat, 13 Feb 2010 08:36:52 +0100
+
+redcloth (4.2.2-1) unstable; urgency=low
+
+  * New upstream version.
+  * Replaced autogenerated ext/redcloth_scan/*.c with Ragel source files
+    pulled from upstream git.
+  * Vcs-Browser and Vcs-Git fields added to debian/control.
+  * Debhelper compat level upgraded to 5.
+  * Standards-Version upgraded to 3.8.3:
+    - section changed to ruby.
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Sat, 22 Aug 2009 13:04:38 +0300
+
+redcloth (4.1.9-2) unstable; urgency=low
+
+  * Rearranged target dependencies in debian/rules to conform to Debian
+    Policy: binary-* should depend on build, this was missing for
+    binary-arch (Closes: #518496).
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Sat, 07 Mar 2009 17:07:34 +0200
+
+redcloth (4.1.9-1) unstable; urgency=low
+
+  * New upstream version:
+    - Ruby 1.9 compatibility fixes.
+  * Revert from Rakefile back to setup.rb.
+  * Removed rake and rubgems from Build-Depends.
+  * Upload to unstable.
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Wed, 04 Mar 2009 17:32:04 +0200
+
+redcloth (4.0.4-2) experimental; urgency=low
+
+  * Added ruby1.8-dev and ruby1.9-dev to Build-Depends (Closes: #504273).
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Sun, 02 Nov 2008 15:11:50 +0200
+
+redcloth (4.0.4-1) experimental; urgency=low
+
+  * New upstream version:
+    - total rewrite with new maintainer and new copyright
+    - pure Ruby implementation replaced with binary library compiled from C
+      code generated by Ragel
+    - license changed from BSD to MIT.
+  * Upstream source tarball repackaged to exclude binary and auto-generated
+    files (*.bundle, ._*, *.c), size reduced from 400k to 70k.
+  * Updated to Standards-Version 3.8.0:
+    - Homepage: field added to control file.
+  * Watch file updated (upstream switched from tar.gz to tgz).
+  * Build a library for Ruby 1.9 in libredcloth-ruby1.9.
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Tue, 28 Oct 2008 18:19:30 +0200
+
+redcloth (3.0.99.0.svn.20060519-1) unstable; urgency=low
+
+  * Subversion snapshot of RedCloth 3.1.
+    - includes main part of notextile fix by Paul van Tilburg
+      (Closes: #392012)
+    - forward-ported Paul van Tilburg's fix for (*) and (**) from 3.0.4-2
+    - removed fix for (_), as it breaks more important test cases
+  * notextile modifier regexp cleanup by Paul van Tilburg.
+  * 'x' between numerics fixed (Closes: #389370).
+  * Improved and included infinite loop fix by Fabien Penso on
+    redcloth-upwards ML.
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Sun, 15 Oct 2006 16:28:51 +0100
+
+redcloth (3.0.4-2) unstable; urgency=low
+
+  * Generate more documentation:
+    - generate RDoc documentation (Closes: #357631)
+    - generate HTML versions of README and REFERENCE
+  * Include patch by Paul van Tilburg:
+    - fix for strong (*) and bold (**) greediness (Closes: #368442)
+    - remove non-multiline limit for emphasis (_) (Closes: #367670)
+  * Bumped Standards-Version to 3.7.2.
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Sat, 09 Sep 2006 18:58:33 +0100
+
+redcloth (3.0.4-1) unstable; urgency=low
+
+  * New upstream version.
+  * Updated project home page link in debian/copyright file.
+  * Bumped Standards-Version to 3.6.2.
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Thu, 06 Oct 2005 20:06:11 +0300
+
+redcloth (3.0.3-2) unstable; urgency=low
+
+  * New version from upstream CVS (2005-02-18):
+    - fixes unwanted <p> in lite_mode (Closes: #303095)
+    - fixes list handling
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Wed,  6 Apr 2005 13:09:38 +0300
+
+redcloth (3.0.3-1) unstable; urgency=low
+
+  * New upstream version.
+  * Added debian/watch file.
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Fri, 11 Feb 2005 12:46:15 +0200
+
+redcloth (2.0.10-2) unstable; urgency=low
+
+  * Fixed long description to be more descriptive.
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Thu,  1 Jul 2004 18:13:08 +0300
+
+redcloth (2.0.10-1) unstable; urgency=low
+
+  * Initial release. Closes: #256663 (ITP).
+
+ -- Dmitry Borodaenko <angdraug@debian.org>  Mon, 28 Jun 2004 18:26:31 +0300
