1 |
commit: b27bb494f30cb0a2c686add3b7be79b549ba678f |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 2 16:19:09 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 2 20:22:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b27bb494 |
7 |
|
8 |
dev-python/sphinxcontrib-websupport: Bump to 1.2.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/sphinxcontrib-websupport/Manifest | 1 + |
13 |
.../sphinxcontrib-websupport-1.2.0.ebuild | 54 ++++++++++++++++++++++ |
14 |
2 files changed, 55 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sphinxcontrib-websupport/Manifest b/dev-python/sphinxcontrib-websupport/Manifest |
17 |
index 9c05cfb2f57..bd7b6749a69 100644 |
18 |
--- a/dev-python/sphinxcontrib-websupport/Manifest |
19 |
+++ b/dev-python/sphinxcontrib-websupport/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST sphinxcontrib-websupport-1.1.0.tar.gz 587947 BLAKE2B fafaa56071245c8934e27c6d2d7752745b2a8047c8a30d52e513fff7f952086a1b9082aa15e15ef232d69ef0c0d5d117f8a8c97fcdf9cd90c89d53238d7f322e SHA512 adbd7db06150a4424a881a22442c2535ed823c7adcc295ef9c3af5ae38d823349830a114e8a7af2138498d0e68b37189707c1bb5a28b45c76031bcf94210fb89 |
22 |
+DIST sphinxcontrib-websupport-1.2.0.gh.tar.gz 599551 BLAKE2B ffa7561cd0698600d8770227c338e301a00b71f745f6a47aee958830924763522c9e761ab2dc2e77b14404a893374bd84b05bd0e32ff3d08151c554222d05332 SHA512 9b8caf3be0a473e14f8923971eabd99c717f7f0e271bceb83346ba0281eba84a2613b0f1cd3a6181c8e06e650205722ed284e242c31a0a61ea5c9910ece9ed6d |
23 |
|
24 |
diff --git a/dev-python/sphinxcontrib-websupport/sphinxcontrib-websupport-1.2.0.ebuild b/dev-python/sphinxcontrib-websupport/sphinxcontrib-websupport-1.2.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..c0da508ae12 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/sphinxcontrib-websupport/sphinxcontrib-websupport-1.2.0.ebuild |
29 |
@@ -0,0 +1,54 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
36 |
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Sphinx websupport extension" |
41 |
+HOMEPAGE="https://www.sphinx-doc.org |
42 |
+ https://github.com/sphinx-doc/sphinxcontrib-websupport" |
43 |
+# pypi tarball is missing templates |
44 |
+SRC_URI="https://github.com/sphinx-doc/sphinxcontrib-websupport/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" |
45 |
+ |
46 |
+LICENSE="BSD-2" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ >=dev-python/six-1.5[${PYTHON_USEDEP}] |
52 |
+ dev-python/namespace-sphinxcontrib[${PYTHON_USEDEP}]" |
53 |
+# avoid circular dependency with sphinx |
54 |
+PDEPEND=" |
55 |
+ >=dev-python/sphinx-1.5.3[${PYTHON_USEDEP}]" |
56 |
+BDEPEND=" |
57 |
+ test? ( |
58 |
+ ${PDEPEND} |
59 |
+ >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/whoosh-2.0[${PYTHON_USEDEP}] |
61 |
+ )" |
62 |
+ |
63 |
+distutils_enable_tests pytest |
64 |
+ |
65 |
+src_prepare() { |
66 |
+ # breaks tests |
67 |
+ sed -i -e '/pkg_resources/d' \ |
68 |
+ sphinxcontrib/websupport/__init__.py || die |
69 |
+ distutils-r1_src_prepare |
70 |
+} |
71 |
+ |
72 |
+python_compile() { |
73 |
+ distutils-r1_python_compile |
74 |
+ |
75 |
+ # missed by setup.py |
76 |
+ cp -r sphinxcontrib/websupport/templates \ |
77 |
+ "${BUILD_DIR}"/lib/sphinxcontrib/websupport/ || die |
78 |
+} |
79 |
+ |
80 |
+python_install_all() { |
81 |
+ distutils-r1_python_install_all |
82 |
+ find "${ED}" -name '*.pth' -delete || die |
83 |
+} |