commit:     7b439d22d83d50fcc648ab02b60c3c65236d6b57
Author:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 25 02:14:17 2018 +0000
Commit:     Virgil Dupras <vdupras <AT> gentoo <DOT> org>
CommitDate: Sat Aug 25 02:14:17 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b439d22

dev-python/click: fix doc building with sphinx 1.7

Closes: https://bugs.gentoo.org/663244
Package-Manager: Portage-2.3.47, Repoman-2.3.10

 dev-python/click/click-6.7-r1.ebuild               |  2 +
 .../click/files/click-6.7-support-sphinx-1.7.patch | 44 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-python/click/click-6.7-r1.ebuild 
b/dev-python/click/click-6.7-r1.ebuild
index ebdcd6be3d0..9a963c75612 100644
--- a/dev-python/click/click-6.7-r1.ebuild
+++ b/dev-python/click/click-6.7-r1.ebuild
@@ -26,6 +26,8 @@ DEPEND="
 PATCHES=(
        # From upstream, can be removed in next release.
        "${FILESDIR}/${PN}-6.7-fix-tests.patch"
+       # From upstream, can be removed in next release.
+       "${FILESDIR}/${PN}-6.7-support-sphinx-1.7.patch"
 )
 
 pkg_setup() {

diff --git a/dev-python/click/files/click-6.7-support-sphinx-1.7.patch 
b/dev-python/click/files/click-6.7-support-sphinx-1.7.patch
new file mode 100644
index 00000000000..1076c2decad
--- /dev/null
+++ b/dev-python/click/files/click-6.7-support-sphinx-1.7.patch
@@ -0,0 +1,44 @@
+From 2c7929511114494350e26d7b0c790fb8ca82f605 Mon Sep 17 00:00:00 2001
+From: Daw-Ran Liou <dawr...@gmail.com>
+Date: Mon, 14 May 2018 13:34:23 -0400
+Subject: [PATCH] Support Sphinx 1.7+
+
+Move: from sphinx.util.compat import Directive
+To: from docutils.parsers.rst import Directive
+---
+ docs/clickdoctools.py | 2 +-
+ setup.py              | 5 +++++
+ 2 files changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/docs/clickdoctools.py b/docs/clickdoctools.py
+index c3db195..1dd47d3 100644
+--- a/docs/clickdoctools.py
++++ b/docs/clickdoctools.py
+@@ -15,7 +15,7 @@ from docutils import nodes
+ from docutils.statemachine import ViewList
+ 
+ from sphinx.domains import Domain
+-from sphinx.util.compat import Directive
++from docutils.parsers.rst import Directive
+ 
+ PY2 = sys.version_info[0] == 2
+ 
+diff --git a/setup.py b/setup.py
+index b78403e..f1bcdcf 100644
+--- a/setup.py
++++ b/setup.py
+@@ -24,6 +24,11 @@ setup(
+     maintainer_email='cont...@palletsprojects.com',
+     long_description=readme,
+     packages=['click'],
++    extras_require={
++        'docs': [
++            'sphinx',
++        ],
++    },
+     description='A simple wrapper around optparse for '
+                 'powerful command line utilities.',
+     license='BSD',
+-- 
+2.16.4
+

Reply via email to