1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit python-single-r1 vim-plugin vcs-snapshot
10 # Commit Date: 1 Mar 2018
11 COMMIT="4f12628247940d98eedd594961695dc504261058"
13 DESCRIPTION="Vim plugin for easy and fast outlining"
14 HOMEPAGE="https://github.com/vimoutliner/vimoutliner"
15 SRC_URI="https://github.com/vimoutliner/vimoutliner/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
18 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
20 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
22 VIM_PLUGIN_HELPFILES="vimoutliner"
23 VIM_PLUGIN_MESSAGES="filetype"
25 RDEPEND="${PYTHON_DEPS}
26 $(python_gen_cond_dep '
27 dev-python/autopep8[${PYTHON_MULTI_USEDEP}]
34 sed -i -e '1s:^:#!/usr/bin/python\n:' vimoutliner/scripts/otl2latex/otl2latex.py || die
35 find "${S}" -type f -exec chmod a+r {} \; || die
39 local pyscript _pyscript
40 for pyscript in $(find "${S}" -type f -name \*.py); do
41 _pyscript=$(basename "${pyscript}")
42 [ ${_pyscript} == "otl.py" ] && continue
43 python_fix_shebang -q "${pyscript}"