1 |
commit: 26ee634bb6a50e6c58ef4ab53635fa7d986620d0 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 26 04:42:06 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 26 06:06:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26ee634b |
7 |
|
8 |
x11-terms/kitty: add 0.25.1 |
9 |
|
10 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
11 |
|
12 |
x11-terms/kitty/Manifest | 2 + |
13 |
x11-terms/kitty/kitty-0.25.1.ebuild | 134 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 136 insertions(+) |
15 |
|
16 |
diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest |
17 |
index af4e25042283..1234292c6114 100644 |
18 |
--- a/x11-terms/kitty/Manifest |
19 |
+++ b/x11-terms/kitty/Manifest |
20 |
@@ -1,2 +1,4 @@ |
21 |
DIST kitty-0.25.0.tar.xz 4640360 BLAKE2B 2f982ecb2d13c49a6971d4a863f2215f22ccae2cc50fd7b6c6b5c2facf781ac23ec627edcbec8ebaa538c5d67b0b62ad4cc05aedf90fd722d9d886c2f62d5b42 SHA512 fed8d66a9f7f2117f4b495305db0d56d8b85ef03bf7ef24a7dca31e63e16fc90e026aa8022237ad45678efb026f11fdd8aa377eb53917fd8ec885f2ccea721f8 |
22 |
DIST kitty-0.25.0.tar.xz.sig 566 BLAKE2B 94d082c4520d1a25c9ea104df94876e342cc84fcc049ebc0b6061fe71206e98c5b5f8aa841ed636988b33f72f122b2d84f39e10d319c1d56c9cbf37d1b6fc064 SHA512 827546ea38af4babf431031184203bd11853469f87826a6b86f45b0b7d087e7523eee935908ca5a5e4a7a87e01d75114ed348ff39a9a0f6329d372fac15841af |
23 |
+DIST kitty-0.25.1.tar.xz 4671008 BLAKE2B f5110c64e3659499351875dfb4ad9dba85724184cbb742d4b2fe63dcb604b5c8e8736c51ae126345736cbb90238ba3c9e3de099cd6ebfdd0e50b5dfb36c2d2b6 SHA512 6d9862f8411372e0cf692114d6e29eb92db3a2e324282a21ca35b2ca5229c9d87ab988e802e44d47e98b6e64ae7abc5ff0cc677c082eb287e14ee68cd1a4c31e |
24 |
+DIST kitty-0.25.1.tar.xz.sig 566 BLAKE2B 7fba36cd7c5d06274e21106e2f31ecb0c22362a2798eeebc3f8a8935609d4f8fe0a39b059ea13a4fe4fcb54b7632416508040244b6beaa1b525c9de926c72959 SHA512 d3b3b764191e44c9e1e1d46a4868915986f871338c414e7f135e99a158be08c68819e8823cf64c3c7414bec58f39146387c3372cea30568faabdcab05917fc26 |
25 |
|
26 |
diff --git a/x11-terms/kitty/kitty-0.25.1.ebuild b/x11-terms/kitty/kitty-0.25.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..531d4fb7df94 |
29 |
--- /dev/null |
30 |
+++ b/x11-terms/kitty/kitty-0.25.1.ebuild |
31 |
@@ -0,0 +1,134 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8..10} ) |
38 |
+inherit optfeature multiprocessing python-single-r1 toolchain-funcs xdg |
39 |
+ |
40 |
+if [[ ${PV} == 9999 ]] ; then |
41 |
+ inherit git-r3 |
42 |
+ EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git" |
43 |
+else |
44 |
+ inherit verify-sig |
45 |
+ SRC_URI=" |
46 |
+ https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz |
47 |
+ verify-sig? ( https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz.sig )" |
48 |
+ VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/kovidgoyal.gpg" |
49 |
+ KEYWORDS="~amd64 ~ppc64 ~x86" |
50 |
+fi |
51 |
+ |
52 |
+DESCRIPTION="Fast, feature-rich, GPU-based terminal" |
53 |
+HOMEPAGE="https://sw.kovidgoyal.net/kitty/" |
54 |
+ |
55 |
+LICENSE="GPL-3" |
56 |
+SLOT="0" |
57 |
+IUSE="+X debug test transfer wayland" |
58 |
+REQUIRED_USE=" |
59 |
+ || ( X wayland ) |
60 |
+ ${PYTHON_REQUIRED_USE}" |
61 |
+RESTRICT="!X? ( test ) !test? ( test ) !transfer? ( test ) !wayland? ( test )" |
62 |
+ |
63 |
+# dlopen: fontconfig,libglvnd |
64 |
+RDEPEND=" |
65 |
+ ${PYTHON_DEPS} |
66 |
+ media-libs/fontconfig |
67 |
+ media-libs/harfbuzz:= |
68 |
+ media-libs/lcms:2 |
69 |
+ media-libs/libglvnd[X?] |
70 |
+ media-libs/libpng:= |
71 |
+ sys-apps/dbus |
72 |
+ sys-libs/zlib:= |
73 |
+ x11-libs/libxkbcommon[X?] |
74 |
+ x11-misc/xkeyboard-config |
75 |
+ ~x11-terms/kitty-shell-integration-${PV} |
76 |
+ ~x11-terms/kitty-terminfo-${PV} |
77 |
+ X? ( x11-libs/libX11 ) |
78 |
+ transfer? ( net-libs/librsync:= ) |
79 |
+ wayland? ( dev-libs/wayland )" |
80 |
+DEPEND=" |
81 |
+ ${RDEPEND} |
82 |
+ X? ( |
83 |
+ x11-base/xorg-proto |
84 |
+ x11-libs/libXcursor |
85 |
+ x11-libs/libXi |
86 |
+ x11-libs/libXinerama |
87 |
+ x11-libs/libXrandr |
88 |
+ ) |
89 |
+ wayland? ( dev-libs/wayland-protocols )" |
90 |
+BDEPEND=" |
91 |
+ ${PYTHON_DEPS} |
92 |
+ sys-libs/ncurses |
93 |
+ virtual/pkgconfig |
94 |
+ test? ( $(python_gen_cond_dep 'dev-python/pillow[${PYTHON_USEDEP}]') ) |
95 |
+ wayland? ( dev-util/wayland-scanner )" |
96 |
+[[ ${PV} == 9999 ]] || BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-kovidgoyal )" |
97 |
+ |
98 |
+PATCHES=( |
99 |
+ "${FILESDIR}"/${PN}-0.23.1-flags.patch |
100 |
+) |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ default |
104 |
+ |
105 |
+ sed -e "s/'x11 wayland'/'$(usev X x11) $(usev wayland)'/" \ |
106 |
+ -e "/num_workers = /s/=.*/= $(makeopts_jobs)/" \ |
107 |
+ -i setup.py || die |
108 |
+ |
109 |
+ if use !transfer; then |
110 |
+ sed -i 's/rs_cflag =/& []#/;/files.*rsync/d' setup.py || die |
111 |
+ rm -r kittens/transfer || die |
112 |
+ fi |
113 |
+ |
114 |
+ # test relies on 'who' command which doesn't detect users with pid-sandbox |
115 |
+ rm kitty_tests/utmp.py || die |
116 |
+ |
117 |
+ # test may fail/hang depending on environment and shell initialization scripts |
118 |
+ rm kitty_tests/{shell_integration,ssh}.py || die |
119 |
+ |
120 |
+ # skip docs for live version |
121 |
+ [[ ${PV} != 9999 ]] || sed -i '/exists.*_build/,/docs(ddir)/d' setup.py || die |
122 |
+} |
123 |
+ |
124 |
+src_compile() { |
125 |
+ tc-export CC |
126 |
+ export PKGCONFIG_EXE=$(tc-getPKG_CONFIG) |
127 |
+ |
128 |
+ local setup=( |
129 |
+ ${EPYTHON} setup.py linux-package |
130 |
+ --disable-link-time-optimization |
131 |
+ --ignore-compiler-warnings |
132 |
+ --libdir-name=$(get_libdir) |
133 |
+ --shell-integration="enabled no-rc" |
134 |
+ --update-check-interval=0 |
135 |
+ --verbose |
136 |
+ $(usev debug --debug) |
137 |
+ ) |
138 |
+ |
139 |
+ echo "${setup[*]}" |
140 |
+ "${setup[@]}" || die "setup.py failed to compile ${PN}" |
141 |
+ |
142 |
+ [[ ${PV} == 9999 ]] || mv linux-package/share/doc/{${PN},${PF}} || die |
143 |
+ rm -r linux-package/share/terminfo || die |
144 |
+} |
145 |
+ |
146 |
+src_test() { |
147 |
+ PATH=linux-package/bin:${PATH} KITTY_CONFIG_DIRECTORY=${T} \ |
148 |
+ ${EPYTHON} test.py || die |
149 |
+} |
150 |
+ |
151 |
+src_install() { |
152 |
+ insinto /usr |
153 |
+ doins -r linux-package/. |
154 |
+ |
155 |
+ fperms +x /usr/bin/kitty \ |
156 |
+ /usr/$(get_libdir)/kitty/shell-integration/ssh/{askpass.py,kitty} |
157 |
+} |
158 |
+ |
159 |
+pkg_postinst() { |
160 |
+ xdg_pkg_postinst |
161 |
+ |
162 |
+ optfeature "in-terminal image display with kitty icat" media-gfx/imagemagick |
163 |
+ optfeature "audio-based terminal bell support" media-libs/libcanberra |
164 |
+ optfeature "opening links from the terminal" x11-misc/xdg-utils |
165 |
+} |