Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinx/
Date: Mon, 17 Jul 2017 21:15:25
Message-Id: 1500326111.6e06df517dd2ef848b6148aee5fc718687cfeb13.chutzpah@gentoo
1 commit: 6e06df517dd2ef848b6148aee5fc718687cfeb13
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 17 21:15:11 2017 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 17 21:15:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e06df51
7
8 dev-python/sphinx: Clean out pre-revbump 1.6.3
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-python/sphinx/sphinx-1.6.3.ebuild | 116 ----------------------------------
13 1 file changed, 116 deletions(-)
14
15 diff --git a/dev-python/sphinx/sphinx-1.6.3.ebuild b/dev-python/sphinx/sphinx-1.6.3.ebuild
16 deleted file mode 100644
17 index bb3fc5994c6..00000000000
18 --- a/dev-python/sphinx/sphinx-1.6.3.ebuild
19 +++ /dev/null
20 @@ -1,116 +0,0 @@
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=( python2_7 python3_{4,5,6} )
27 -PYTHON_REQ_USE="threads(+)"
28 -
29 -inherit distutils-r1 eutils versionator
30 -
31 -DESCRIPTION="Python documentation generator"
32 -HOMEPAGE="http://www.sphinx-doc.org/"
33 -SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz"
34 -
35 -LICENSE="BSD"
36 -SLOT="0"
37 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~x86 ~amd64-linux ~x86-linux"
38 -IUSE="doc latex net test"
39 -
40 -RDEPEND="
41 - >=dev-python/alabaster-0.7.9[${PYTHON_USEDEP}]
42 - <dev-python/alabaster-0.8[${PYTHON_USEDEP}]
43 - >=dev-python/Babel-2.1.1[${PYTHON_USEDEP}]
44 - >=dev-python/docutils-0.11[${PYTHON_USEDEP}]
45 - dev-python/imagesize[${PYTHON_USEDEP}]
46 - >=dev-python/jinja-2.3[${PYTHON_USEDEP}]
47 - >=dev-python/pygments-2.0.1-r1[${PYTHON_USEDEP}]
48 - dev-python/requests[${PYTHON_USEDEP}]
49 - >=dev-python/six-1.5[${PYTHON_USEDEP}]
50 - >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}]
51 - >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}]
52 - <dev-python/sphinx_rtd_theme-2.0[${PYTHON_USEDEP}]
53 - latex? (
54 - dev-texlive/texlive-latexextra
55 - dev-texlive/texlive-luatex
56 - app-text/dvipng
57 - )
58 - net? (
59 - >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}]
60 - >=dev-python/whoosh-2.0[${PYTHON_USEDEP}]
61 - )"
62 -DEPEND="${RDEPEND}
63 - dev-python/setuptools[${PYTHON_USEDEP}]
64 - test? (
65 - dev-python/flake8[${PYTHON_USEDEP}]
66 - dev-python/html5lib[${PYTHON_USEDEP}]
67 - dev-python/mock[${PYTHON_USEDEP}]
68 - dev-python/pytest[${PYTHON_USEDEP}]
69 - dev-python/pytest-cov[${PYTHON_USEDEP}]
70 - dev-python/simplejson[${PYTHON_USEDEP}]
71 - dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}]
72 - >=dev-python/sqlalchemy-0.9[${PYTHON_USEDEP}]
73 - dev-python/typing[${PYTHON_USEDEP}]
74 - >=dev-python/whoosh-2.0[${PYTHON_USEDEP}]
75 - virtual/imagemagick-tools[jpeg,png,svg]
76 - virtual/python-enum34[${PYTHON_USEDEP}]
77 - )"
78 -
79 -S="${WORKDIR}/${P^}"
80 -
81 -PATCHES=(
82 - "${FILESDIR}"/${PN}-1.5.1-fix-pycode-grammar.patch
83 -)
84 -
85 -python_prepare_all() {
86 - # remove tests that fail due to network-sandbox
87 - rm tests/test_websupport.py || die "Failed to remove web tests"
88 - rm tests/test_build_linkcheck.py || die "Failed to remove web tests"
89 -
90 - distutils-r1_python_prepare_all
91 -}
92 -
93 -python_compile() {
94 - distutils-r1_python_compile
95 -
96 - # Generate the grammar. It will be caught by install somehow.
97 - # Note that the tests usually do it for us. However, I don't want
98 - # to trust USE=test really running all the tests, especially
99 - # with FEATURES=test-fail-continue.
100 - pushd "${BUILD_DIR}"/lib >/dev/null || die
101 - "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed."
102 - popd >/dev/null || die
103 -}
104 -
105 -python_compile_all() {
106 - if use doc; then
107 - emake -C doc SPHINXBUILD='"${EPYTHON}" "${S}/sphinx-build.py"' html
108 - HTML_DOCS=( doc/_build/html/. )
109 - fi
110 -}
111 -
112 -python_test() {
113 - mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
114 - local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
115 - cp -r -l tests "${BUILD_DIR}"/ || die "Failed to copy tests"
116 - cp Makefile "${BUILD_DIR}"/ || die "Failed to copy Makefile"
117 - emake test
118 -}
119 -
120 -pkg_postinst() {
121 - replacing_python_eclass() {
122 - local pv
123 - for pv in ${REPLACING_VERSIONS}; do
124 - if ! version_is_at_least 1.1.3-r4 ${pv}; then
125 - return 0
126 - fi
127 - done
128 -
129 - return 1
130 - }
131 -
132 - if replacing_python_eclass; then
133 - ewarn "Replaced a very old sphinx version. If you are"
134 - ewarn "experiencing problems, please re-emerge sphinx."
135 - fi
136 -}