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 Apr 2018 19:49:28
Message-Id: 1522612145.bf2046e918d716478d45f0588fa3d57328a158bd.radhermit@gentoo
1 commit: bf2046e918d716478d45f0588fa3d57328a158bd
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 1 19:44:27 2018 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 1 19:49:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf2046e9
7
8 x11-term/kitty: version bump to 0.8.4
9
10 x11-terms/kitty/Manifest | 1 +
11 x11-terms/kitty/kitty-0.8.4.ebuild | 86 ++++++++++++++++++++++++++++++++++++++
12 2 files changed, 87 insertions(+)
13
14 diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest
15 index 27a671fd5c6..5cf9235f567 100644
16 --- a/x11-terms/kitty/Manifest
17 +++ b/x11-terms/kitty/Manifest
18 @@ -1,2 +1,3 @@
19 DIST kitty-0.8.2.tar.gz 3281308 BLAKE2B 6219dddc02e8b98b913356708fd2e398ad17aea97b0c539132b2333a736324d76136a6b6599b925424a8e7c578e9ef92b38ef5aa8ea5b42788731ecf19ad5e27 SHA512 4dabbce40a5fe0e54ac64b429baf3491ab492846f0f31b4b763c06c7aeba80a482bfd083419d3ddcd1bc267553458b719df82a2a179d90a88be3ce41a47d9897
20 DIST kitty-0.8.3.tar.gz 3285120 BLAKE2B dcf47345f26beaaae5a63f122a3592c29a8ef2243406377ebb46fd44b9d8036f2f5493d7b1048195e12a7fb9874fce920ac52a0bb18e071e5e3db869691174d9 SHA512 b758a178b976d7dc133dd48bfafff5db8a373419a67206a8724695392c0654a9d5ba07867cbd6824afe1a5c013724d8472ab4087eae52c8bdb27843688b18968
21 +DIST kitty-0.8.4.tar.gz 3285125 BLAKE2B ad0e1b94caab2b572baabf8340dad703cf6e572494b938fd6941d053deaee9d628d652af9c542efee6ecc2fe71fd7c534595449cb25e50438276d4d0361a61d9 SHA512 1ed5b909f66abd113d643420fadf4034fe0af5b649c957590f0698c541e26d0d061a5d703b8e6220f4be826b2b9914ecb3559fc644eb41cb7cd4b9465030cd93
22
23 diff --git a/x11-terms/kitty/kitty-0.8.4.ebuild b/x11-terms/kitty/kitty-0.8.4.ebuild
24 new file mode 100644
25 index 00000000000..b51c9110b0e
26 --- /dev/null
27 +++ b/x11-terms/kitty/kitty-0.8.4.ebuild
28 @@ -0,0 +1,86 @@
29 +# Copyright 1999-2018 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +
32 +EAPI=6
33 +PYTHON_COMPAT=( python3_{5,6} )
34 +
35 +inherit python-single-r1 toolchain-funcs
36 +
37 +if [[ ${PV} == "9999" ]] ; then
38 + EGIT_REPO_URI="https://github.com/kovidgoyal/kitty.git"
39 + inherit git-r3
40 +else
41 + SRC_URI="https://github.com/kovidgoyal/kitty/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 + KEYWORDS="~amd64 ~x86"
43 +fi
44 +
45 +DESCRIPTION="A modern, hackable, featureful, OpenGL-based terminal emulator"
46 +HOMEPAGE="https://github.com/kovidgoyal/kitty"
47 +
48 +LICENSE="GPL-3"
49 +SLOT="0"
50 +IUSE="debug imagemagick wayland"
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
52 +
53 +COMMON_DEPS="
54 + ${PYTHON_DEPS}
55 + >=media-libs/harfbuzz-1.5.0:=
56 + sys-libs/zlib
57 + media-libs/libpng:0=
58 + media-libs/freetype:2
59 + media-libs/fontconfig
60 + x11-libs/libXcursor
61 + x11-libs/libXrandr
62 + x11-libs/libXi
63 + x11-libs/libXinerama
64 + x11-libs/libxkbcommon[X]
65 + wayland? (
66 + dev-libs/wayland
67 + >=dev-libs/wayland-protocols-1.12
68 + )
69 +"
70 +RDEPEND="
71 + ${COMMON_DEPS}
72 + imagemagick? ( virtual/imagemagick-tools )
73 +"
74 +DEPEND="${RDEPEND}
75 + virtual/pkgconfig
76 +"
77 +
78 +PATCHES=(
79 + "${FILESDIR}"/${PN}-0.7.1-flags.patch
80 + "${FILESDIR}"/${PN}-0.7.1-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 + tc-export CC
92 +}
93 +
94 +doecho() {
95 + echo "$@"
96 + "$@" || die
97 +}
98 +
99 +src_compile() {
100 + doecho "${EPYTHON}" setup.py --verbose $(usex debug --debug "") --libdir-name $(get_libdir) linux-package
101 +}
102 +
103 +src_test() {
104 + export KITTY_CONFIG_DIRECTORY=${T}
105 + "${EPYTHON}" test.py || die
106 +}
107 +
108 +src_install() {
109 + mkdir -p "${ED}"usr || die
110 + cp -r linux-package/* "${ED}usr" || die
111 + python_fix_shebang "${ED}"
112 +
113 + dodoc CHANGELOG.rst *.asciidoc
114 +}