summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsteve Varela Colominas <esteve.varela@gmail.com>2022-12-07 17:35:20 +0100
committerFlorian Schmaus <flow@gentoo.org>2022-12-28 10:37:11 +0100
commit09fb13f9c1194b00da90b0673b892b178e023451 (patch)
tree00cdb77f95cc3ad24c0c03493e450c1c27e3c749 /app-doc/cppman
parentapp-doc/cppman: Pick up maintainance (diff)
downloadgentoo-09fb13f9c1194b00da90b0673b892b178e023451.tar.gz
gentoo-09fb13f9c1194b00da90b0673b892b178e023451.tar.bz2
gentoo-09fb13f9c1194b00da90b0673b892b178e023451.zip
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@gmail.com> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'app-doc/cppman')
-rw-r--r--app-doc/cppman/cppman-0.5.4-r1.ebuild (renamed from app-doc/cppman/cppman-0.5.4.ebuild)25
1 files 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
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
}