app-vim/python-mode: Bump to 0.13.0_p20210508 (and fix deps)

Explicitly depend on vim[python] or the neovim python bindings (pynvim).

Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Nils Freydank <holgersson@posteo.de>
This commit is contained in:
Nils Freydank 2021-05-30 16:21:07 +02:00
parent 0a763d99ac
commit ab9c846fb7
No known key found for this signature in database
GPG Key ID: BC5DC2998AAD2B21
2 changed files with 64 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST python-mode-0.13.0.tar.gz 86719 BLAKE2B 204ae1146c88940e59f5bf0840001a324eaa135dff7cc6e854c63bc1e4929aa8f32f20a90476e0a82282690d61751d8a042c229309fd6eb2173e0371267e3a6e SHA512 96c39bdaec9c7f6bcdad09fc4fd5956803d71bddea348f1d2b88cdf03af9f57c79f91cea1aa15577fcc1b7ec79b6c2c038b08d9c99acc4a369c19102c2f7991a
DIST python-mode-0.13.0_p20210508.tar.gz 86891 BLAKE2B 03766863f7af5dd7658fa88315aee98456cc5ad0258015fe0ca26c4c5cd14a9cd4c74d11e3a86695c33085e312bc1c8ea5da477628238ff3eb67c29cfce89390 SHA512 b7a7f8126c8997c42ebddce0beed3212c7807a1a38733e3aa530f3bfb2b7541fb7f4b0a2118788de5bc1e5e291b5f2dc3967667a646731949fb8693d420a7e77

View File

@ -0,0 +1,63 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{8..9} )
inherit python-r1 vim-plugin
COMMIT_ID="56a4b3621e2d4ce5f5f9f200b860cb9d681d8f8c"
DESCRIPTION="vim plugin: Turn vim into a python IDE"
HOMEPAGE="https://www.vim.org/scripts/script.php?script_id=3770 https://github.com/python-mode/python-mode"
LICENSE="LGPL-3"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
else
if [[ ${PV} == *_p* ]]; then
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${PN}-${COMMIT_ID}"
SRC_URI="https://github.com/python-mode/${PN}/archive/${COMMIT_ID}.tar.gz -> ${P}.tar.gz"
else
KEYWORDS="~amd64 ~x86"
SRC_URI="https://github.com/python-mode/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
fi
fi
VIM_PLUGIN_HELPFILES="PythonModeCommands"
VIM_PLUGIN_HELPTEXT=""
VIM_PLUGIN_HELPURI="https://github.com/python-mode/python-mode"
VIM_PLUGIN_MESSAGES="filetype"
RDEPEND="
${PYTHON_DEPS}
dev-python/astroid[${PYTHON_USEDEP}]
dev-python/autopep8[${PYTHON_USEDEP}]
dev-python/mccabe[${PYTHON_USEDEP}]
dev-python/pycodestyle[${PYTHON_USEDEP}]
dev-python/pydocstyle[${PYTHON_USEDEP}]
dev-python/pyflakes[${PYTHON_USEDEP}]
dev-python/pylama[${PYTHON_USEDEP}]
>=dev-python/pylint-2.2.2[${PYTHON_USEDEP}]
dev-python/rope[${PYTHON_USEDEP}]
dev-python/ropemode[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/snowballstemmer[${PYTHON_USEDEP}]
|| (
app-editors/vim[python,${PYTHON_USEDEP}]
(
app-editors/neovim
dev-python/pynvim[${PYTHON_USEDEP}]
)
)
"
src_install() {
vim-plugin_src_install
insinto usr/share/${PN}
}