diff options
-rw-r--r-- | app-shells/autojump/autojump-22.2.4-r4.ebuild | 8 | ||||
-rw-r--r-- | app-shells/autojump/metadata.xml | 3 |
2 files changed, 7 insertions, 4 deletions
diff --git a/app-shells/autojump/autojump-22.2.4-r4.ebuild b/app-shells/autojump/autojump-22.2.4-r4.ebuild index 6c967ce1d362..84bf29112be3 100644 --- a/app-shells/autojump/autojump-22.2.4-r4.ebuild +++ b/app-shells/autojump/autojump-22.2.4-r4.ebuild @@ -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 diff --git a/app-shells/autojump/metadata.xml b/app-shells/autojump/metadata.xml index 93654722ae8a..136e949672cc 100644 --- a/app-shells/autojump/metadata.xml +++ b/app-shells/autojump/metadata.xml @@ -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> |