From b6e10a41d04089488ed729b82a9fd2a98066c428 Mon Sep 17 00:00:00 2001 From: Jernej Jakob Date: Sun, 5 Jul 2026 15:58:31 +0200 Subject: [PATCH] app-crypt/pynitrokey: fix generation of shell completion scripts Signed-off-by: Jernej Jakob --- app-crypt/pynitrokey/pynitrokey-0.12.3.ebuild | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app-crypt/pynitrokey/pynitrokey-0.12.3.ebuild b/app-crypt/pynitrokey/pynitrokey-0.12.3.ebuild index d9de35b202..1134dc23de 100644 --- a/app-crypt/pynitrokey/pynitrokey-0.12.3.ebuild +++ b/app-crypt/pynitrokey/pynitrokey-0.12.3.ebuild @@ -42,15 +42,19 @@ RDEPEND=" # it would be bad if the user was not expecting this. RESTRICT="test" -src_install(){ - distutils-r1_src_install - +python_compile_all(){ + # https://github.com/Nitrokey/pynitrokey/blob/master/docs/packaging.md _NITROPY_COMPLETE=bash_source nitropy > nitropy.bash || die - newbashcomp nitropy.bash nitropy - _NITROPY_COMPLETE=zsh_source nitropy > _nitropy || die - dozshcomp _nitropy + _NITROPY_COMPLETE=zsh_source nitropy > nitropy.zsh || die _NITROPY_COMPLETE=fish_source nitropy > nitropy.fish || die +} + +python_install_all(){ + newbashcomp nitropy.bash nitropy + newzshcomp nitropy.zsh _nitropy dofishcomp nitropy.fish + + distutils-r1_python_install_all } pkg_postinst(){