Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty/
Date: Tue, 31 Jan 2023 13:46:30
Message-Id: 1675172686.b342ef89ebd510fffd2e91c7b7b288e53f7f06da.ionen@gentoo
1 commit: b342ef89ebd510fffd2e91c7b7b288e53f7f06da
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 31 13:42:10 2023 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 31 13:44:46 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b342ef89
7
8 x11-terms/kitty: sync live
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 x11-terms/kitty/kitty-9999.ebuild | 22 ++++++++++++++--------
13 1 file changed, 14 insertions(+), 8 deletions(-)
14
15 diff --git a/x11-terms/kitty/kitty-9999.ebuild b/x11-terms/kitty/kitty-9999.ebuild
16 index 90f8d00348ee..9d20478938f2 100644
17 --- a/x11-terms/kitty/kitty-9999.ebuild
18 +++ b/x11-terms/kitty/kitty-9999.ebuild
19 @@ -13,6 +13,7 @@ else
20 inherit verify-sig
21 SRC_URI="
22 https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz
23 + https://dev.gentoo.org/~ionen/distfiles/${P}-vendor.tar.xz
24 verify-sig? ( https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz.sig )"
25 VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/kovidgoyal.gpg"
26 KEYWORDS="~amd64 ~ppc64 ~riscv ~x86"
27 @@ -76,14 +77,16 @@ src_unpack() {
28 cd "${S}" || die
29 edo go mod vendor
30 else
31 - verify-sig_src_unpack
32 + use verify-sig &&
33 + verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.sig}
34 + default
35 fi
36 }
37
38 src_prepare() {
39 default
40
41 - # sed unfortunately feels easier on maintainenance than patches here
42 + # sed unfortunately feels easier on maintenance than patches here
43 local sedargs=(
44 -e "/num_workers =/s/=.*/= $(makeopts_jobs)/"
45 -e "s/cflags.append.*-O3.*/pass/" -e 's/-O3//'
46 @@ -100,11 +103,15 @@ src_prepare() {
47
48 sed -i setup.py "${sedargs[@]}" || die
49
50 - # test relies on 'who' command which doesn't detect users with pid-sandbox
51 - rm kitty_tests/utmp.py || die
52 -
53 - # test may fail/hang depending on environment and shell initialization scripts
54 - rm kitty_tests/{shell_integration,ssh}.py || die
55 + local skiptests=(
56 + # relies on 'who' command which doesn't detect users with pid-sandbox
57 + kitty_tests/utmp.py
58 + # may fail/hang depending on environment and shell initialization
59 + kitty_tests/{shell_integration,ssh}.py
60 + # relies on /proc/self/fd and gets confused when ran from here
61 + tools/utils/tpmfile_test.go
62 + )
63 + use !test || rm "${skiptests[@]}" || die
64 }
65
66 src_compile() {
67 @@ -144,7 +151,6 @@ src_install() {
68 pkg_postinst() {
69 xdg_pkg_postinst
70
71 - optfeature "in-terminal image display with kitty icat" media-gfx/imagemagick
72 optfeature "audio-based terminal bell support" media-libs/libcanberra
73 optfeature "opening links from the terminal" x11-misc/xdg-utils
74 }