blob: 5e6174ae77d51711279b0f62ddf42c6fa03546a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3
DESCRIPTION="Shell integration scripts for kitty, a GPU-based terminal emulator"
HOMEPAGE="https://sw.kovidgoyal.net/kitty/"
EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
LICENSE="GPL-3"
SLOT="0"
RESTRICT="test" # intended to be ran on the full kitty package
src_compile() { :; }
src_install() {
# install the whole directory in the upstream suggested location
# for consistency (i.e. less variation between distros if someone
# ssh into Gentoo), then set symlinks to autoload where possible
# (these exit immediately if KITTY_SHELL_INTEGRATION is unset)
insinto /usr/share/kitty
doins -r shell-integration
dosym -r {/usr/share/kitty/shell-integration/bash/,/etc/bash/bashrc.d/90-}kitty.bash
dosym -r /usr/share/{kitty/shell-integration/fish,fish}/vendor_completions.d/kitty.fish
dosym -r /usr/share/{kitty/shell-integration/fish,fish}/vendor_conf.d/kitty-shell-integration.fish
dosym -r /usr/share/{kitty/shell-integration/zsh/completions,zsh/site-functions}/_kitty
# zsh integration is handled automatically without needing to modify rc files,
# but may require user intervention depending on zsh invocation or if remote
# this is used internally by the ssh kitten and is not useful there
rm -r "${ED}"/usr/share/kitty/shell-integration/ssh || die
}
|