summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-10-05 20:18:05 -0400
committerZac Medico <zmedico@gentoo.org>2023-10-17 21:26:05 -0700
commite5eb7ece10e4f33512525f7935c225553a2a559c (patch)
tree947698dd579dfaa7884a06953abcfa4af2dc9902 /app-text
parentapp-text/calibre: move text-to-speech dependency to dedicated USE flag (diff)
downloadgentoo-e5eb7ece10e4f33512525f7935c225553a2a559c.tar.gz
gentoo-e5eb7ece10e4f33512525f7935c225553a2a559c.tar.bz2
gentoo-e5eb7ece10e4f33512525f7935c225553a2a559c.zip
app-text/calibre: install zsh completions
Since there is no real standard and no real detection method for zsh completions (and Debian tunes this to be something that doesn't work anywhere else) the build system probes for the common locations. Also, this probe is carried out against staging-root, not /, which means that it will NEVER work. Not even if you have zsh installed. Unless you create the directory in advance in the staging-root, which you have to do anyways because otherwise you would need zsh as a BDEPEND which is silly. ;) Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/calibre/calibre-5.44.0-r2.ebuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/app-text/calibre/calibre-5.44.0-r2.ebuild b/app-text/calibre/calibre-5.44.0-r2.ebuild
index 74b91f0af828..8b10da02930c 100644
--- a/app-text/calibre/calibre-5.44.0-r2.ebuild
+++ b/app-text/calibre/calibre-5.44.0-r2.ebuild
@@ -228,6 +228,9 @@ src_install() {
addpredict /dev/dri #665310
+ # If this directory doesn't exist, zsh completion won't install
+ dodir /usr/share/zsh/site-functions
+
"${PYTHON}" setup.py install \
--staging-root="${ED}/usr" \
--prefix="${EPREFIX}/usr" \