mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-21 14:38:43 +02:00
See bug #960075 for details, but (as far as I can tell) remotely the auto-loaded scripts (e.g. bashrc.d) is all that should be needed from the shell-integration directory, the rest can be kept in the main kitty package. Unfortunately no such location for zsh, but still install the scripts somewhere in case users need it but do not want to install kitty. Users can opt to resort to `kitten ssh` instead though. This also drops completions which did not make much sense if kitty is not also installed, besides these were incomplete and it'll be handled hopeufully properly in the kitty package instead. Bug: https://bugs.gentoo.org/960075 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
39 lines
1.3 KiB
Bash
39 lines
1.3 KiB
Bash
# Copyright 2022-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
if [[ ${PV} == 9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
|
|
else
|
|
SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/kitty-${PV}.tar.xz"
|
|
S=${WORKDIR}/kitty-${PV}
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
|
fi
|
|
|
|
DESCRIPTION="Shell integration scripts for kitty, a GPU-based terminal emulator"
|
|
HOMEPAGE="https://sw.kovidgoyal.net/kitty/"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
RESTRICT="test" # intended to be ran on the full kitty package
|
|
|
|
src_compile() { :; }
|
|
|
|
src_install() {
|
|
# split from the kitty package to allow installing individually on
|
|
# remote machines and have shell integration scripts be auto-loaded
|
|
insinto /etc/bash/bashrc.d
|
|
newins shell-integration/bash/kitty.bash 90-kitty.bash
|
|
|
|
insinto /usr/share/fish
|
|
doins -r shell-integration/fish/vendor_conf.d
|
|
|
|
# unfortunately zsh currently lacks a bashrc.d equivalent, copy
|
|
# to docdir for now so users can use it manually if needed (also at
|
|
# /usr/lib*/kitty/shell-integration/zsh if kitty is installed)
|
|
docinto zsh
|
|
docompress -x /usr/share/doc/${PF}/zsh
|
|
dodoc shell-integration/zsh/{.zshenv,kitty-integration,kitty.zsh}
|
|
}
|