Index: head/textproc/py-sphinx/Makefile =================================================================== --- head/textproc/py-sphinx/Makefile (revision 447274) +++ head/textproc/py-sphinx/Makefile (revision 447275) @@ -1,39 +1,39 @@ # Created by: Li-Wen Hsu # $FreeBSD$ PORTNAME= sphinx PORTVERSION= 1.4.8 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 1 CATEGORIES= textproc python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= Sphinx-${PORTVERSION} DIST_SUBDIR= python MAINTAINER= araujo@FreeBSD.org COMMENT= Python documentation generator LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.3:devel/py-Jinja2 \ ${PYTHON_PKGNAMEPREFIX}docutils>=0.11:textproc/py-docutils \ ${PYTHON_PKGNAMEPREFIX}six>=1.4:devel/py-six RUN_DEPENDS?= ${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel\ ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.3:devel/py-Jinja2 \ ${PYTHON_PKGNAMEPREFIX}docutils>=0.11:textproc/py-docutils \ ${PYTHON_PKGNAMEPREFIX}pygments>=2.0:textproc/py-pygments \ ${PYTHON_PKGNAMEPREFIX}Babel>=1.3:devel/py-babel \ ${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>=0.1:textproc/py-sphinx_rtd_theme \ ${PYTHON_PKGNAMEPREFIX}alabaster>=0.7:textproc/py-alabaster \ ${PYTHON_PKGNAMEPREFIX}snowballstemmer>=1.1:textproc/py-snowballstemmer \ ${PYTHON_PKGNAMEPREFIX}six>=1.4:devel/py-six \ ${PYTHON_PKGNAMEPREFIX}imagesize>=0.7.1:graphics/py-imagesize \ ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss USES?= python USE_PYTHON= autoplist distutils NO_ARCH= yes .include Index: head/textproc/py-sphinx/files/patch-sphinx_writers_html.py =================================================================== --- head/textproc/py-sphinx/files/patch-sphinx_writers_html.py (nonexistent) +++ head/textproc/py-sphinx/files/patch-sphinx_writers_html.py (revision 447275) @@ -0,0 +1,27 @@ +--- sphinx/writers/html.py.orig 2016-10-01 15:14:37 UTC ++++ sphinx/writers/html.py +@@ -16,6 +16,7 @@ import copy + import warnings + + from six import string_types ++import docutils + from docutils import nodes + from docutils.writers.html4css1 import Writer, HTMLTranslator as BaseTranslator + +@@ -497,6 +498,16 @@ class HTMLTranslator(BaseTranslator): + if 'height' not in node: + node['height'] = str(size[1]) + BaseTranslator.visit_image(self, node) ++ ++ # overwritten ++ def depart_image(self, node): ++ if docutils.__version__ >= "0.13": ++ # since docutils-0.13, HTMLWriter does not push context data on visit_image() ++ if node['uri'].lower().endswith(('svg', 'svgz')): ++ self.body.append(self.context.pop()) ++ else: ++ # docutils-0.12 or below, HTML Writer always push context data on visit_image() ++ self.body.append(self.context.pop()) + + def visit_toctree(self, node): + # this only happens when formatting a toc from env.tocs -- in this Property changes on: head/textproc/py-sphinx/files/patch-sphinx_writers_html.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property