From b618c3d0693aec564c6746238fd05d94e31d3b76 Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 3 Apr 2012 14:54:55 +0000 Subject: Tue Apr 3 14:54:45 UTC 2012 --- community/python2-rst2pdf/LICENSE.txt | 20 --------- community/python2-rst2pdf/PKGBUILD | 37 --------------- .../rst2pdf-0.16_docutils-0.8.patch | 52 ---------------------- 3 files changed, 109 deletions(-) delete mode 100644 community/python2-rst2pdf/LICENSE.txt delete mode 100644 community/python2-rst2pdf/PKGBUILD delete mode 100644 community/python2-rst2pdf/rst2pdf-0.16_docutils-0.8.patch (limited to 'community/python2-rst2pdf') diff --git a/community/python2-rst2pdf/LICENSE.txt b/community/python2-rst2pdf/LICENSE.txt deleted file mode 100644 index 89b95f202..000000000 --- a/community/python2-rst2pdf/LICENSE.txt +++ /dev/null @@ -1,20 +0,0 @@ -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 deleted file mode 100644 index b81b90874..000000000 --- a/community/python2-rst2pdf/PKGBUILD +++ /dev/null @@ -1,37 +0,0 @@ -# $Id: PKGBUILD 54721 2011-08-23 21:07:42Z angvp $ -# Maintainer: Angel Velasquez -# Contributor: Roberto Alsina -pkgname=python2-rst2pdf -pkgver=0.16 -pkgrel=10 -pkgdesc="Create PDFs from simple text markup, no LaTeX required." -arch=('i686' 'x86_64') -url="http://rst2pdf.googlecode.com" -license=('MIT') -depends=('python2' 'setuptools' 'docutils' 'python-reportlab') -source=(http://rst2pdf.googlecode.com/files/rst2pdf-$pkgver.tar.gz LICENSE.txt - rst2pdf-0.16_docutils-0.8.patch) -optdepends=('uniconvertor: vector images support' - 'python-svglib: some SVG support' - 'inkscape: best SVG support' - 'python-wordaxe: hyphenation' - 'python2-pygments: Syntax Highlighting' - 'pil: non-JPEG bitmap image formats' - 'pythonmagick: more image formats') -md5sums=('67b8bfac3ac55a85a09fc35ba98794d3' - '416f8046c66b9476cdbacda69a673afe' - 'fcd21288b01b35f654579670dd8c7a02') - -build() { - cd $srcdir/rst2pdf-$pkgver - patch -p0 < ../rst2pdf-0.16_docutils-0.8.patch - python2 setup.py install --root=$pkgdir -} - -package() { - cd $srcdir/rst2pdf-$pkgver - install -D ../LICENSE.txt $pkgdir/usr/share/licenses/python-rst2pdf/COPYING - (cd doc && rst2man rst2pdf.txt rst2pdf.1) - install -D doc/rst2pdf.1 $pkgdir/usr/share/man/man1/rst2pdf.1 - gzip $pkgdir/usr/share/man/man1/rst2pdf.1 -} diff --git a/community/python2-rst2pdf/rst2pdf-0.16_docutils-0.8.patch b/community/python2-rst2pdf/rst2pdf-0.16_docutils-0.8.patch deleted file mode 100644 index a7cc081ff..000000000 --- a/community/python2-rst2pdf/rst2pdf-0.16_docutils-0.8.patch +++ /dev/null @@ -1,52 +0,0 @@ -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' -- cgit v1.2.3-54-g00ecf