Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty-terminfo/files/, x11-terms/kitty-terminfo/
Date: Fri, 01 May 2020 15:10:03
Message-Id: 1588345778.d35225df7332714036403dcab6b9335d4e54a97d.juippis@gentoo
1 commit: d35225df7332714036403dcab6b9335d4e54a97d
2 Author: end222 <pabloorduna98 <AT> gmail <DOT> com>
3 AuthorDate: Thu Apr 30 15:05:51 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri May 1 15:09:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d35225df
7
8 x11-terms/kitty-terminfo: cleanup older versions
9
10 Signed-off-by: Pablo Orduna <pabloorduna98 <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/15576
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 x11-terms/kitty-terminfo/Manifest | 1 -
15 .../files/kitty-terminfo-setup.patch | 44 ---------------------
16 .../kitty-terminfo/kitty-terminfo-0.16.0.ebuild | 45 ----------------------
17 3 files changed, 90 deletions(-)
18
19 diff --git a/x11-terms/kitty-terminfo/Manifest b/x11-terms/kitty-terminfo/Manifest
20 index e958c1af17e..bac5a972e96 100644
21 --- a/x11-terms/kitty-terminfo/Manifest
22 +++ b/x11-terms/kitty-terminfo/Manifest
23 @@ -1,3 +1,2 @@
24 -DIST kitty-0.16.0.tar.xz 2974592 BLAKE2B 971e279cd24369a454495fc7a236356e6a4ee69a0953563a9283a16e21bd67ddea5ab8f795c75be6cd31d05c5f1b39b1525e957b9bcd59d12ea3e701b21aa59c SHA512 24dedfc58c5d33aa18da85f904952129f39cd54afb70282c7572b57514b1deebfb532414913e0efc3a5c0352a81406cd7ddef99490dbd9186dc61eab7af3975b
25 DIST kitty-0.17.2.tar.xz 3044140 BLAKE2B 12dcb8ddb7d90a22904f575301e8c2b1672c3212ee29a035fa5e8eec553dafb0e2c8c1cc3a491c8ac6854d619e979e518d83c5218f36647a032a4f847d068ef3 SHA512 bccf1c1d60d1149bc5f849b82db1af80a2d9a7a11c5f2df853daae5700550eef98da389a30f015d67be796f39deacb31f3ee245eb37ba1a41ba377c70cd26d61
26 DIST kitty-0.17.3.tar.xz 3064216 BLAKE2B f5ab532d97c211ceed463c24758635a9e7168bf03990889a98ebdad7fc8c1c60f5f3726724007f00ac6a5f5e8db44ca54a4a43027dbf6ce1fdfcaa40c7b8e10c SHA512 dc14ba35e77e0ebd1978fde0731b00e726e75137f900952dfa6b06add1f46e3a3f42e8e886ce8c689e4e3500f2d2216a66225d5211522a41d09ef61265065e2d
27
28 diff --git a/x11-terms/kitty-terminfo/files/kitty-terminfo-setup.patch b/x11-terms/kitty-terminfo/files/kitty-terminfo-setup.patch
29 deleted file mode 100644
30 index 5ff1fa2d77d..00000000000
31 --- a/x11-terms/kitty-terminfo/files/kitty-terminfo-setup.patch
32 +++ /dev/null
33 @@ -1,44 +0,0 @@
34 ---- a/setup.py 2020-03-12 00:28:46.725956882 +0100
35 -+++ b/setup.py 2020-03-12 00:38:55.557945979 +0100
36 -@@ -876,6 +876,14 @@
37 - create_macos_bundle_gunk(ddir)
38 - # }}}
39 -
40 -+def terminfo(args):
41 -+ ddir = args.prefix
42 -+ libdir = os.path.join(ddir, args.libdir_name.strip('/'), 'kitty')
43 -+ build_terminfo = runpy.run_path('build-terminfo', run_name='import_build')
44 -+ for x in (libdir, os.path.join(ddir, 'share')):
45 -+ odir = os.path.join(x, 'terminfo')
46 -+ safe_makedirs(odir)
47 -+ build_terminfo['compile_terminfo'](odir)
48 -
49 - def clean():
50 -
51 -@@ -889,7 +897,7 @@
52 -
53 - safe_remove(
54 - 'build', 'compile_commands.json', 'link_commands.json',
55 -- 'linux-package', 'kitty.app', 'asan-launcher',
56 -+ 'linux-package', 'linux-terminfo', 'kitty.app', 'asan-launcher',
57 - 'kitty-profile', 'kitty/launcher')
58 - exclude = ('.git',)
59 - for root, dirs, files in os.walk('.', topdown=True):
60 -@@ -910,7 +918,7 @@
61 - 'action',
62 - nargs='?',
63 - default='build',
64 -- choices='build test linux-package kitty.app linux-freeze macos-freeze clean'.split(),
65 -+ choices='build test linux-package linux-terminfo kitty.app linux-freeze macos-freeze clean'.split(),
66 - help='Action to perform (default is build)'
67 - )
68 - p.add_argument(
69 -@@ -1007,6 +1015,8 @@
70 - elif args.action == 'linux-package':
71 - build(args, native_optimizations=False)
72 - package(args, bundle_type='linux-package')
73 -+ elif args.action == 'linux-terminfo':
74 -+ terminfo(args)
75 - elif args.action == 'linux-freeze':
76 - build(args, native_optimizations=False)
77 - package(args, bundle_type='linux-freeze')
78
79 diff --git a/x11-terms/kitty-terminfo/kitty-terminfo-0.16.0.ebuild b/x11-terms/kitty-terminfo/kitty-terminfo-0.16.0.ebuild
80 deleted file mode 100644
81 index 6ceb2f1ead7..00000000000
82 --- a/x11-terms/kitty-terminfo/kitty-terminfo-0.16.0.ebuild
83 +++ /dev/null
84 @@ -1,45 +0,0 @@
85 -# Copyright 1999-2020 Gentoo Authors
86 -# Distributed under the terms of the GNU General Public License v2
87 -
88 -EAPI=7
89 -
90 -PYTHON_COMPAT=( python3_{6,7,8} )
91 -
92 -inherit python-single-r1 toolchain-funcs xdg
93 -
94 -DESCRIPTION="Terminfo for kitty, an OpenGL-based terminal emulator"
95 -HOMEPAGE="https://github.com/kovidgoyal/kitty"
96 -SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/kitty-${PV}.tar.xz"
97 -S="${WORKDIR}/kitty-${PV}"
98 -
99 -LICENSE="GPL-3"
100 -SLOT="0"
101 -KEYWORDS="~amd64 ~x86"
102 -IUSE="debug"
103 -
104 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
105 -
106 -RDEPEND="${PYTHON_DEPS}"
107 -
108 -DEPEND="${RDEPEND}"
109 -
110 -PATCHES=(
111 - "${FILESDIR}"/kitty-terminfo-setup.patch
112 -)
113 -
114 -# kitty-terminfo is a split package from kitty that only installs the terminfo
115 -# file. As tests are designed to be run with the whole package compiled they
116 -# would fail in this case.
117 -RESTRICT="test"
118 -
119 -src_compile() {
120 - "${EPYTHON}" setup.py \
121 - --verbose $(usex debug --debug "") \
122 - --libdir-name $(get_libdir) \
123 - linux-terminfo || die "Failed to compile kitty."
124 -}
125 -
126 -src_install() {
127 - insinto /usr
128 - doins -r linux-package/*
129 -}