diff a/PKGBUILD b/PKGBUILD --- a/PKGBUILD +++ b/PKGBUILD @@ -4,7 +4,7 @@ pkgname=python2-rst2pdf pkgver=0.91 -pkgrel=1 +pkgrel=2 pkgdesc="Create PDFs from simple text markup, no LaTeX required" arch=('any') url="http://rst2pdf.googlecode.com" @@ -16,11 +16,14 @@ optdepends=('uniconvertor: vector images support' 'python-wordaxe: hyphenation' 'python2-pygments: Syntax Highlighting' 'python-imaging: non-JPEG bitmap image formats') -source=(http://rst2pdf.googlecode.com/files/rst2pdf-$pkgver.tar.gz) -md5sums=('9ca219b0460be89585f96588e12543b9') +source=(http://rst2pdf.googlecode.com/files/rst2pdf-$pkgver.tar.gz + math.patch) +md5sums=('9ca219b0460be89585f96588e12543b9' + '0a4ef9cbe1c00b0f9c0f1b591394f8b7') package() { cd "$srcdir/rst2pdf-$pkgver" + patch -p1 < "$srcdir/math.patch" python2 setup.py install --root="$pkgdir" (cd doc && rst2man rst2pdf.txt rst2pdf.1) install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/python2-rst2pdf/LICENSE.txt" diff a/math.patch b/math.patch new file mode 100644 --- /dev/null +++ b/math.patch @@ -0,0 +1,20 @@ +--- rst2pdf-0.91/rst2pdf/math_flowable.py Tue Mar 6 02:44:00 2012 ++++ rst2pdf-0.91/rst2pdf/math_flowable.py Wed May 2 00:42:05 2012 +@@ -85,13 +85,14 @@ + canv.setFillColorRGB(1,0,0) + canv.drawString(0,0,self.s) + canv.restoreState() +- if self.label: +- log.info('Drawing equation-%s'%self.label) +- canv.bookmarkHorizontal('equation-%s'%self.label,0,height) + else: + canv.saveState() + canv.drawString(x, y, self.s) + canv.restoreState() ++ ++ if self.label: ++ log.info('Drawing equation-%s'%self.label) ++ canv.bookmarkHorizontal('equation-%s'%self.label,0,height) + + def descent(self): + """Return the descent of this flowable,