Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: x11-terms/rxvt-unicode/, x11-terms/rxvt-unicode/files/
Date: Wed, 10 Apr 2019 06:50:20
Message-Id: 1554878994.23ec7cc325bae45bac132644bbacf370109a2aae.anarchy@gentoo
1 commit: 23ec7cc325bae45bac132644bbacf370109a2aae
2 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 10 06:49:54 2019 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 10 06:49:54 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=23ec7cc3
7
8 x11-terms/rxvt-unicode: 9.22 version bump
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org>
12
13 x11-terms/rxvt-unicode/Manifest | 1 +
14 .../rxvt-unicode-9.06-case-insensitive-fs.patch | 4 +-
15 .../files/rxvt-unicode-9.22-font-width-fix.patch | 38 ++++++++++
16 .../rxvt-unicode-9.22-line-spaceing-fix.patch | 40 ++++++++++
17 x11-terms/rxvt-unicode/rxvt-unicode-9.22-r1.ebuild | 88 ++++++++++++++++++++++
18 5 files changed, 169 insertions(+), 2 deletions(-)
19
20 diff --git a/x11-terms/rxvt-unicode/Manifest b/x11-terms/rxvt-unicode/Manifest
21 index 4eafb1e..ab3f3b6 100644
22 --- a/x11-terms/rxvt-unicode/Manifest
23 +++ b/x11-terms/rxvt-unicode/Manifest
24 @@ -1 +1,2 @@
25 DIST rxvt-unicode-9.21.tar.bz2 925293 SHA256 75270ed72bc5895a64a1d7392bf45a622204192371c3965bd3dd978dc088956b SHA512 d50adf6b1e6ae3b13492b4f40455d3a56bb174a7c6db4d4525a1277736994adfb74a2cd1e7d3e8a8cfdc4509a9ae32c05a627829e295dc1bd4a5ba7cc2f80776 WHIRLPOOL 92499cfa0ca154d3cbe1d7b6525e01de6a5d14677a28c605a6b676c88f1d9bc0f6cd663a1f1d8b003ac7cc46a9c6fbe49ff9adc7b3dd63eb345c80de9038a6ad
26 +DIST rxvt-unicode-9.22.tar.bz2 931198 BLAKE2B ea9a12e4a8396ed6be12b4d50ae260a0376902dbd47b0628bb14ce0509c5d89f5a80370b413fdb9df9b8b81728ec26e115cbf0d88ab6e9cb2a87b03b5d79c432 SHA512 b39f1b2cbe6dd3fbd2a0ad6a9d391a2b6f49d7c5e67bc65fe44a9c86937f8db379572c67564c6e21ff6e09b447cdfd4e540544e486179e94da0e0db679c04dd9
27
28 diff --git a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.06-case-insensitive-fs.patch b/x11-terms/rxvt-unicode/files/rxvt-unicode-9.06-case-insensitive-fs.patch
29 index 49fa01a..916e24a 100644
30 --- a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.06-case-insensitive-fs.patch
31 +++ b/x11-terms/rxvt-unicode/files/rxvt-unicode-9.06-case-insensitive-fs.patch
32 @@ -1,7 +1,7 @@
33 Avoid "make: `install' is up to date." on case insensitive filesystems
34
35 ---- Makefile.in
36 -+++ Makefile.in
37 +--- a/Makefile.in
38 ++++ b/Makefile.in
39 @@ -86,3 +86,5 @@
40 dist: tar.bz2
41
42
43 diff --git a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-font-width-fix.patch b/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-font-width-fix.patch
44 new file mode 100644
45 index 0000000..b495778
46 --- /dev/null
47 +++ b/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-font-width-fix.patch
48 @@ -0,0 +1,38 @@
49 +From 3a0f53449431004b50125cef17803d4431c6affa Mon Sep 17 00:00:00 2001
50 +From:
51 +Date: Wed, 10 Apr 2019 01:30:24 -0500
52 +Subject: [PATCH 1/2] don't use g.width as a width of a character!
53 +
54 +---
55 + src/rxvtfont.C | 9 +++++++++
56 + 1 file changed, 9 insertions(+)
57 +
58 +diff --git a/src/rxvtfont.C b/src/rxvtfont.C
59 +index 1914539..90377a7 100644
60 +--- a/src/rxvtfont.C
61 ++++ b/src/rxvtfont.C
62 +@@ -1267,12 +1267,21 @@ rxvt_font_xft::load (const rxvt_fontprop &prop, bool force_prop)
63 + XGlyphInfo g;
64 + XftTextExtents16 (disp, f, &ch, 1, &g);
65 +
66 ++/*
67 ++ * bukind: don't use g.width as a width of a character!
68 ++ * instead use g.xOff, see e.g.: http://keithp.com/~keithp/render/Xft.tutorial
69 ++
70 + g.width -= g.x;
71 +
72 + int wcw = WCWIDTH (ch);
73 + if (wcw > 0) g.width = (g.width + wcw - 1) / wcw;
74 +
75 + if (width < g.width ) width = g.width;
76 ++ */
77 ++ int wcw = WCWIDTH (ch);
78 ++ if (wcw > 1) g.xOff = g.xOff / wcw;
79 ++ if (width < g.xOff) width = g.xOff;
80 ++
81 + if (height < g.height ) height = g.height;
82 + if (glheight < g.height - g.y) glheight = g.height - g.y;
83 + }
84 +--
85 +2.21.0
86 +
87
88 diff --git a/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-line-spaceing-fix.patch b/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-line-spaceing-fix.patch
89 new file mode 100644
90 index 0000000..cf1d918
91 --- /dev/null
92 +++ b/x11-terms/rxvt-unicode/files/rxvt-unicode-9.22-line-spaceing-fix.patch
93 @@ -0,0 +1,40 @@
94 +From 0a3f38b4f7199391437edf903bb803a90cd4f2f3 Mon Sep 17 00:00:00 2001
95 +From:
96 +Date: Wed, 10 Apr 2019 01:31:16 -0500
97 +Subject: [PATCH 2/2] use ascent, descent and height from XftFont *f instead of
98 + FT_Face face.
99 +
100 +---
101 + src/rxvtfont.C | 11 +++++++++++
102 + 1 file changed, 11 insertions(+)
103 +
104 +diff --git a/src/rxvtfont.C b/src/rxvtfont.C
105 +index 90377a7..e80aa63 100644
106 +--- a/src/rxvtfont.C
107 ++++ b/src/rxvtfont.C
108 +@@ -1239,11 +1239,22 @@ rxvt_font_xft::load (const rxvt_fontprop &prop, bool force_prop)
109 +
110 + FT_Face face = XftLockFace (f);
111 +
112 ++/*
113 ++ * use ascent, descent and height from XftFont *f instead of FT_Face face.
114 ++ * this somehow reproduces the behaviour of the line height as seen on xterm.
115 ++
116 + ascent = (face->size->metrics.ascender + 63) >> 6;
117 + descent = (-face->size->metrics.descender + 63) >> 6;
118 + height = max (ascent + descent, (face->size->metrics.height + 63) >> 6);
119 + width = 0;
120 +
121 ++ */
122 ++
123 ++ ascent = f->ascent;
124 ++ descent = f->descent;
125 ++ height = max (ascent + descent, f->height);
126 ++ width = 0;
127 ++
128 + bool scalable = face->face_flags & FT_FACE_FLAG_SCALABLE;
129 +
130 + XftUnlockFace (f);
131 +--
132 +2.21.0
133 +
134
135 diff --git a/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r1.ebuild b/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r1.ebuild
136 new file mode 100644
137 index 0000000..c843400
138 --- /dev/null
139 +++ b/x11-terms/rxvt-unicode/rxvt-unicode-9.22-r1.ebuild
140 @@ -0,0 +1,88 @@
141 +# Copyright 1999-2019 Gentoo Authors
142 +# Distributed under the terms of the GNU General Public License v2
143 +
144 +EAPI=6
145 +inherit autotools eutils
146 +
147 +DESCRIPTION="rxvt clone with xft and unicode support"
148 +HOMEPAGE="http://software.schmorp.de/pkg/rxvt-unicode.html"
149 +SRC_URI="http://dist.schmorp.de/rxvt-unicode/Attic/${P}.tar.bz2"
150 +
151 +LICENSE="GPL-3"
152 +SLOT="0"
153 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
154 +IUSE="
155 + 256-color blink fading-colors +font-styles iso14755 +mousewheel +perl
156 + pixbuf startup-notification unicode3 xft
157 +"
158 +RESTRICT="test"
159 +
160 +RDEPEND="
161 + >=sys-libs/ncurses-5.7-r6:=
162 + kernel_Darwin? ( dev-perl/Mac-Pasteboard )
163 + media-libs/fontconfig
164 + perl? ( dev-lang/perl:= )
165 + pixbuf? ( x11-libs/gdk-pixbuf x11-libs/gtk+:2 )
166 + startup-notification? ( x11-libs/startup-notification )
167 + x11-libs/libX11
168 + x11-libs/libXrender
169 + xft? ( x11-libs/libXft )
170 +"
171 +DEPEND="
172 + ${RDEPEND}
173 + virtual/pkgconfig
174 + x11-base/xorg-proto
175 +"
176 +PATCHES=(
177 + "${FILESDIR}"/${PN}-9.06-case-insensitive-fs.patch
178 + "${FILESDIR}"/${PN}-9.21-xsubpp.patch
179 + "${FILESDIR}"/${PN}-9.22-font-width-fix.patch
180 + "${FILESDIR}"/${PN}-9.22-line-spaceing-fix.patch
181 +)
182 +
183 +src_prepare() {
184 + default
185 +
186 + # kill the rxvt-unicode terminfo file - #192083
187 + sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die "sed failed"
188 +
189 + eautoreconf
190 +}
191 +
192 +src_configure() {
193 + # --enable-everything goes first: the order of the arguments matters
194 + econf \
195 + --enable-everything \
196 + $(use_enable 256-color) \
197 + $(use_enable blink text-blink) \
198 + $(use_enable fading-colors fading) \
199 + $(use_enable font-styles) \
200 + $(use_enable iso14755) \
201 + $(use_enable mousewheel) \
202 + $(use_enable perl) \
203 + $(use_enable pixbuf) \
204 + $(use_enable startup-notification) \
205 + $(use_enable unicode3) \
206 + $(use_enable xft) \
207 + $(use_enable !elibc_musl utmp) \
208 + $(use_enable !elibc_musl wtmp) \
209 + $(use_enable !elibc_musl lastlog)
210 +}
211 +
212 +src_compile() {
213 + default
214 +
215 + sed -i \
216 + -e 's/RXVT_BASENAME = "rxvt"/RXVT_BASENAME = "urxvt"/' \
217 + "${S}"/doc/rxvt-tabbed || die
218 +}
219 +
220 +src_install() {
221 + default
222 +
223 + dodoc \
224 + README.FAQ Changes doc/README* doc/changes.txt doc/etc/* doc/rxvt-tabbed
225 +
226 + make_desktop_entry urxvt rxvt-unicode utilities-terminal \
227 + "System;TerminalEmulator"
228 +}