summaryrefslogtreecommitdiff
path: root/community/python2-rst2pdf
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-25 23:14:43 +0000
committerroot <root@rshg054.dnsready.net>2011-08-25 23:14:43 +0000
commit9621cbabd4788b98dfdee59d784c4b4b58384c6b (patch)
tree8dbd549f0f81a825febf0db7fbf641db995459be /community/python2-rst2pdf
parentf53c212680c1817ef2337855ef8814dea6b07e4e (diff)
Thu Aug 25 23:14:43 UTC 2011
Diffstat (limited to 'community/python2-rst2pdf')
-rw-r--r--community/python2-rst2pdf/LICENSE.txt20
-rw-r--r--community/python2-rst2pdf/PKGBUILD2
-rw-r--r--community/python2-rst2pdf/rst2pdf-0.16_docutils-0.8.patch52
3 files changed, 73 insertions, 1 deletions
diff --git a/community/python2-rst2pdf/LICENSE.txt b/community/python2-rst2pdf/LICENSE.txt
new file mode 100644
index 000000000..89b95f202
--- /dev/null
+++ b/community/python2-rst2pdf/LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2007,2008,2009 Roberto Alsina
+Nicolas Laurance, Christoph Zwerschke, Yasushi Masuda, Josh VanderLinden.
+
+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 OR COPYRIGHT HOLDERS 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.
diff --git a/community/python2-rst2pdf/PKGBUILD b/community/python2-rst2pdf/PKGBUILD
index b33bcdea3..b81b90874 100644
--- a/community/python2-rst2pdf/PKGBUILD
+++ b/community/python2-rst2pdf/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 54723 2011-08-23 21:08:22Z angvp $
+# $Id: PKGBUILD 54721 2011-08-23 21:07:42Z angvp $
# Maintainer: Angel Velasquez <angvp@archlinux.org>
# Contributor: Roberto Alsina <ralsina@kde.org>
pkgname=python2-rst2pdf
diff --git a/community/python2-rst2pdf/rst2pdf-0.16_docutils-0.8.patch b/community/python2-rst2pdf/rst2pdf-0.16_docutils-0.8.patch
new file mode 100644
index 000000000..a7cc081ff
--- /dev/null
+++ b/community/python2-rst2pdf/rst2pdf-0.16_docutils-0.8.patch
@@ -0,0 +1,52 @@
+Index: rst2pdf/createpdf.py
+===================================================================
+--- rst2pdf/createpdf.py (revision 2441)
++++ rst2pdf/createpdf.py (working copy)
+@@ -56,6 +56,7 @@
+ from optparse import OptionParser
+ import logging
+
++import docutils
+ from docutils.languages import get_language
+ import docutils.readers.doctree
+ import docutils.core
+@@ -97,6 +98,12 @@
+ escape=tenjin.helpers.escape
+ templateEngine=tenjin.Engine()
+
++# fix get_language for docutils>=0.8
++if docutils.__version__ >= '0.8':
++ orig_func = get_language
++ def get_language(arg1):
++ return orig_func(arg1, None)
++
+ def renderTemplate(tname, **context):
+ context['to_str']=to_str
+ context['escape']=escape
+Index: rst2pdf/pdfbuilder.py
+===================================================================
+--- rst2pdf/pdfbuilder.py (revision 2441)
++++ rst2pdf/pdfbuilder.py (working copy)
+@@ -27,6 +27,7 @@
+ from rst2pdf import pygments_code_block_directive, oddeven_directive
+ from pygments.lexers import get_lexer_by_name, guess_lexer
+
++import docutils
+ from docutils import writers
+ from docutils import nodes
+ from docutils import languages
+@@ -56,7 +57,14 @@
+
+ from traceback import print_exc
+
++# fix get_language for docutils>=0.8
++if docutils.__version__ >= '0.8':
++ orig_func = get_language
++ def get_language(arg1):
++ return orig_func(arg1, None)
++ languages.get_language = get_language
+
++
+ class PDFBuilder(Builder):
+ name = 'pdf'
+ out_suffix = '.pdf'