diff options
Diffstat (limited to 'app-vim')
-rw-r--r-- | app-vim/Manifest.gz | bin | 31579 -> 31578 bytes | |||
-rw-r--r-- | app-vim/jedi/Manifest | 2 | ||||
-rw-r--r-- | app-vim/jedi/jedi-0.11.2.ebuild | 80 |
3 files changed, 82 insertions, 0 deletions
diff --git a/app-vim/Manifest.gz b/app-vim/Manifest.gz Binary files differindex d5399514aea3..b7a387ccc31d 100644 --- a/app-vim/Manifest.gz +++ b/app-vim/Manifest.gz diff --git a/app-vim/jedi/Manifest b/app-vim/jedi/Manifest index 5284d3b5fe9c..b32c94c707ea 100644 --- a/app-vim/jedi/Manifest +++ b/app-vim/jedi/Manifest @@ -1,3 +1,5 @@ DIST jedi-0.11.0.tar.gz 41606 BLAKE2B 146f60f43a3fc764c66e2ca94c2b4051be3e25b5a94ca3f6d82533b624433946013c7df38e61262e6ac40a00de9d3b9b0e647e794191b6deb8ed09124d2accc7 SHA512 a151fdf4d58adc36dbe9ede8e091ae00c8bd8237b66c512b4addfb6e7e436651848da2b3a0dbcbbef615bcc394e7e28a6e127e53f2205dc61f4d46a2ff0faa12 +DIST jedi-vim-0.11.2.tar.gz 42704 BLAKE2B 375cdf4742eb6328f5dc601b7a0b529a3d18b70711f93ab860e2827275f36454281c9d4ec85de0cfe280115fadde3a45f1bf74bfb4a4f1036b603eaa6051bf56 SHA512 b5711a963bcd61e03af0ad9936de37bf0391fcf1edd5b881b45612469e573cfc91bd012e7f12c5a9c8e51242dd26381bfa08bbc7853fbfd4a30897eeefbadb7c EBUILD jedi-0.11.0.ebuild 2045 BLAKE2B a63c81a0b81f129480057ecf99a566df6181bcef4fc4d5b787498db9152dde38fb22e660b45300c7614e6fff4129cd9a8769318093fbc6974262073104b5f8c5 SHA512 f09801ee0093d88e5eaa50e1f0b99030ef6b3c5e50e617414a51ea4f5bfe358662d76ebeec84a3777e1b2a8923aa458b958ca5709336f3e42be0415839637f9e +EBUILD jedi-0.11.2.ebuild 2056 BLAKE2B 19bc957819a42c0e3a2b0fe0fb94dc0e423553f02d323749351dd5e3c764a5833af3fa12bdc693c2ab81f666d08ed7cf2faf515b7dfb1ef88c22913ca228e905 SHA512 90b1fed36dd6abe6db17456bdaadc700576dd5467f1f2cdda37f504416bd7805ed970b55a648a28d93f175dde4e3103fee35262cb703be9b011c2c2d28ee9460 MISC metadata.xml 510 BLAKE2B b9370a0dc09e9e6f6c2df57d63326dd91e2431204e8d6e988908043ea07e29bfc62ab966f3e2179036124e6ab26a6773355be0227236d80528114cdd8b479202 SHA512 5f45136d169d68157c02b7050e79b00f963d6f54842dfe4cfd14a6e0fca50c47f24fbe95206215be653fbc0dda6c67f5667f456550bdf95e11bad66fc67ecce1 diff --git a/app-vim/jedi/jedi-0.11.2.ebuild b/app-vim/jedi/jedi-0.11.2.ebuild new file mode 100644 index 000000000000..521b71e674d7 --- /dev/null +++ b/app-vim/jedi/jedi-0.11.2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit edo vim-plugin python-single-r1 + +MY_PN="${PN}-vim" +DESCRIPTION="vim plugin: binding to the autocompletion library jedi" +HOMEPAGE="https://github.com/davidhalter/jedi-vim" +SRC_URI="https://github.com/davidhalter/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="MIT" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + $(python_gen_cond_dep '>=dev-python/jedi-0.19[${PYTHON_USEDEP}]') + || ( + app-editors/vim[python,${PYTHON_SINGLE_USEDEP}] + app-editors/gvim[python,${PYTHON_SINGLE_USEDEP}] + ) +" +BDEPEND=" + test? ( + ${RDEPEND} + app-vim/vspec + ) +" + +DOCS=( AUTHORS.txt CONTRIBUTING.md README.rst ) + +src_prepare() { + vim-plugin_src_prepare + + rm doc/logotype-a.svg || die + rmdir pythonx/{jedi,parso} || die + + # Disable failing tests + sed -i test/vspec/signatures.vim \ + -e "/it 'highlights correct argument'/a SKIP 'fail'" || die +} + +# Makefile tries hard to call tests so let's silence this phase. +src_compile() { :; } + +src_test() { + local bindir="${S}"/venv/bin + local sitedir="${S}"/venv/lib/${EPYTHON}/site-packages + + mkdir -p "${bindir}" || die + mkdir -p "${sitedir}" || die + ln -s "${PYTHON}" "${bindir}/${EPYTHON}" || die + ln -s "${EPYTHON}" "${bindir}/python3" || die + ln -s "${EPYTHON}" "${bindir}/python" || die + cat > "${bindir}"/pyvenv.cfg <<-EOF || die + include-system-site-packages = false + EOF + + ln -s "$(python_get_sitedir)"/parso "${sitedir}"/parso || die + cp -r "$(python_get_sitedir)"/parso-*.dist-info "${sitedir}" || die + + ln -s "$(python_get_sitedir)"/jedi "${sitedir}"/jedi || die + cp -r "$(python_get_sitedir)"/jedi-*.dist-info "${sitedir}" || die + + export PATH="${bindir}:${PATH}" + unset PYTHONPATH + + edo prove-vspec -d "${S}" test/vspec +} + +src_install() { + vim-plugin_src_install pythonx + python_optimize "${ED}"/usr/share/vim/vimfiles/pythonx +} |