summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2021-07-12 15:24:23 +0100
committerMarek Szuba <marecki@gentoo.org>2021-07-12 15:32:55 +0100
commitbd5359cbda10c6ba292526e84f09f65dbd6b8bd1 (patch)
tree11eee14bbee919d6377bd78b2b1e425a43f91bcd /x11-terms
parentapp-doc/eclass-manpages: Remove old (diff)
downloadgentoo-bd5359cbda10c6ba292526e84f09f65dbd6b8bd1.tar.gz
gentoo-bd5359cbda10c6ba292526e84f09f65dbd6b8bd1.tar.bz2
gentoo-bd5359cbda10c6ba292526e84f09f65dbd6b8bd1.zip
x11-terms/rxvt-unicode-9.26: only apply 24-bit-colour patch when needed
It's too aggressive, i.e. USE=-24-bit-color doesn't fully disable this feature. Closes: https://bugs.gentoo.org/801571 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/rxvt-unicode/rxvt-unicode-9.26-r2.ebuild (renamed from x11-terms/rxvt-unicode/rxvt-unicode-9.26-r1.ebuild)39
1 files changed, 24 insertions, 15 deletions
diff --git a/x11-terms/rxvt-unicode/rxvt-unicode-9.26-r1.ebuild b/x11-terms/rxvt-unicode/rxvt-unicode-9.26-r2.ebuild
index 4fa68cb62a3e..f439e028a7e1 100644
--- a/x11-terms/rxvt-unicode/rxvt-unicode-9.26-r1.ebuild
+++ b/x11-terms/rxvt-unicode/rxvt-unicode-9.26-r2.ebuild
@@ -36,7 +36,6 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-9.06-case-insensitive-fs.patch
"${FILESDIR}"/${PN}-9.21-xsubpp.patch
- "${WORKDIR}"/${COLOUR_PATCH_NAME}
)
DOCS=(
Changes
@@ -50,6 +49,11 @@ DOCS=(
src_prepare() {
default
+ # Current patch is too aggressive to apply unconditionally, see Bug #801571
+ if use 24-bit-color; then
+ eapply "${WORKDIR}"/${COLOUR_PATCH_NAME}
+ fi
+
# kill the rxvt-unicode terminfo file - #192083
sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die "sed failed"
@@ -59,21 +63,26 @@ src_prepare() {
src_configure() {
# --enable-everything goes first: the order of the arguments matters
- econf --enable-everything \
- $(use_enable 24-bit-color) \
- $(use_enable 256-color) \
- $(use_enable blink text-blink) \
- $(use_enable fading-colors fading) \
- $(use_enable font-styles) \
- $(use_enable gdk-pixbuf pixbuf) \
- $(use_enable iso14755) \
- $(use_enable mousewheel) \
- $(use_enable perl) \
- $(use_enable startup-notification) \
- $(use_enable unicode3) \
- $(use_enable utmp) \
- $(use_enable wtmp) \
+ local myconf=(
+ --enable-everything
+ $(use_enable 256-color)
+ $(use_enable blink text-blink)
+ $(use_enable fading-colors fading)
+ $(use_enable font-styles)
+ $(use_enable gdk-pixbuf pixbuf)
+ $(use_enable iso14755)
+ $(use_enable mousewheel)
+ $(use_enable perl)
+ $(use_enable startup-notification)
+ $(use_enable unicode3)
+ $(use_enable utmp)
+ $(use_enable wtmp)
$(use_enable xft)
+ )
+ if use 24-bit-color; then
+ myconf+=( --enable-24-bit-color )
+ fi
+ econf "${myconf[@]}"
}
src_compile() {