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