1 |
commit: 92aa994971d49989df2fe0075dea8c4523f309ad |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 27 12:49:40 2016 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 27 12:49:40 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92aa9949 |
7 |
|
8 |
dev-python/bpython: is now compatible with recent curtsies |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-python/bpython/bpython-0.15-r2.ebuild | 56 +++++++++++++++++++++++++++++++ |
13 |
1 file changed, 56 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/bpython/bpython-0.15-r2.ebuild b/dev-python/bpython/bpython-0.15-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..bed6aa8 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/bpython/bpython-0.15-r2.ebuild |
20 |
@@ -0,0 +1,56 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) |
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.9[${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 |
+} |