1 |
commit: 78fbf2651744c9236defdc60b6f7861cae4bf3fe |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 26 19:55:43 2018 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 1 19:34:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78fbf265 |
7 |
|
8 |
x11-terms/kitty: version bump to 0.8.0 |
9 |
|
10 |
x11-terms/kitty/Manifest | 1 + |
11 |
x11-terms/kitty/kitty-0.8.0.ebuild | 89 ++++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 90 insertions(+) |
13 |
|
14 |
diff --git a/x11-terms/kitty/Manifest b/x11-terms/kitty/Manifest |
15 |
index d6aa2678430..aba578c49bb 100644 |
16 |
--- a/x11-terms/kitty/Manifest |
17 |
+++ b/x11-terms/kitty/Manifest |
18 |
@@ -1 +1,2 @@ |
19 |
DIST kitty-0.7.1.tar.gz 2535007 BLAKE2B 13c5506b30e54b190d1cec2c2bb5b3b8c76ba3492a065fccae84c84606842b717dc33f74a7b3abf4c0ffec8564c5dd9be4b6ed3972c24cf95662aec594359bc9 SHA512 595e64e49ac940b37ff88d6152006ebfe2722682a8ff6c8bc2514c150a5b51934b9de5b8c99130910e5638f9c1db566abf4adb65f3fdce893708787d1ded59c1 |
20 |
+DIST kitty-0.8.0.tar.gz 3265837 BLAKE2B 2bd623a1f7024e3d6fe11132516a5c165d890faaa80cf2bc23f0a35852c331eede1fbeb0ab0e3588da6d41e7700d8643cd82bbb45bee4c8f359ff4b9f00fb081 SHA512 909faf13bd27c03eed463400d157f453363142fd31b4aaf49be37ed85bcd417077667fc02a8c78c6dccf4c1d326cfe3cff4996f591e16eda8335cf165abb42fd |
21 |
|
22 |
diff --git a/x11-terms/kitty/kitty-0.8.0.ebuild b/x11-terms/kitty/kitty-0.8.0.ebuild |
23 |
new file mode 100644 |
24 |
index 00000000000..e92bab9de3b |
25 |
--- /dev/null |
26 |
+++ b/x11-terms/kitty/kitty-0.8.0.ebuild |
27 |
@@ -0,0 +1,89 @@ |
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_{5,6} ) |
33 |
+ |
34 |
+inherit python-single-r1 toolchain-funcs |
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/libXinerama |
62 |
+ x11-libs/libxkbcommon[X] |
63 |
+ wayland? ( |
64 |
+ dev-libs/wayland |
65 |
+ >=dev-libs/wayland-protocols-1.12 |
66 |
+ ) |
67 |
+" |
68 |
+RDEPEND=" |
69 |
+ ${COMMON_DEPS} |
70 |
+ imagemagick? ( virtual/imagemagick-tools ) |
71 |
+" |
72 |
+DEPEND="${RDEPEND} |
73 |
+ virtual/pkgconfig |
74 |
+" |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}"/${PN}-0.7.1-flags.patch |
78 |
+ "${FILESDIR}"/${PN}-0.7.1-svg-icon.patch |
79 |
+) |
80 |
+ |
81 |
+src_prepare() { |
82 |
+ default |
83 |
+ |
84 |
+ # respect libdir |
85 |
+ sed -i "/libdir =/s/'lib'/'$(get_libdir)'/" setup.py || die |
86 |
+ sed -i "s#/../lib/kitty#/../$(get_libdir)/kitty#" linux-launcher.c || die |
87 |
+ |
88 |
+ # disable wayland as required |
89 |
+ if ! use wayland; then |
90 |
+ sed -i "/'x11 wayland'/s/ wayland//" setup.py || die |
91 |
+ fi |
92 |
+ |
93 |
+ tc-export CC |
94 |
+} |
95 |
+ |
96 |
+doecho() { |
97 |
+ echo "$@" |
98 |
+ "$@" || die |
99 |
+} |
100 |
+ |
101 |
+src_compile() { |
102 |
+ doecho "${EPYTHON}" setup.py --verbose $(usex debug --debug "") linux-package |
103 |
+} |
104 |
+ |
105 |
+src_test() { |
106 |
+ export KITTY_CONFIG_DIRECTORY=${T} |
107 |
+ "${EPYTHON}" test.py || die |
108 |
+} |
109 |
+ |
110 |
+src_install() { |
111 |
+ mkdir -p "${ED}"usr || die |
112 |
+ cp -r linux-package/* "${ED}usr" || die |
113 |
+ python_fix_shebang "${ED}" |
114 |
+ |
115 |
+ dodoc CHANGELOG.rst *.asciidoc |
116 |
+} |