diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2023-02-03 19:59:29 -0500 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2023-02-03 20:05:11 -0500 |
commit | d788c2bdb3d8751b4d5930b1190d5e261219302b (patch) | |
tree | 6830158a59c869fa9d18574a4f288e6a3ba29e9e /x11-terms | |
parent | x11-terms/kitty: generate example kitty.conf in live (diff) | |
download | gentoo-d788c2bdb3d8751b4d5930b1190d5e261219302b.tar.gz gentoo-d788c2bdb3d8751b4d5930b1190d5e261219302b.tar.bz2 gentoo-d788c2bdb3d8751b4d5930b1190d5e261219302b.zip |
x11-terms/kitty: generate kitty.conf in 0.27.0 too
Doesn't hurt and this version may stick around for a bit
given the lower Go requirement, albeit skipping revbump.
wrt tc-is-cross, definitely was needed -- python line
made me forget kitty itself is a binary using libpython
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/kitty/kitty-0.27.0.ebuild | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/x11-terms/kitty/kitty-0.27.0.ebuild b/x11-terms/kitty/kitty-0.27.0.ebuild index bd2de5c39fb5..0988880f927c 100644 --- a/x11-terms/kitty/kitty-0.27.0.ebuild +++ b/x11-terms/kitty/kitty-0.27.0.ebuild @@ -131,8 +131,20 @@ src_compile() { edo "${EPYTHON}" setup.py linux-package "${conf[@]}" use test && edo "${EPYTHON}" setup.py build-launcher "${conf[@]}" - [[ ${PV} == 9999 ]] || mv linux-package/share/doc/{${PN},${PF}} || die - rm -r linux-package/share/terminfo || die + rm -r linux-package/share/terminfo || die # provided by kitty-terminfo + + if [[ ${PV} == 9999 ]]; then + mkdir -p linux-package/share/doc/${PF} || die + else + mv linux-package/share/doc/{${PN},${PF}} || die + fi + + # generate default config as reference, command taken from docs/conf.rst + if ! tc-is-cross-compiler; then + linux-package/bin/kitty +runpy \ + 'from kitty.config import *; print(commented_out_default_config())' \ + > linux-package/share/doc/${PF}/kitty.conf || die + fi } src_test() { |