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: Sun, 01 Jul 2018 04:45:48
Message-Id: 1530419243.1bd8dccacb329d8374ccdc0bddebf0cd59622dcd.radhermit@gentoo
1 commit: 1bd8dccacb329d8374ccdc0bddebf0cd59622dcd
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 1 04:27:23 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 1 04:27:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bd8dcca
7
8 x11-terms/kitty: version bump to 0.11.2
9
10 x11-terms/kitty/Manifest | 1 +
11 x11-terms/kitty/kitty-0.11.2.ebuild | 96 +++++++++++++++++++++++++++++++++++++
12 2 files changed, 97 insertions(+)
13
14 diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest
15 index c6ecd53d302..5212aa1030c 100644
16 --- a/x11-terms/kitty/Manifest
17 +++ b/x11-terms/kitty/Manifest
18 @@ -1 +1,2 @@
19 DIST kitty-0.11.1.tar.gz 3924068 BLAKE2B a71535cfffe863ee06f699eba3a06c1665c851673bee0d1134fe992fe0335cc13d9a89cebf5814082a155166aaa0939b0e6296ad567564c608bf72eedce5cce3 SHA512 79a3ed4ffbc58e34e6c907646dc33168a8dcb58db859549549e2983186521dc69990e2d2e3eb120fcd31af03187d9a8233a60b75c205ac4e59bb7b575836cceb
20 +DIST kitty-0.11.2.tar.gz 3442111 BLAKE2B ebd5f11e57dd77a4336dfee51e2cf8c6c218d88957fe8988edcab9ecef73b7934b28e761733e9d8ca7842efb8a53fb30e785ed16fe73ac8c01b04a138d0e17a3 SHA512 28c4f7e8b87479cae47a00ea39ef31171ebeebf4888da4f9eaec250b4ed36ae6076b40e1a3b7ef88da2c9c860ba4d9af279a8b1d0d6e721f9fa3febee89bc151
21
22 diff --git a/x11-terms/kitty/kitty-0.11.2.ebuild b/x11-terms/kitty/kitty-0.11.2.ebuild
23 new file mode 100644
24 index 00000000000..8bef706b26d
25 --- /dev/null
26 +++ b/x11-terms/kitty/kitty-0.11.2.ebuild
27 @@ -0,0 +1,96 @@
28 +# Copyright 1999-2018 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +
31 +EAPI=6
32 +PYTHON_COMPAT=( python3_6 )
33 +
34 +inherit python-single-r1 toolchain-funcs gnome2-utils
35 +
36 +if [[ ${PV} == "9999" ]] ; then
37 + EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
38 + inherit git-r3
39 +else
40 + SRC_URI="https://github.com/kovidgoyal/kitty/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 + KEYWORDS="~amd64 ~x86"
42 +fi
43 +
44 +DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator"
45 +HOMEPAGE="https://github.com/kovidgoyal/kitty"
46 +
47 +LICENSE="GPL-3"
48 +SLOT="0"
49 +IUSE="debug imagemagick wayland"
50 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
51 +
52 +COMMON_DEPS="
53 + ${PYTHON_DEPS}
54 + >=media-libs/harfbuzz-1.5.0:=
55 + sys-libs/zlib
56 + media-libs/libpng:0=
57 + media-libs/freetype:2
58 + media-libs/fontconfig
59 + x11-libs/libXcursor
60 + x11-libs/libXrandr
61 + x11-libs/libXi
62 + x11-libs/libXinerama
63 + x11-libs/libxkbcommon[X]
64 + wayland? (
65 + dev-libs/wayland
66 + >=dev-libs/wayland-protocols-1.12
67 + )
68 +"
69 +RDEPEND="
70 + ${COMMON_DEPS}
71 + imagemagick? ( virtual/imagemagick-tools )
72 +"
73 +DEPEND="${RDEPEND}
74 + virtual/pkgconfig
75 + >=dev-python/sphinx-1.7[${PYTHON_USEDEP}]
76 +"
77 +
78 +PATCHES=(
79 + "${FILESDIR}"/${PN}-0.11.0-flags.patch
80 + "${FILESDIR}"/${PN}-0.11.0-svg-icon.patch
81 +)
82 +
83 +src_prepare() {
84 + default
85 +
86 + # disable wayland as required
87 + if ! use wayland; then
88 + sed -i "/'x11 wayland'/s/ wayland//" setup.py || die
89 + fi
90 +
91 + # respect doc dir
92 + sed -i "/htmldir =/s/appname/'${PF}'/" setup.py
93 +
94 + tc-export CC
95 +}
96 +
97 +doecho() {
98 + echo "$@"
99 + "$@" || die
100 +}
101 +
102 +src_compile() {
103 + doecho "${EPYTHON}" setup.py --verbose $(usex debug --debug "") --libdir-name $(get_libdir) linux-package
104 +}
105 +
106 +src_test() {
107 + export KITTY_CONFIG_DIRECTORY=${T}
108 + "${EPYTHON}" test.py || die
109 +}
110 +
111 +src_install() {
112 + mkdir -p "${ED}"usr || die
113 + cp -r linux-package/* "${ED}usr" || die
114 + python_fix_shebang "${ED}"
115 +}
116 +
117 +pkg_postinst() {
118 + gnome2_icon_cache_update
119 +}
120 +
121 +pkg_postrm() {
122 + gnome2_icon_cache_update
123 +}