You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
12 years ago
|
|
||
11 years ago
|
EAPI=5
|
||
12 years ago
|
|
||
9 years ago
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
||
12 years ago
|
|
||
9 years ago
|
inherit bash-completion-r1 python-r1 vcs-snapshot
|
||
12 years ago
|
|
||
|
DESCRIPTION="change directory command that learns"
|
||
9 years ago
|
HOMEPAGE="https://github.com/joelthelion/autojump"
|
||
12 years ago
|
SRC_URI="https://github.com/joelthelion/${PN}/archive/release-v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
9 years ago
|
KEYWORDS="~amd64 ~x86 ~ppc ~ppc64"
|
||
9 years ago
|
IUSE="python test"
|
||
12 years ago
|
|
||
9 years ago
|
# Not all tests pass. Need investigation.
|
||
|
RESTRICT="test"
|
||
9 years ago
|
RDEPEND="python? ( ${PYTHON_DEPS} )"
|
||
|
DEPEND="test? ( dev-python/flake8 dev-python/tox )"
|
||
12 years ago
|
|
||
|
src_prepare() {
|
||
11 years ago
|
sed -e "s: \(/etc/profile.d\): \"${EPREFIX}\1\":" \
|
||
9 years ago
|
-e "s:/usr/local/share:/usr/share:" \
|
||
11 years ago
|
-i bin/autojump.sh || die
|
||
12 years ago
|
}
|
||
|
|
||
|
src_compile() {
|
||
9 years ago
|
:
|
||
12 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin bin/autojump
|
||
|
|
||
|
insinto /etc/profile.d
|
||
9 years ago
|
doins bin/"${PN}".sh
|
||
12 years ago
|
|
||
9 years ago
|
insinto /usr/share/"${PN}"/
|
||
9 years ago
|
doins bin/"${PN}.bash"
|
||
9 years ago
|
doins bin/"${PN}.zsh"
|
||
|
insinto /usr/share/zsh/site-functions
|
||
|
doins bin/_j
|
||
12 years ago
|
|
||
9 years ago
|
python_foreach_impl python_domodule bin/autojump_argparse.py bin/autojump_data.py bin/autojump_utils.py
|
||
|
if use python; then
|
||
11 years ago
|
python_foreach_impl python_domodule tools/autojump_ipython.py
|
||
9 years ago
|
einfo 'This tool provides "j" for ipython, please add'
|
||
|
einfo '"import autojump_ipython" to your ipy_user_conf.py.'
|
||
12 years ago
|
fi
|
||
|
|
||
9 years ago
|
doman docs/"${PN}.1"
|
||
12 years ago
|
dodoc README.md
|
||
|
}
|