commit: d788c2bdb3d8751b4d5930b1190d5e261219302b
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 4 00:59:29 2023 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Feb 4 01:05:11 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d788c2bd
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 <AT> gentoo.org>
x11-terms/kitty/kitty-0.27.0.ebuild | 16 ++++++++++++++--
1 file 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() {