View | Details | Raw Unified | Return to bug 230140 | Differences between
and this patch

Collapse All | Expand All

(-)textproc/py-sphinx/Makefile (-6 / +6 lines)
Lines 2-9 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	sphinx
4
PORTNAME=	sphinx
5
PORTVERSION=	1.6.5
5
DISTVERSION=	1.7.6
6
PORTREVISION=	1
7
PORTEPOCH=	1
6
PORTEPOCH=	1
8
CATEGORIES=	textproc python
7
CATEGORIES=	textproc python
9
MASTER_SITES=	CHEESESHOP
8
MASTER_SITES=	CHEESESHOP
Lines 23-36 Link Here
23
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel@${PY_FLAVOR} \
22
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}Jinja2>=2.3:devel/py-Jinja2@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}Jinja2>=2.3:devel/py-Jinja2@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}docutils>=0.11:textproc/py-docutils@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}docutils>=0.11:textproc/py-docutils@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}sphinxcontrib-websupport>=1.0.1:textproc/py-sphinxcontrib-websupport@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}sphinxcontrib-websupport>0:textproc/py-sphinxcontrib-websupport@${PY_FLAVOR} \
26
		${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
27
		${PYTHON_PKGNAMEPREFIX}pygments>=2.0:textproc/py-pygments@${PY_FLAVOR} \
27
		${PYTHON_PKGNAMEPREFIX}pygments>=2.0:textproc/py-pygments@${PY_FLAVOR} \
28
		${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>=0.1:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} \
28
		${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>=0.1:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} \
29
		${PYTHON_PKGNAMEPREFIX}alabaster>=0.7:textproc/py-alabaster@${PY_FLAVOR} \
29
		${PYTHON_PKGNAMEPREFIX}alabaster>=0.7:textproc/py-alabaster@${PY_FLAVOR} \
30
		${PYTHON_PKGNAMEPREFIX}snowballstemmer>=1.1:textproc/py-snowballstemmer@${PY_FLAVOR} \
30
		${PYTHON_PKGNAMEPREFIX}snowballstemmer>=1.1:textproc/py-snowballstemmer@${PY_FLAVOR} \
31
		${PYTHON_PKGNAMEPREFIX}six>=1.4:devel/py-six@${PY_FLAVOR} \
31
		${PYTHON_PKGNAMEPREFIX}six>=1.5:devel/py-six@${PY_FLAVOR} \
32
		${PYTHON_PKGNAMEPREFIX}requests>=2.18.1:www/py-requests@${PY_FLAVOR} \
32
		${PYTHON_PKGNAMEPREFIX}requests>=2.0.0:www/py-requests@${PY_FLAVOR} \
33
		${PYTHON_PKGNAMEPREFIX}imagesize>=0.7.1:graphics/py-imagesize@${PY_FLAVOR} \
33
		${PYTHON_PKGNAMEPREFIX}imagesize>0:graphics/py-imagesize@${PY_FLAVOR} \
34
		${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
34
		${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
35
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}html5lib>=0:www/py-html5lib@${PY_FLAVOR} \
35
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}html5lib>=0:www/py-html5lib@${PY_FLAVOR} \
36
		${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
36
		${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
(-)textproc/py-sphinx/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1514980036
1
TIMESTAMP = 1532844067
2
SHA256 (python/Sphinx-1.6.5.tar.gz) = c6de5dbdbb7a0d7d2757f4389cc00e8f6eb3c49e1772378967a12cfcf2cfe098
2
SHA256 (python/Sphinx-1.7.6.tar.gz) = 217ad9ece2156ed9f8af12b5d2c82a499ddf2c70a33c5f81864a08d8c67b9efc
3
SIZE (python/Sphinx-1.6.5.tar.gz) = 4680974
3
SIZE (python/Sphinx-1.7.6.tar.gz) = 4724123
(-)textproc/py-sphinx/files/patch-sphinx_writers_html.py (-27 lines)
Lines 1-27 Link Here
1
--- sphinx/writers/html.py.orig	2016-10-01 15:14:37 UTC
2
+++ sphinx/writers/html.py
3
@@ -16,6 +16,7 @@ import copy
4
 import warnings
5
 
6
 from six import string_types
7
+import docutils
8
 from docutils import nodes
9
 from docutils.writers.html4css1 import Writer, HTMLTranslator as BaseTranslator
10
 
11
@@ -497,6 +498,16 @@ class HTMLTranslator(BaseTranslator):
12
                     if 'height' not in node:
13
                         node['height'] = str(size[1])
14
         BaseTranslator.visit_image(self, node)
15
+
16
+    # overwritten
17
+    def depart_image(self, node):
18
+        if docutils.__version__ >= "0.13":
19
+            # since docutils-0.13, HTMLWriter does not push context data on visit_image()
20
+            if node['uri'].lower().endswith(('svg', 'svgz')):
21
+                self.body.append(self.context.pop())
22
+        else:
23
+            # docutils-0.12 or below, HTML Writer always push context data on visit_image()
24
+            self.body.append(self.context.pop())
25
 
26
     def visit_toctree(self, node):
27
         # this only happens when formatting a toc from env.tocs -- in this

Return to bug 230140