app-vim/jedi: Import package from tree, bump, remove test/ dir

Bug: https://bugs.gentoo.org/808591
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Nils Freydank <holgersson@posteo.de>
This commit is contained in:
Nils Freydank 2021-12-02 21:27:15 +01:00
parent 39854066d3
commit 0510aed4b4
Signed by: nfr
GPG Key ID: 0F1DEAB2D36AD112
3 changed files with 61 additions and 0 deletions

1
app-vim/jedi/Manifest Normal file
View File

@ -0,0 +1 @@
DIST jedi-0.11.0.tar.gz 41606 BLAKE2B 146f60f43a3fc764c66e2ca94c2b4051be3e25b5a94ca3f6d82533b624433946013c7df38e61262e6ac40a00de9d3b9b0e647e794191b6deb8ed09124d2accc7 SHA512 a151fdf4d58adc36dbe9ede8e091ae00c8bd8237b66c512b4addfb6e7e436651848da2b3a0dbcbbef615bcc394e7e28a6e127e53f2205dc61f4d46a2ff0faa12

View File

@ -0,0 +1,45 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{9..10} )
inherit vim-plugin python-single-r1
DESCRIPTION="vim plugin: binding to the autocompletion library jedi"
HOMEPAGE="https://github.com/davidhalter/jedi-vim"
SRC_URI="https://github.com/davidhalter/jedi-vim/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
$(python_gen_cond_dep 'dev-python/jedi[${PYTHON_USEDEP}]')
app-editors/vim[python]"
BDEPEND="${PYTHON_DEPS}
test? ( dev-python/pytest )"
S="${WORKDIR}/jedi-vim-${PV}"
# Tests are broken.
RESTRICT="test"
src_prepare(){
if ! use test; then
rm -r test || die
fi
default
}
# Makefile tries hard to call tests so let's silence this phase.
src_compile() { :; }
src_test() {
epytest
}

15
app-vim/jedi/metadata.xml Normal file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>holgersson@posteo.de</email>
<name>Nils Freydank</name>
</maintainer>
<longdescription lang="en">
Jedi-vim is a VIM binding to the autocompletion library Jedi.
Apart from that, jedi-vim provides a number of keybindings.
</longdescription>
<upstream>
<remote-id type="github">davidhalter/jedi-vim</remote-id>
</upstream>
</pkgmetadata>