Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/autojump/
Date: Fri, 11 Dec 2015 21:12:39
Message-Id: 1449262822.d817c33d460afeda104ef7016f6e1bd9dd7dbf9f.monsieurp@gentoo
1 commit: d817c33d460afeda104ef7016f6e1bd9dd7dbf9f
2 Author: Marc Joliet <marcec <AT> gmx <DOT> de>
3 AuthorDate: Fri Dec 4 20:57:30 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 4 21:00:22 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d817c33d
7
8 app-shells/autojump-22.2.4-r4: python -> ipython
9
10 Rename the python USE flag to ipython, since it really controls IPython
11 support, and not general Python support.
12
13 app-shells/autojump/autojump-22.2.4-r4.ebuild | 8 ++++----
14 app-shells/autojump/metadata.xml | 3 +++
15 2 files changed, 7 insertions(+), 4 deletions(-)
16
17 diff --git a/app-shells/autojump/autojump-22.2.4-r4.ebuild b/app-shells/autojump/autojump-22.2.4-r4.ebuild
18 index 6c967ce..84bf291 100644
19 --- a/app-shells/autojump/autojump-22.2.4-r4.ebuild
20 +++ b/app-shells/autojump/autojump-22.2.4-r4.ebuild
21 @@ -15,11 +15,11 @@ SRC_URI="https://github.com/joelthelion/${PN}/archive/release-v${PV}.tar.gz -> $
22 LICENSE="GPL-3"
23 SLOT="0"
24 KEYWORDS="~amd64 ~x86 ~ppc ~ppc64"
25 -IUSE="python test"
26 +IUSE="ipython test"
27
28 # Not all tests pass. Need investigation.
29 RESTRICT="test"
30 -RDEPEND="python? ( ${PYTHON_DEPS} )"
31 +RDEPEND="ipython? ( ${PYTHON_DEPS} )"
32 DEPEND="test? ( dev-python/flake8 dev-python/tox )"
33
34 src_prepare() {
35 @@ -56,7 +56,7 @@ src_install() {
36 doins bin/_j
37
38 python_foreach_impl python_domodule bin/autojump_data.py bin/autojump_utils.py
39 - if use python; then
40 + if use ipython; then
41 python_foreach_impl python_domodule tools/autojump_ipython.py
42 fi
43
44 @@ -65,7 +65,7 @@ src_install() {
45 }
46
47 pkg_postinst() {
48 - if use python; then
49 + if use ipython; then
50 elog 'This tool provides "j" for ipython, please add'
51 elog '"import autojump_ipython" to your ipy_user_conf.py.'
52 elog
53
54 diff --git a/app-shells/autojump/metadata.xml b/app-shells/autojump/metadata.xml
55 index 9365472..136e949 100644
56 --- a/app-shells/autojump/metadata.xml
57 +++ b/app-shells/autojump/metadata.xml
58 @@ -9,4 +9,7 @@
59 <bugs-to>https://github.com/joelthelion/autojump/issues</bugs-to>
60 <remote-id type="github">joelthelion/autojump</remote-id>
61 </upstream>
62 + <use>
63 + <flag name="ipython">Add support for <pkg>dev-python/ipython</pkg></flag>
64 + </use>
65 </pkgmetadata>