From e419e962046e8d82749427bd9882fb43c2952e97 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 22 Jul 2019 11:13:48 +0200 Subject: app-vim/vimoutliner: Add missing PYTHON_DEPS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- app-vim/vimoutliner/vimoutliner-0.3.6-r1.ebuild | 31 ++------------ app-vim/vimoutliner/vimoutliner-0.3.6-r2.ebuild | 49 ++++++++++++++++++++++ app-vim/vimoutliner/vimoutliner-0.3.6.ebuild | 23 ---------- .../vimoutliner-0.4.0_p20180301-r1.ebuild | 43 +++++++++++++++++++ .../vimoutliner/vimoutliner-0.4.0_p20180301.ebuild | 42 ------------------- 5 files changed, 95 insertions(+), 93 deletions(-) create mode 100644 app-vim/vimoutliner/vimoutliner-0.3.6-r2.ebuild delete mode 100644 app-vim/vimoutliner/vimoutliner-0.3.6.ebuild create mode 100644 app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r1.ebuild delete mode 100644 app-vim/vimoutliner/vimoutliner-0.4.0_p20180301.ebuild (limited to 'app-vim') diff --git a/app-vim/vimoutliner/vimoutliner-0.3.6-r1.ebuild b/app-vim/vimoutliner/vimoutliner-0.3.6-r1.ebuild index d7c15479021b..36ebfb95a0a7 100644 --- a/app-vim/vimoutliner/vimoutliner-0.3.6-r1.ebuild +++ b/app-vim/vimoutliner/vimoutliner-0.3.6-r1.ebuild @@ -1,31 +1,19 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 -PYTHON_COMPAT=( python{2_7,3_5,3_6} ) - -inherit vim-plugin python-single-r1 +inherit vim-plugin DESCRIPTION="vim plugin: easy and fast outlining" HOMEPAGE="https://github.com/vimoutliner/vimoutliner" SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.zip -> ${P}.zip" LICENSE="GPL-2" -KEYWORDS="~amd64 ~x86" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" +KEYWORDS="alpha amd64 ia64 ~mips ppc sparc x86" VIM_PLUGIN_HELPFILES="vimoutliner" VIM_PLUGIN_MESSAGES="filetype" -PATCHES=( "${FILESDIR}/${P}-fix-shebangs.patch" ) - -RDEPEND="dev-python/autopep8" - -pkg_setup() { - python-single-r1_pkg_setup -} - src_prepare() { default sed -i -e '/^if exists/,/endif/d' ftdetect/vo_base.vim || die @@ -33,16 +21,3 @@ src_prepare() { rm -v install.sh || 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}") - einfo "Processing ${_pyscript}" - sed -i -e 's#[ \t]*$##g;' "${pyscript}" || die - 2to3 --no-diffs -w -n "${pyscript}" 2> /dev/null || die - autopep8 -i "${pyscript}" || die - python_fix_shebang -q "${pyscript}" || die - eend $? - done -} diff --git a/app-vim/vimoutliner/vimoutliner-0.3.6-r2.ebuild b/app-vim/vimoutliner/vimoutliner-0.3.6-r2.ebuild new file mode 100644 index 000000000000..b9d58e98e883 --- /dev/null +++ b/app-vim/vimoutliner/vimoutliner-0.3.6-r2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_5,3_6} ) + +inherit vim-plugin python-single-r1 + +DESCRIPTION="vim plugin: easy and fast outlining" +HOMEPAGE="https://github.com/vimoutliner/vimoutliner" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.zip -> ${P}.zip" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +VIM_PLUGIN_HELPFILES="vimoutliner" +VIM_PLUGIN_MESSAGES="filetype" + +PATCHES=( "${FILESDIR}/${P}-fix-shebangs.patch" ) + +RDEPEND="${PYTHON_DEPS} + dev-python/autopep8[${PYTHON_USEDEP}]" + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_prepare() { + default + sed -i -e '/^if exists/,/endif/d' ftdetect/vo_base.vim || die + sed -i -e 's/g:vo_modules2load/g:vo_modules_load/' vimoutliner/vimoutlinerrc || die + rm -v install.sh || 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}") + einfo "Processing ${_pyscript}" + sed -i -e 's#[ \t]*$##g;' "${pyscript}" || die + 2to3 --no-diffs -w -n "${pyscript}" 2> /dev/null || die + autopep8 -i "${pyscript}" || die + python_fix_shebang -q "${pyscript}" || die + eend $? + done +} diff --git a/app-vim/vimoutliner/vimoutliner-0.3.6.ebuild b/app-vim/vimoutliner/vimoutliner-0.3.6.ebuild deleted file mode 100644 index 36ebfb95a0a7..000000000000 --- a/app-vim/vimoutliner/vimoutliner-0.3.6.ebuild +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit vim-plugin - -DESCRIPTION="vim plugin: easy and fast outlining" -HOMEPAGE="https://github.com/vimoutliner/vimoutliner" -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.zip -> ${P}.zip" -LICENSE="GPL-2" -KEYWORDS="alpha amd64 ia64 ~mips ppc sparc x86" - -VIM_PLUGIN_HELPFILES="vimoutliner" -VIM_PLUGIN_MESSAGES="filetype" - -src_prepare() { - default - sed -i -e '/^if exists/,/endif/d' ftdetect/vo_base.vim || die - sed -i -e 's/g:vo_modules2load/g:vo_modules_load/' vimoutliner/vimoutlinerrc || die - rm -v install.sh || die - find "${S}" -type f -exec chmod a+r {} \; || die -} diff --git a/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r1.ebuild b/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r1.ebuild new file mode 100644 index 000000000000..91f8bce967ca --- /dev/null +++ b/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2019 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} + dev-python/autopep8[${PYTHON_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 +} diff --git a/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301.ebuild b/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301.ebuild deleted file mode 100644 index 693542279762..000000000000 --- a/app-vim/vimoutliner/vimoutliner-0.4.0_p20180301.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# 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="dev-python/autopep8" -DEPEND="${RDEPEND}" - -src_prepare() { - default - - sed -i -e '1s:^:#!/usr/bin/python\n:' vimoutliner/scripts/otl2latex/otl2latex.py - 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 -} -- cgit v1.2.3-65-gdbad