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: Sun, 30 Aug 2015 20:47:53
Message-Id: 1440966082.574b2e02979285210fe5f13d28cd4064746100c2.monsieurp@gentoo
1 commit: 574b2e02979285210fe5f13d28cd4064746100c2
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 30 19:51:05 2015 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 30 20:21:22 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=574b2e02
7
8 app-shells/autojump: Version bump.
9
10 Package-Manager: portage-2.2.18
11 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
12
13 app-shells/autojump/autojump-22.2.4.ebuild | 64 ++++++++++++++++++++++++++++++
14 1 file changed, 64 insertions(+)
15
16 diff --git a/app-shells/autojump/autojump-22.2.4.ebuild b/app-shells/autojump/autojump-22.2.4.ebuild
17 new file mode 100644
18 index 0000000..1e19667
19 --- /dev/null
20 +++ b/app-shells/autojump/autojump-22.2.4.ebuild
21 @@ -0,0 +1,64 @@
22 +# Copyright 1999-2015 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=5
27 +
28 +PYTHON_COMPAT=( python{2_7,3_3,3_4} )
29 +
30 +inherit python-r1 python-utils-r1 vcs-snapshot
31 +
32 +DESCRIPTION="change directory command that learns"
33 +HOMEPAGE="https://github.com/joelthelion/autojump"
34 +SRC_URI="https://github.com/joelthelion/${PN}/archive/release-v${PV}.tar.gz -> ${P}.tar.gz"
35 +
36 +LICENSE="GPL-3"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE="bash-completion python test zsh-completion"
40 +
41 +# Not all tests pass. Need investigation.
42 +RESTRICT="test"
43 +RDEPEND="bash-completion? ( >=app-shells/bash-4 )
44 + python? ( ${PYTHON_DEPS} )
45 + zsh-completion? ( app-shells/zsh app-shells/gentoo-zsh-completions )"
46 +DEPEND="test? (
47 + dev-python/flake8
48 + dev-python/tox
49 + )"
50 +
51 +src_prepare() {
52 + sed -e "s: \(/etc/profile.d\): \"${EPREFIX}\1\":" \
53 + -i bin/autojump.sh || die
54 +}
55 +
56 +src_compile() {
57 + true
58 +}
59 +
60 +src_install() {
61 + dobin bin/autojump
62 +
63 + insinto /etc/profile.d
64 + doins bin/${PN}.sh
65 +
66 + if use bash-completion ; then
67 + doins bin/${PN}.bash
68 + fi
69 +
70 + if use zsh-completion ; then
71 + doins bin/${PN}.zsh
72 + insinto /usr/share/zsh/site-functions
73 + doins bin/_j
74 + fi
75 +
76 + if use python ; then
77 + python_foreach_impl python_domodule tools/autojump_ipython.py
78 +
79 + einfo "This tool provides \"j\" for ipython, please add"
80 + einfo "\"import autojump_ipython\" to your ipy_user_conf.py."
81 + fi
82 +
83 + doman docs/${PN}.1
84 + dodoc README.md
85 +}