Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bpython/
Date: Tue, 28 Feb 2017 13:21:41
Message-Id: 1488288087.63c16c56a0eec351e40a1433c1357f5e1ff14b35.grozin@gentoo
1 commit: 63c16c56a0eec351e40a1433c1357f5e1ff14b35
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 13:21:27 2017 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 13:21:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=63c16c56
7
8 dev-python/bpython: python3_6 added
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-python/bpython/bpython-0.16-r1.ebuild | 56 +++++++++++++++++++++++++++++++
13 1 file changed, 56 insertions(+)
14
15 diff --git a/dev-python/bpython/bpython-0.16-r1.ebuild b/dev-python/bpython/bpython-0.16-r1.ebuild
16 new file mode 100644
17 index 0000000000..78d5ff8c42
18 --- /dev/null
19 +++ b/dev-python/bpython/bpython-0.16-r1.ebuild
20 @@ -0,0 +1,56 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id: 69b8d82844b1c159ee746b1724c39a08e159d6b0 $
24 +
25 +EAPI=5
26 +
27 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Syntax highlighting and autocompletion for the Python interpreter"
32 +HOMEPAGE="http://www.bpython-interpreter.org/ https://github.com/bpython/bpython https://pypi.python.org/pypi/bpython"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~x86"
38 +IUSE="doc test"
39 +
40 +RDEPEND="
41 + >=dev-python/curtsies-0.2.11[${PYTHON_USEDEP}]
42 + dev-python/greenlet[${PYTHON_USEDEP}]
43 + dev-python/jedi[${PYTHON_USEDEP}]
44 + dev-python/pygments[${PYTHON_USEDEP}]
45 + dev-python/requests[${PYTHON_USEDEP}]
46 + dev-python/setuptools[${PYTHON_USEDEP}]
47 + >=dev-python/six-1.5[${PYTHON_USEDEP}]
48 + dev-python/urwid[${PYTHON_USEDEP}]
49 + dev-python/watchdog[${PYTHON_USEDEP}]
50 + "
51 +DEPEND="${RDEPEND}
52 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
53 + test? ( dev-python/mock[${PYTHON_USEDEP}] )"
54 +
55 +DOCS=( AUTHORS CHANGELOG sample.theme light.theme )
56 +
57 +# Req'd for clean build by each impl
58 +DISTUTILS_IN_SOURCE_BUILD=1
59 +
60 +python_compile_all() {
61 + if use doc; then
62 + sphinx-build -b html -c doc/sphinx/source/ \
63 + doc/sphinx/source/ doc/sphinx/source/html || die "docs build failed"
64 + fi
65 +}
66 +
67 +python_test() {
68 + pushd build/lib > /dev/null
69 + "${PYTHON}" -m unittest discover || die
70 + popd > /dev/null
71 +}
72 +
73 +python_install_all() {
74 + use doc && local HTML_DOCS=( doc/sphinx/source/html/. )
75 + distutils-r1_python_install_all
76 +}