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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Jan 9 09:06:26 2013 UTC (23 months, 1 week ago) by xmw
Branch: MAIN
Version bump

(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.2.1.ebuild,v 1.1 2013/01/09 08:55:21 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 python test zsh-completion"
20
21 RDEPEND="bash-completion? ( >=app-shells/bash-4 )
22 zsh-completion? ( app-shells/zsh app-shells/zsh-completion )"
23 DEPEND="test? ( dev-lang/python )"
24
25 src_prepare() {
26 #https://github.com/joelthelion/autojump/issues/129
27 sed -e '/def test_db_load_migrate/,/autojump.CONFIG_DIR = ORIG_CONFIG_DIR/d' \
28 -i tests/runtests.py || die
29 }
30
31 src_compile() {
32 true
33 }
34
35 src_install() {
36 dobin bin/autojump
37
38 insinto /etc/profile.d
39 doins bin/${PN}.sh
40
41 if use bash-completion ; then
42 doins bin/${PN}.bash
43 fi
44
45 if use zsh-completion ; then
46 doins bin/${PN}.zsh
47 insinto /usr/share/zsh/site-functions
48 doins bin/_j
49 fi
50
51 if use python ; then
52 install_python() {
53 insinto "$(python_get_sitedir)"
54 doins tools/autojump_ipython.py
55 }
56 python_execute_function -q install_python
57
58 einfo "This tool provides \"j\" for ipython, please add"
59 einfo "\"imporrt autojump_ipython\" to your ipy_user_conf.py."
60 fi
61
62 doman docs/${PN}.1
63 dodoc README.md
64 }

  ViewVC Help
Powered by ViewVC 1.1.20