diff options
author | alkeo | 2018-02-18 17:46:47 +0100 |
---|---|---|
committer | alkeo | 2018-02-18 17:46:47 +0100 |
commit | 23448a7ff5ccd73772ac7b7b741e5565f2a72ab3 (patch) | |
tree | 326ac74cee8877a18af796e4c8e02ef80d232683 | |
parent | 6632595bdbad200ac7f976cc7b7e5dbe1cc2b694 (diff) | |
download | aur-23448a7ff5ccd73772ac7b7b741e5565f2a72ab3.tar.gz |
fixed compatibility with sphinx-1.7
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | sphinxcontrib-tikz-sphinx1.7-fix.diff | 21 |
3 files changed, 35 insertions, 7 deletions
@@ -1,9 +1,7 @@ -# Generated by mksrcinfo v8 -# Tue Nov 28 20:20:31 UTC 2017 pkgbase = python-sphinxcontrib-tikz pkgdesc = TikZ extension for Sphinx. pkgver = 0.4.4 - pkgrel = 1 + pkgrel = 2 url = https://bitbucket.org/philexander/tikz arch = any license = BSD @@ -12,7 +10,9 @@ pkgbase = python-sphinxcontrib-tikz makedepends = python2 makedepends = python2-setuptools source = https://files.pythonhosted.org/packages/source/s/sphinxcontrib-tikz/sphinxcontrib-tikz-0.4.4.tar.gz + source = sphinxcontrib-tikz-sphinx1.7-fix.diff sha256sums = 755a88072f7d3591846a3190f208d662bde84640b18bdea358a1358e895757ff + sha256sums = 276e04bfbca4086331cb9a135c87af1bd8a7219aa942743cbdb398fcb3741c92 pkgname = python-sphinxcontrib-tikz depends = python @@ -1,19 +1,26 @@ # Maintainer: Simon Boulay <simon.boulay@alkeona.net> +# Contributor: Melvin Vermeeren <mail@mel.vin> _name=sphinxcontrib-tikz pkgname=("python-${_name}" "python2-${_name}") pkgver=0.4.4 -pkgrel=1 +pkgrel=2 pkgdesc="TikZ extension for Sphinx." arch=('any') url="https://bitbucket.org/philexander/tikz" license=('BSD') makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") -sha256sums=('755a88072f7d3591846a3190f208d662bde84640b18bdea358a1358e895757ff') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz" + sphinxcontrib-tikz-sphinx1.7-fix.diff) +sha256sums=('755a88072f7d3591846a3190f208d662bde84640b18bdea358a1358e895757ff' + '276e04bfbca4086331cb9a135c87af1bd8a7219aa942743cbdb398fcb3741c92') prepare() { - cp -a "sphinxcontrib-tikz-$pkgver" "sphinxcontrib-tikz2-$pkgver" + cd "sphinxcontrib-tikz-$pkgver" + + patch -p1 < "${srcdir}/sphinxcontrib-tikz-sphinx1.7-fix.diff" + + cp -a "${srcdir}/sphinxcontrib-tikz-$pkgver" "${srcdir}/sphinxcontrib-tikz2-$pkgver" } package_python-sphinxcontrib-tikz() { diff --git a/sphinxcontrib-tikz-sphinx1.7-fix.diff b/sphinxcontrib-tikz-sphinx1.7-fix.diff new file mode 100644 index 000000000000..d97720ac7a84 --- /dev/null +++ b/sphinxcontrib-tikz-sphinx1.7-fix.diff @@ -0,0 +1,21 @@ +diff --git a/sphinxcontrib/tikz.py b/sphinxcontrib/tikz.py +index 4d4f8ce..bf21992 100644 +--- a/sphinxcontrib/tikz.py ++++ b/sphinxcontrib/tikz.py +@@ -58,6 +58,7 @@ except ImportError: + + from docutils import nodes, utils + from docutils.parsers.rst import directives ++from docutils.parsers.rst import Directive + + from sphinx.errors import SphinxError + try: +@@ -65,8 +66,6 @@ try: + except: + from sphinx.util import ensuredir, ENOENT + +-from sphinx.util.compat import Directive +- + from glob import glob + + _Win_ = sys.platform[0:3] == 'win' |