Gentoo Archives: gentoo-commits

From: John Helmert III <ajak@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty/, x11-terms/kitty/files/
Date: Sun, 17 Oct 2021 20:39:27
Message-Id: 1634502998.987e94f56ebd5543cfa92c977e0974b8eed66cbb.ajak@gentoo
1 commit: 987e94f56ebd5543cfa92c977e0974b8eed66cbb
2 Author: John Helmert III <ajak <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 17 19:09:07 2021 +0000
4 Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 17 20:36:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=987e94f5
7
8 x11-terms/kitty: drop 0.19.3
9
10 Bug: https://bugs.gentoo.org/784608
11 Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
12
13 x11-terms/kitty/Manifest | 1 -
14 .../kitty/files/kitty-0.16.0-remove-terminfo.patch | 14 ---
15 x11-terms/kitty/files/kitty-0.17.2-flags.patch | 50 ----------
16 x11-terms/kitty/files/kitty-0.19.1-tests.patch | 11 ---
17 x11-terms/kitty/kitty-0.19.3.ebuild | 107 ---------------------
18 5 files changed, 183 deletions(-)
19
20 diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest
21 index 41c4a129750..f5db726d325 100644
22 --- a/x11-terms/kitty/Manifest
23 +++ b/x11-terms/kitty/Manifest
24 @@ -1,4 +1,3 @@
25 -DIST kitty-0.19.3.tar.xz 3269628 BLAKE2B b3b673f8ad06baf770b03bcee87b2f405e1ff09d0fa5c6a232fd8df651351a428c8fbd9e2d0dc90ed44a0d6632192bea83650388ee73ebc3b523f51e51168006 SHA512 d1eea7f909c9492542650a83a149fd279c44380cf10387759f10caad57cd4dbabeac1ce84e8142bfa47266ec2562dfa3766ce08e2aee4d8e0ebacea165f101e4
26 DIST kitty-0.20.1.tar.xz 3449932 BLAKE2B aed9a250fbc7005cd67fd22bfc33de845bea7e39a5561e6957b744f03a5438945f9739ca7066a93889144a5d0289185f337ef4d487c754cba37f242030f1c46a SHA512 19dfa66eb2a2115877b25fbff0ba7a81071bff00c732236f20342aeb619cca88ae4a4e8ce4e73908ac7d7d12fca5232a76e0167754f2e658af02e442cf5ba0cd
27 DIST kitty-0.20.3.tar.xz 3487500 BLAKE2B 49397ac2aef10e5fc41e351af65050ad510e58915392e6b1b8c022db31f2e5e81ac2cce645468ff213dafb609a30d43934b7388b93227fbbba5af7aa35be74e8 SHA512 9e9d81696bcb0d3894c04b08bc52ccf7aaf533125b3ecfb4c894b8d42dbf8511239c49f1c977d81872ce49fc6b3aa8e8c92b9c944bd31fe59fce6e3750295e58
28 DIST kitty-0.21.2.tar.xz 4341440 BLAKE2B dd97d65ae6eb39b5676cc809d3b5ca48b0fcbbb4bb9cc1d212efeb1b5fb584f61decca9d286fdee6f4512aa4d56e08b3a19be70afa2f0155c8c1815e29fcd7ed SHA512 0ae41dfd61fc70746e8ec2d37c043dea7ceb70205aca056fd156348d4b9a2f6aac520c60de08fb5a3cd9bb908efdd2ad8129bbc01b69e5908f2976e5393269df
29
30 diff --git a/x11-terms/kitty/files/kitty-0.16.0-remove-terminfo.patch b/x11-terms/kitty/files/kitty-0.16.0-remove-terminfo.patch
31 deleted file mode 100644
32 index 4b7352aa73b..00000000000
33 --- a/x11-terms/kitty/files/kitty-0.16.0-remove-terminfo.patch
34 +++ /dev/null
35 @@ -1,14 +0,0 @@
36 ---- a/setup.py
37 -+++ b/setup.py
38 -@@ -837,11 +837,6 @@
39 - safe_makedirs(launcher_dir)
40 - build_launcher(args, launcher_dir, bundle_type)
41 - os.makedirs(os.path.join(libdir, 'logo'))
42 -- build_terminfo = runpy.run_path('build-terminfo', run_name='import_build')
43 -- for x in (libdir, os.path.join(ddir, 'share')):
44 -- odir = os.path.join(x, 'terminfo')
45 -- safe_makedirs(odir)
46 -- build_terminfo['compile_terminfo'](odir)
47 - shutil.copy2('__main__.py', libdir)
48 - shutil.copy2('logo/kitty.rgba', os.path.join(libdir, 'logo'))
49 - shutil.copy2('logo/kitty.png', os.path.join(libdir, 'logo'))
50
51 diff --git a/x11-terms/kitty/files/kitty-0.17.2-flags.patch b/x11-terms/kitty/files/kitty-0.17.2-flags.patch
52 deleted file mode 100644
53 index 5a247679dc8..00000000000
54 --- a/x11-terms/kitty/files/kitty-0.17.2-flags.patch
55 +++ /dev/null
56 @@ -1,50 +0,0 @@
57 -Respect user CFLAGS.
58 -
59 ---- a/setup.py
60 -+++ b/setup.py
61 -@@ -236,7 +236,7 @@
62 - if ccver >= (5, 0):
63 - df += ' -Og'
64 - float_conversion = '-Wfloat-conversion'
65 - fortify_source = '-D_FORTIFY_SOURCE=2'
66 -- optimize = df if debug or sanitize else '-O3'
67 -+ optimize = ''
68 - sanitize_args = get_sanitize_args(cc, ccver) if sanitize else set()
69 - cppflags_ = os.environ.get(
70 - 'OVERRIDE_CPPFLAGS', '-D{}DEBUG'.format('' if debug else 'N'),
71 -@@ -217,7 +217,7 @@
72 - cflags = os.environ.get(
73 - 'OVERRIDE_CFLAGS', (
74 - '-Wextra {} -Wno-missing-field-initializers -Wall -Wstrict-prototypes -std=c11'
75 -- ' -pedantic-errors -Werror {} {} -fwrapv {} {} -pipe {} -fvisibility=hidden'
76 -+ ' -pedantic-errors {} {} -fwrapv {} {} {} -fvisibility=hidden'
77 - ).format(
78 - float_conversion, std,
79 - optimize,
80 -@@ -232,7 +232,7 @@
81 - )
82 - ldflags = os.environ.get(
83 - 'OVERRIDE_LDFLAGS',
84 -- '-Wall ' + ' '.join(sanitize_args) + ('' if debug else ' -O3')
85 -+ '-Wall ' + ' '.join(sanitize_args)
86 - )
87 - ldflags = shlex.split(ldflags)
88 - ldflags.append('-shared')
89 -@@ -614,7 +614,7 @@
90 -
91 -
92 - def build_launcher(args, launcher_dir='.', bundle_type='source'):
93 -- cflags = '-Wall -Werror -fpie'.split()
94 -+ cflags = '-Wall -fpie'.split()
95 - cppflags = []
96 - libs = []
97 - if args.profile or args.sanitize:
98 -@@ -626,8 +626,6 @@
99 - cflags.append('-g')
100 - if args.profile:
101 - libs.append('-lprofiler')
102 -- else:
103 -- cflags.append('-O3')
104 - if bundle_type.endswith('-freeze'):
105 - cppflags.append('-DFOR_BUNDLE')
106 - cppflags.append('-DPYVER="{}"'.format(sysconfig.get_python_version()))
107
108 diff --git a/x11-terms/kitty/files/kitty-0.19.1-tests.patch b/x11-terms/kitty/files/kitty-0.19.1-tests.patch
109 deleted file mode 100644
110 index ee489b0dce3..00000000000
111 --- a/x11-terms/kitty/files/kitty-0.19.1-tests.patch
112 +++ /dev/null
113 @@ -1,11 +0,0 @@
114 ---- a/kitty/constants.py
115 -+++ b/kitty/constants.py
116 -@@ -64,7 +64,7 @@
117 - def kitty_exe() -> str:
118 - rpath = sys._xoptions.get('bundle_exe_dir')
119 - if not rpath:
120 -- items = os.environ.get('PATH', '').split(os.pathsep) + [os.path.join(base, 'launcher')]
121 -+ items = os.environ.get('PATH', '').split(os.pathsep) + [os.path.join(base, '../linux-package/bin')]
122 - seen: Set[str] = set()
123 - for candidate in filter(None, items):
124 - if candidate not in seen:
125
126 diff --git a/x11-terms/kitty/kitty-0.19.3.ebuild b/x11-terms/kitty/kitty-0.19.3.ebuild
127 deleted file mode 100644
128 index af521efe1f6..00000000000
129 --- a/x11-terms/kitty/kitty-0.19.3.ebuild
130 +++ /dev/null
131 @@ -1,107 +0,0 @@
132 -# Copyright 1999-2020 Gentoo Authors
133 -# Distributed under the terms of the GNU General Public License v2
134 -
135 -EAPI=7
136 -
137 -PYTHON_COMPAT=( python3_8 )
138 -
139 -inherit optfeature python-single-r1 toolchain-funcs xdg
140 -
141 -if [[ ${PV} == "9999" ]] ; then
142 - EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
143 - inherit git-r3
144 -else
145 - SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz"
146 - KEYWORDS="~amd64 ~x86"
147 -fi
148 -
149 -DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator"
150 -HOMEPAGE="https://github.com/kovidgoyal/kitty"
151 -
152 -LICENSE="GPL-3"
153 -SLOT="0"
154 -IUSE="debug wayland"
155 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
156 -
157 -RDEPEND="
158 - ${PYTHON_DEPS}
159 - media-libs/fontconfig
160 - media-libs/freetype:2
161 - >=media-libs/harfbuzz-1.5.0:=
162 - media-libs/lcms
163 - media-libs/libcanberra
164 - media-libs/libpng:0=
165 - sys-apps/dbus
166 - sys-libs/zlib
167 - x11-libs/libxcb[xkb]
168 - x11-libs/libXcursor
169 - x11-libs/libXi
170 - x11-libs/libXinerama
171 - x11-libs/libxkbcommon[X]
172 - x11-libs/libXrandr
173 - x11-terms/kitty-terminfo
174 - wayland? (
175 - dev-libs/wayland
176 - >=dev-libs/wayland-protocols-1.17
177 - )
178 - $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_6)
179 -"
180 -
181 -DEPEND="${RDEPEND}
182 - media-libs/mesa[X]
183 - sys-libs/ncurses
184 -"
185 -
186 -BDEPEND="virtual/pkgconfig"
187 -
188 -[[ ${PV} == *9999 ]] && BDEPEND+=" >=dev-python/sphinx-1.7"
189 -
190 -PATCHES=(
191 - "${FILESDIR}"/${PN}-0.17.2-flags.patch
192 - "${FILESDIR}"/${PN}-0.14.4-svg-icon.patch
193 - "${FILESDIR}"/${PN}-0.16.0-remove-terminfo.patch
194 - "${FILESDIR}"/${PN}-0.19.1-tests.patch
195 -)
196 -
197 -src_prepare() {
198 - default
199 -
200 - # disable wayland as required
201 - if ! use wayland; then
202 - sed -i "/'x11 wayland'/s/ wayland//" setup.py || die
203 - fi
204 -
205 - # respect doc dir
206 - sed -i "/htmldir =/s/appname/'${PF}'/" setup.py || die
207 -
208 - tc-export CC
209 -}
210 -
211 -src_compile() {
212 - "${EPYTHON}" setup.py \
213 - --verbose $(usex debug --debug "") \
214 - --libdir-name $(get_libdir) \
215 - --update-check-interval=0 \
216 - linux-package || die "Failed to compile kitty."
217 -}
218 -
219 -src_test() {
220 - export KITTY_CONFIG_DIRECTORY=${T}
221 - "${EPYTHON}" test.py || die
222 -}
223 -
224 -src_install() {
225 - insinto /usr
226 - doins -r linux-package/*
227 - dobin linux-package/bin/kitty
228 - python_fix_shebang "${ED}"
229 -}
230 -
231 -pkg_postinst() {
232 - xdg_icon_cache_update
233 - optfeature "Displaying images in the terminal" virtual/imagemagick-tools
234 -}
235 -
236 -pkg_postrm() {
237 - xdg_icon_cache_update
238 -}