commit: 09fb13f9c1194b00da90b0673b892b178e023451 Author: Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com> AuthorDate: Wed Dec 7 16:35:20 2022 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Wed Dec 28 09:37:11 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09fb13f9
app-doc/cppman: Fix zsh completions Closes: https://bugs.gentoo.org/881689 Closes: https://bugs.gentoo.org/881691 Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com> Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> ...{cppman-0.5.4.ebuild => cppman-0.5.4-r1.ebuild} | 25 ++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/app-doc/cppman/cppman-0.5.4.ebuild b/app-doc/cppman/cppman-0.5.4-r1.ebuild similarity index 55% rename from app-doc/cppman/cppman-0.5.4.ebuild rename to app-doc/cppman/cppman-0.5.4-r1.ebuild index 715dd3be3185..5bb20190b399 100644 --- a/app-doc/cppman/cppman-0.5.4.ebuild +++ b/app-doc/cppman/cppman-0.5.4-r1.ebuild @@ -5,9 +5,9 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..11} ) PYTHON_REQ_USE="sqlite,threads(+)" -DISTUTILS_SINGLE_IMPL=true -DISTUTILS_USE_SETUPTOOLS=no -inherit distutils-r1 +DISTUTILS_SINGLE_IMPL=yes +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 bash-completion-r1 DESCRIPTION="C++ man pages for Linux, with source from cplusplus.com and cppreference.com" HOMEPAGE="https://github.com/aitjcize/cppman" @@ -26,8 +26,21 @@ RDEPEND=" " src_prepare() { - default + # Install data manually, nearly all of it is misplaced + sed -i '/data_files = _data_files,/d' setup.py || die - # Don't allow setup.py to install documentation directly - sed -i '\:share/doc/cppman:d' setup.py || die "sed failed" + distutils-r1_src_prepare +} + +src_install() { + distutils-r1_src_install + doman misc/cppman.1 + + newbashcomp misc/completions/cppman.bash cppman + + insinto /usr/share/zsh/site-functions + doins misc/completions/zsh/_cppman + + insinto /usr/share/fish/vendor_completions.d + doins misc/completions/fish/cppman.fish }