summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-02-07 13:18:10 +0100
committerMichał Górny <mgorny@gentoo.org>2020-02-09 17:17:36 +0100
commitb4b479e4effc6a93fcea8a98ae6f03fa99f7be49 (patch)
tree9efd00f8b3961809b2504f8df78c7b45dc5c08da /app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild
parentapp-vim/vimcalc: Switch to PYTHON_SINGLE_USEDEP (diff)
downloadgentoo-b4b479e4effc6a93fcea8a98ae6f03fa99f7be49.tar.gz
gentoo-b4b479e4effc6a93fcea8a98ae6f03fa99f7be49.tar.bz2
gentoo-b4b479e4effc6a93fcea8a98ae6f03fa99f7be49.zip
app-vim/vimoutliner: Switch to PYTHON_MULTI_USEDEP API
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild')
-rw-r--r--app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild b/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild
new file mode 100644
index 000000000000..c6da5e2e298a
--- /dev/null
+++ b/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r2.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1 vim-plugin vcs-snapshot
+
+# Commit Date: 1 Mar 2018
+COMMIT="4f12628247940d98eedd594961695dc504261058"
+
+DESCRIPTION="Vim plugin for easy and fast outlining"
+HOMEPAGE="https://github.com/vimoutliner/vimoutliner"
+SRC_URI="https://github.com/vimoutliner/vimoutliner/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+KEYWORDS="~amd64 ~x86"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+VIM_PLUGIN_HELPFILES="vimoutliner"
+VIM_PLUGIN_MESSAGES="filetype"
+
+RDEPEND="${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/autopep8[${PYTHON_MULTI_USEDEP}]
+ ')"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+
+ sed -i -e '1s:^:#!/usr/bin/python\n:' vimoutliner/scripts/otl2latex/otl2latex.py || die
+ find "${S}" -type f -exec chmod a+r {} \; || die
+}
+
+src_compile() {
+ local pyscript _pyscript
+ for pyscript in $(find "${S}" -type f -name \*.py); do
+ _pyscript=$(basename "${pyscript}")
+ [ ${_pyscript} == "otl.py" ] && continue
+ python_fix_shebang -q "${pyscript}"
+ done
+}