Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinxcontrib-issuetracker/
Date: Wed, 02 Aug 2017 16:14:46
Message-Id: 1501690479.aaa00f48b5941daaba859aa35982f86225b2a7d0.floppym@gentoo
1 commit: aaa00f48b5941daaba859aa35982f86225b2a7d0
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 2 16:14:07 2017 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 2 16:14:39 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aaa00f48
7
8 dev-python/sphinxcontrib-issuetracker: re-apply namespace fix
9
10 Package-Manager: Portage-2.3.6_p23, Repoman-2.3.3_p1
11
12 .../sphinxcontrib-issuetracker-0.11-r2.ebuild | 62 ++++++++++++++++++++++
13 1 file changed, 62 insertions(+)
14
15 diff --git a/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild b/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild
16 new file mode 100644
17 index 00000000000..8215945209c
18 --- /dev/null
19 +++ b/dev-python/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-0.11-r2.ebuild
20 @@ -0,0 +1,62 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy )
27 +
28 +inherit distutils-r1
29 +
30 +DESCRIPTION="Extension to sphinx to create links to issue trackers"
31 +HOMEPAGE="http://sphinxcontrib-issuetracker.readthedocs.org/"
32 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
33 +
34 +LICENSE="BSD-2"
35 +SLOT="0"
36 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux"
37 +IUSE="doc test"
38 +
39 +RDEPEND="
40 + dev-python/namespace-sphinxcontrib[${PYTHON_USEDEP}]
41 + dev-python/requests[${PYTHON_USEDEP}]
42 + dev-python/sphinx[${PYTHON_USEDEP}]"
43 +DEPEND="${RDEPEND}
44 + dev-python/setuptools[${PYTHON_USEDEP}]
45 + test? (
46 + dev-python/mock[${PYTHON_USEDEP}]
47 + dev-python/pytest[${PYTHON_USEDEP}]
48 + )"
49 +
50 +python_prepare_all() {
51 + # test requires network access (bug #425694)
52 + rm tests/test_builtin_trackers.py || die
53 +
54 + # Tests from tests/test_stylesheet.py require dev-python/PyQt4[X,webkit]
55 + # and virtualx.eclass.
56 + rm tests/test_stylesheet.py || die
57 +
58 + # Avoid redundant objects.inv from downloading, sed more lightweight
59 + if use doc; then
60 + sed -e "s:^intersphinx_mapping:#intersphinx_mapping:" \
61 + -e "s:^ 'sphinx':#:" \
62 + -i doc/conf.py || die
63 + fi
64 +
65 + distutils-r1_python_prepare_all
66 +}
67 +
68 +python_compile_all() {
69 + if use doc; then
70 + emake -C doc html
71 + HTML_DOCS=( doc/_build/html/. )
72 + fi
73 +}
74 +
75 +python_test() {
76 + py.test || die
77 +}
78 +
79 +python_install_all() {
80 + distutils-r1_python_install_all
81 + find "${ED}" -name '*.pth' -delete || die
82 +}