blob: cc4d46dafcbba10ff570ad27bde10df0ccb4d261 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-shells/autojump/autojump-13.ebuild,v 1.1 2010/10/26 22:15:00 xmw Exp $
EAPI=3
PYTHON_DEPEND="2"
inherit python
DESCRIPTION="change directory command that learns"
HOMEPAGE="http://github.com/joelthelion/autojump"
MY_P=${PN}_v${PV}
SRC_URI="http://github.com/downloads/joelthelion/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bash-completion gtk zsh-completion"
RDEPEND="gtk? ( dev-python/pygtk:2 )
bash-completion? ( >=app-shells/bash-4 )
zsh-completion? ( app-shells/zsh app-shells/zsh-completion )"
S=${WORKDIR}/${MY_P}
src_prepare() {
python_convert_shebangs -r 2 .
}
src_install() {
dobin autojump || die
if use gtk ; then
dobin jumpapplet || die
insinto /usr/share/${PN}
doins icon.png || die
fi
insinto /etc/profile.d
doins ${PN}.sh || die
if use bash-completion ; then
doins ${PN}.bash || die
fi
if use zsh-completion ; then
doins ${PN}.zsh || die
insinto /usr/share/zsh/site-functions
doins _j || die
fi
doman ${PN}.1 || die
dodoc README.rst || die
}
|