app-shells/autojump-22.2.4-r4: python -> ipython
authorMarc Joliet <marcec@gmx.de>
Fri, 4 Dec 2015 20:57:30 +0000 (21:57 +0100)
committerMarc Joliet <marcec@gmx.de>
Fri, 4 Dec 2015 21:00:22 +0000 (22:00 +0100)
Rename the python USE flag to ipython, since it really controls IPython
support, and not general Python support.

app-shells/autojump/autojump-22.2.4-r4.ebuild
app-shells/autojump/metadata.xml

index 6c967ce1d3628bcacd6eb63b16b5a32295d492a1..84bf29112be305805483956d6d88fabe64147279 100644 (file)
@@ -15,11 +15,11 @@ SRC_URI="https://github.com/joelthelion/${PN}/archive/release-v${PV}.tar.gz -> $
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86 ~ppc ~ppc64"
-IUSE="python test"
+IUSE="ipython test"
 
 # Not all tests pass. Need investigation.
 RESTRICT="test"
-RDEPEND="python? ( ${PYTHON_DEPS} )"
+RDEPEND="ipython? ( ${PYTHON_DEPS} )"
 DEPEND="test? ( dev-python/flake8 dev-python/tox )"
 
 src_prepare() {
@@ -56,7 +56,7 @@ src_install() {
        doins bin/_j
 
        python_foreach_impl python_domodule bin/autojump_data.py bin/autojump_utils.py
-       if use python; then
+       if use ipython; then
                python_foreach_impl python_domodule tools/autojump_ipython.py
        fi
 
@@ -65,7 +65,7 @@ src_install() {
 }
 
 pkg_postinst() {
-       if use python; then
+       if use ipython; then
                elog 'This tool provides "j" for ipython, please add'
                elog '"import autojump_ipython" to your ipy_user_conf.py.'
                elog
index 93654722ae8a7d0a1edaf103816a4944c6257691..136e949672ccada82dde00a469b19edf41059f9b 100644 (file)
@@ -9,4 +9,7 @@
     <bugs-to>https://github.com/joelthelion/autojump/issues</bugs-to>
     <remote-id type="github">joelthelion/autojump</remote-id>
   </upstream>
+  <use>
+    <flag name="ipython">Add support for <pkg>dev-python/ipython</pkg></flag>
+  </use>
 </pkgmetadata>