Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/zutty/files/, x11-terms/zutty/
Date: Sun, 29 Aug 2021 18:33:23
Message-Id: 1630261987.10cc462e684d5aa4b10e1f39d09849401e01f971.sam@gentoo
1 commit: 10cc462e684d5aa4b10e1f39d09849401e01f971
2 Author: Matt Smith <matt <AT> offtopica <DOT> uk>
3 AuthorDate: Sun Aug 29 17:26:00 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 29 18:33:07 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10cc462e
7
8 x11-terms/zutty: Compatibility with >=media-libs/freetype-2.11.0
9
10 Closes: https://bugs.gentoo.org/809611
11 Package-Manager: Portage-3.0.22, Repoman-3.0.3
12 Signed-off-by: Matt Smith <matt <AT> offtopica.uk>
13 Closes: https://github.com/gentoo/gentoo/pull/22150
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 .../zutty/files/zutty-0.9-freetype-2.11.0.patch | 35 ++++++++++++++++++++++
17 x11-terms/zutty/zutty-0.9-r1.ebuild | 35 ++++++++++++++++++++++
18 2 files changed, 70 insertions(+)
19
20 diff --git a/x11-terms/zutty/files/zutty-0.9-freetype-2.11.0.patch b/x11-terms/zutty/files/zutty-0.9-freetype-2.11.0.patch
21 new file mode 100644
22 index 00000000000..b5d62204e6b
23 --- /dev/null
24 +++ b/x11-terms/zutty/files/zutty-0.9-freetype-2.11.0.patch
25 @@ -0,0 +1,35 @@
26 +From c73c99d6b024047d9f9e53e263be56093b6bf986 Mon Sep 17 00:00:00 2001
27 +From: Matt Smith <matt@×××××××××.uk>
28 +Date: Sun, 29 Aug 2021 19:15:01 +0100
29 +Subject: [PATCH] Prevent rendering glyphs twice
30 +
31 +Characters are loaded with FT_LOAD_RENDER. Calling FT_Render_Glyph
32 +again causes an error in Freetype 2.11.0 and later.
33 +
34 +Thanks to Stephan Hartmann <sultan@g.o> for debugging and creating initial patch.
35 +
36 +Bug: https://bugs.gentoo.org/809611
37 +---
38 + src/font.cc | 6 ------
39 + 1 file changed, 6 deletions(-)
40 +
41 +diff --git a/src/font.cc b/src/font.cc
42 +index f8da582..350a1a6 100644
43 +--- a/src/font.cc
44 ++++ b/src/font.cc
45 +@@ -255,12 +255,6 @@ namespace zutty
46 + std::to_string (c));
47 + }
48 +
49 +- if (FT_Render_Glyph (face->glyph, FT_RENDER_MODE_NORMAL))
50 +- throw std::runtime_error (
51 +- std::string ("FreeType: Failed to render glyph for char ") +
52 +- std::to_string (c));
53 +-
54 +-
55 + // destination pixel offset
56 + const unsigned int dx = face->glyph->bitmap_left > 0
57 + ? face->glyph->bitmap_left : 0;
58 +--
59 +2.33.0
60 +
61
62 diff --git a/x11-terms/zutty/zutty-0.9-r1.ebuild b/x11-terms/zutty/zutty-0.9-r1.ebuild
63 new file mode 100644
64 index 00000000000..fdcb77c3890
65 --- /dev/null
66 +++ b/x11-terms/zutty/zutty-0.9-r1.ebuild
67 @@ -0,0 +1,35 @@
68 +# Copyright 1999-2021 Gentoo Authors
69 +# Distributed under the terms of the GNU General Public License v2
70 +
71 +EAPI=7
72 +
73 +PYTHON_COMPAT=( python3_{7,8,9} )
74 +PYTHON_REQ_USE="threads(+)"
75 +
76 +inherit python-any-r1 waf-utils
77 +
78 +DESCRIPTION="X terminal emulator rendering through OpenGL ES Compute Shaders"
79 +HOMEPAGE="https://tomscii.sig7.se/zutty/ https://github.com/tomszilagyi/zutty"
80 +SRC_URI="https://github.com/tomszilagyi/zutty/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
81 +
82 +LICENSE="GPL-3+"
83 +SLOT="0"
84 +KEYWORDS="~amd64"
85 +
86 +RDEPEND="
87 + media-libs/freetype:2
88 + media-libs/libglvnd[X]
89 + x11-libs/libXmu
90 +"
91 +DEPEND="${RDEPEND}"
92 +BDEPEND="
93 + ${PYTHON_DEPS}
94 + virtual/pkgconfig
95 +"
96 +
97 +PATCHES=(
98 + # Bug 809611
99 + "${FILESDIR}"/${PN}-0.9-freetype-2.11.0.patch
100 +)
101 +
102 +DOCS=( doc/KEYS.org doc/USAGE.org )