Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/kitty/
Date: Fri, 27 Sep 2019 03:21:17
Message-Id: 1569552716.a9802fe480df169b0389e16d1b683152527b87fc.radhermit@gentoo
1 commit: a9802fe480df169b0389e16d1b683152527b87fc
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 27 02:51:56 2019 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 27 02:51:56 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9802fe4
7
8 x11-terms/kitty: version bump to 0.14.6
9
10 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
11
12 x11-terms/kitty/Manifest | 1 +
13 x11-terms/kitty/kitty-0.14.6.ebuild | 108 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 109 insertions(+)
15
16 diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest
17 index cf75d64fee8..7185f445bae 100644
18 --- a/x11-terms/kitty/Manifest
19 +++ b/x11-terms/kitty/Manifest
20 @@ -1,2 +1,3 @@
21 DIST kitty-0.14.2.tar.xz 2867116 BLAKE2B 20f3d66caa5242502f2699d4a5e8364eda357b00c72d50650ab0d03fbbb552152a2d4447e37ce20660d6d8f9ffc285aee057f6adf7a03ac57fa8ab6d1da61013 SHA512 191a37424c51776d271008c6b4b0cb43b60cd2abea3ea7b2a08cca9a8d44c4932ca11470f3efb8debc0e2ef3641bb68c05374401073b23cf81042af467b1dbf4
22 DIST kitty-0.14.4.tar.xz 2946268 BLAKE2B e06cdb1081d821bd65190ec7526482f7471f7a04c8a559e48465b602559079c10d220024ac521d2fce34e0eb90af7bee01d1da408082bfa724ac61e59709a860 SHA512 1550883232bff21217fc0d294598d6d828e67a944fc69b324079e87bf2505344c58ade75cec8bff1dca7821c4f490c066f2645281cee0e71792d317ef7df3779
23 +DIST kitty-0.14.6.tar.xz 2970008 BLAKE2B e4f64051aebcc5d5aa1956351acb5564815e65c7c8435cac3c7960c5096fbeb5f0e98e3bdf92e750e8d70d6b0124b081bbb5d38a589c3dc5cf74642c3eaf83c9 SHA512 889bfce732f2a36d338c9c41b28e0770d98c15530b56a9f037cef610593b50453f1bde60e89560472035fc250dec0431a9776de1449f77e4c6988aca157eea12
24
25 diff --git a/x11-terms/kitty/kitty-0.14.6.ebuild b/x11-terms/kitty/kitty-0.14.6.ebuild
26 new file mode 100644
27 index 00000000000..85c9ba13dfc
28 --- /dev/null
29 +++ b/x11-terms/kitty/kitty-0.14.6.ebuild
30 @@ -0,0 +1,108 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +PYTHON_COMPAT=( python3_{6,7} )
36 +
37 +inherit python-single-r1 toolchain-funcs gnome2-utils
38 +
39 +if [[ ${PV} == "9999" ]] ; then
40 + EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
41 + inherit git-r3
42 +else
43 + SRC_URI="https://github.com/kovidgoyal/kitty/releases/download/v${PV}/${P}.tar.xz"
44 + KEYWORDS="~amd64 ~x86"
45 +fi
46 +
47 +DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator"
48 +HOMEPAGE="https://github.com/kovidgoyal/kitty"
49 +
50 +LICENSE="GPL-3"
51 +SLOT="0"
52 +IUSE="debug doc imagemagick wayland"
53 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
54 +
55 +COMMON_DEPS="
56 + ${PYTHON_DEPS}
57 + >=media-libs/harfbuzz-1.5.0:=
58 + sys-apps/dbus
59 + sys-libs/zlib
60 + media-libs/libcanberra
61 + media-libs/libpng:0=
62 + media-libs/freetype:2
63 + media-libs/fontconfig
64 + x11-libs/libXcursor
65 + x11-libs/libXrandr
66 + x11-libs/libXi
67 + x11-libs/libXinerama
68 + x11-libs/libxkbcommon[X]
69 + x11-libs/libxcb[xkb]
70 + wayland? (
71 + dev-libs/wayland
72 + >=dev-libs/wayland-protocols-1.17
73 + )
74 +"
75 +RDEPEND="
76 + ${COMMON_DEPS}
77 + imagemagick? ( virtual/imagemagick-tools )
78 +"
79 +DEPEND="${RDEPEND}
80 + media-libs/mesa[X(+)]
81 + sys-libs/ncurses
82 + virtual/pkgconfig
83 +"
84 +[[ ${PV} == *9999 ]] && DEPEND+=" >=dev-python/sphinx-1.7[${PYTHON_USEDEP}]"
85 +
86 +PATCHES=(
87 + "${FILESDIR}"/${PN}-0.14.4-flags.patch
88 + "${FILESDIR}"/${PN}-0.14.4-svg-icon.patch
89 +)
90 +
91 +src_prepare() {
92 + default
93 +
94 + # disable wayland as required
95 + if ! use wayland; then
96 + sed -i "/'x11 wayland'/s/ wayland//" setup.py || die
97 + fi
98 +
99 + # respect doc dir
100 + sed -i "/htmldir =/s/appname/'${PF}'/" setup.py
101 +
102 + tc-export CC
103 +}
104 +
105 +doecho() {
106 + echo "$@"
107 + "$@" || die
108 +}
109 +
110 +src_compile() {
111 + doecho "${EPYTHON}" setup.py \
112 + --verbose $(usex debug --debug "") \
113 + --libdir-name $(get_libdir) \
114 + linux-package
115 +}
116 +
117 +src_test() {
118 + export KITTY_CONFIG_DIRECTORY=${T}
119 + "${EPYTHON}" test.py || die
120 +}
121 +
122 +src_install() {
123 + mkdir -p "${ED}"usr || die
124 + cp -r linux-package/* "${ED}usr" || die
125 + python_fix_shebang "${ED}"
126 +
127 + if ! use doc; then
128 + rm -r "${ED}"/usr/share/doc || die
129 + fi
130 +}
131 +
132 +pkg_postinst() {
133 + gnome2_icon_cache_update
134 +}
135 +
136 +pkg_postrm() {
137 + gnome2_icon_cache_update
138 +}