From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8F56115800F for ; Sat, 4 Feb 2023 01:06:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AB357E07B3; Sat, 4 Feb 2023 01:06:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 43376E07B3 for ; Sat, 4 Feb 2023 01:06:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 182B5335D74 for ; Sat, 4 Feb 2023 01:06:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4DFBD897 for ; Sat, 4 Feb 2023 01:06:33 +0000 (UTC) From: "Ionen Wolkens" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ionen Wolkens" Message-ID: <1675472711.d788c2bdb3d8751b4d5930b1190d5e261219302b.ionen@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-terms/kitty/kitty-0.27.0.ebuild X-VCS-Directories: x11-terms/kitty/ X-VCS-Committer: ionen X-VCS-Committer-Name: Ionen Wolkens X-VCS-Revision: d788c2bdb3d8751b4d5930b1190d5e261219302b X-VCS-Branch: master Date: Sat, 4 Feb 2023 01:06:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5242272b-343e-4c24-a9c5-5f8334f9194e X-Archives-Hash: 9ac9fdedfba566f90421d8975c91a712 commit: d788c2bdb3d8751b4d5930b1190d5e261219302b Author: Ionen Wolkens gentoo org> AuthorDate: Sat Feb 4 00:59:29 2023 +0000 Commit: Ionen Wolkens gentoo 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 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() {