/[gentoo-x86]/app-shells/autojump/autojump-21.1.2.ebuild
Gentoo

Contents of /app-shells/autojump/autojump-21.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jan 9 08:45:42 2013 UTC (15 months, 2 weeks ago) by xmw
Branch: MAIN
Version bump (thanks euscan)

(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-shells/autojump/autojump-21.1.0.ebuild,v 1.1 2012/11/24 11:10:09 xmw Exp $
4
5 EAPI=4
6
7 PYTHON_DEPEND="python? *"
8 SUPPORT_PYTHON_ABIS="1"
9
10 inherit python vcs-snapshot
11
12 DESCRIPTION="change directory command that learns"
13 HOMEPAGE="http://github.com/joelthelion/autojump"
14 SRC_URI="https://github.com/joelthelion/${PN}/archive/release-v${PV}.tar.gz -> ${P}.tar.gz"
15
16 LICENSE="GPL-3"
17 SLOT="0"
18 KEYWORDS="~amd64 ~x86"
19 IUSE="bash-completion gtk python test zsh-completion"
20
21 RDEPEND="gtk? ( dev-python/pygtk:2 )
22 bash-completion? ( >=app-shells/bash-4 )
23 zsh-completion? ( app-shells/zsh app-shells/zsh-completion )"
24 DEPEND="test? ( dev-lang/python )"
25
26 src_prepare() {
27 #https://github.com/joelthelion/autojump/issues/129
28 sed -e '/def test_db_load_migrate/,/autojump.CONFIG_DIR = ORIG_CONFIG_DIR/d' \
29 -i tests/runtests.py || die
30 }
31
32 src_test() {
33 #https://github.com/joelthelion/autojump/issues/130
34 mkdir -p "${HOME}"/.local/share/autojump || die
35
36 "$(PYTHON)" ./tests/runtests.py
37 }
38
39 src_compile() { :; }
40
41 src_install() {
42 dobin bin/autojump
43
44 if use gtk ; then
45 dobin bin/jumpapplet
46 insinto /usr/share/${PN}
47 doins bin/icon.png
48 fi
49
50 insinto /etc/profile.d
51 doins bin/${PN}.sh
52
53 if use bash-completion ; then
54 doins bin/${PN}.bash
55 fi
56
57 if use zsh-completion ; then
58 doins bin/${PN}.zsh
59 insinto /usr/share/zsh/site-functions
60 doins bin/_j
61 fi
62
63 if use python ; then
64 install_python() {
65 insinto "$(python_get_sitedir)"
66 doins tools/autojump_ipython.py
67 }
68 python_execute_function -q install_python
69
70 einfo "This tool provides \"j\" for ipython, please add"
71 einfo "\"imporrt autojump_ipython\" to your ipy_user_conf.py."
72 fi
73
74 doman docs/${PN}.1
75 dodoc README.md
76 }

  ViewVC Help
Powered by ViewVC 1.1.20