Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/rxvt-unicode/
Date: Wed, 29 Mar 2017 03:17:49
Message-Id: 1490757455.8f555cef8d2fba348176b9e16cab883a370f4225.jer@gentoo
1 commit: 8f555cef8d2fba348176b9e16cab883a370f4225
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 29 03:12:57 2017 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 29 03:17:35 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f555cef
7
8 x11-terms/rxvt-unicode: Update live ebuild.
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 x11-terms/rxvt-unicode/rxvt-unicode-9999.ebuild | 77 +++++--------------------
13 1 file changed, 16 insertions(+), 61 deletions(-)
14
15 diff --git a/x11-terms/rxvt-unicode/rxvt-unicode-9999.ebuild b/x11-terms/rxvt-unicode/rxvt-unicode-9999.ebuild
16 index 0c3f347b03e..43645a40943 100644
17 --- a/x11-terms/rxvt-unicode/rxvt-unicode-9999.ebuild
18 +++ b/x11-terms/rxvt-unicode/rxvt-unicode-9999.ebuild
19 @@ -1,7 +1,7 @@
20 -# Copyright 1999-2016 Gentoo Foundation
21 +# Copyright 1999-2017 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=5
25 +EAPI=6
26 inherit autotools cvs eutils
27
28 DESCRIPTION="rxvt clone with xft and unicode support"
29 @@ -14,12 +14,10 @@ LICENSE="GPL-3"
30 SLOT="0"
31 KEYWORDS=""
32 IUSE="
33 - 256-color alt-font-width blink buffer-on-clear +focused-urgency
34 - fading-colors +font-styles iso14755 +mousewheel +perl pixbuf secondary-wheel
35 - startup-notification xft unicode3 +vanilla wcwidth
36 + 256-color blink fading-colors +font-styles iso14755 +mousewheel +perl
37 + pixbuf startup-notification xft unicode3
38 "
39 RESTRICT="test"
40 -REQUIRED_USE="vanilla? ( !alt-font-width !buffer-on-clear focused-urgency !secondary-wheel !wcwidth )"
41
42 RDEPEND="
43 media-libs/fontconfig
44 @@ -39,44 +37,19 @@ DEPEND="
45 "
46
47 S=${WORKDIR}/${PN}
48 +PATCHES=(
49 + "${FILESDIR}"/${PN}-9.06-case-insensitive-fs.patch
50 + "${FILESDIR}"/${PN}-9.21-xsubpp.patch
51 +
52 +)
53
54 src_prepare() {
55 ecvs_clean
56
57 - # fix for prefix not installing properly
58 - epatch \
59 - "${FILESDIR}"/${PN}-9.06-case-insensitive-fs.patch \
60 - "${FILESDIR}"/${PN}-9.21-xsubpp.patch
61 -
62 - if ! use vanilla; then
63 - ewarn "You are going to include unsupported third-party bug fixes/features."
64 - ewarn "If you want even more control over patches, then set USE=vanilla"
65 - ewarn "and store your patch set in /etc/portage/patches/${CATEGORY}/${PF}/"
66 -
67 - use wcwidth && epatch doc/wcwidth.patch
68 -
69 - # bug #240165
70 - use focused-urgency || epatch "${FILESDIR}"/${PN}-9.06-no-urgency-if-focused.diff
71 -
72 - # bug #263638
73 - epatch "${FILESDIR}"/${PN}-9.06-popups-hangs.patch
74 -
75 - # bug #237271
76 - epatch "${FILESDIR}"/${PN}-9.05_no-MOTIF-WM-INFO.patch
77 -
78 - # support for wheel scrolling on secondary screens
79 - use secondary-wheel && epatch "${FILESDIR}"/${PN}-9.19-secondary-wheel.patch
80 -
81 - # ctrl-l buffer fix
82 - use buffer-on-clear && epatch "${FILESDIR}"/${PN}-9.14-clear.patch
83 -
84 - use alt-font-width && epatch "${FILESDIR}"/${PN}-9.06-font-width.patch
85 - fi
86 -
87 # kill the rxvt-unicode terminfo file - #192083
88 - sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die "sed failed"
89 + sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die
90
91 - epatch_user
92 + eapply_user
93
94 eautoreconf
95 }
96 @@ -86,26 +59,27 @@ src_configure() {
97
98 use iso14755 || myconf='--disable-iso14755'
99
100 + # --enable-everything goes first: the order of the arguments matters
101 econf --enable-everything \
102 $(use_enable 256-color) \
103 $(use_enable blink text-blink) \
104 $(use_enable fading-colors fading) \
105 $(use_enable font-styles) \
106 + $(use_enable iso14755) \
107 $(use_enable mousewheel) \
108 $(use_enable perl) \
109 $(use_enable pixbuf) \
110 $(use_enable startup-notification) \
111 - $(use_enable xft) \
112 $(use_enable unicode3) \
113 - ${myconf}
114 + $(use_enable xft)
115 }
116
117 src_compile() {
118 - emake || die "emake failed"
119 + default
120
121 sed -i \
122 -e 's/RXVT_BASENAME = "rxvt"/RXVT_BASENAME = "urxvt"/' \
123 - "${S}"/doc/rxvt-tabbed || die "tabs sed failed"
124 + "${S}"/doc/rxvt-tabbed || die
125 }
126
127 src_install() {
128 @@ -117,22 +91,3 @@ src_install() {
129 make_desktop_entry urxvt rxvt-unicode utilities-terminal \
130 "System;TerminalEmulator"
131 }
132 -
133 -pkg_postinst() {
134 - if use buffer-on-clear; then
135 - ewarn "You have enabled the buffer-on-clear USE flag."
136 - ewarn "Please note that, although this works well for most prompts,"
137 - ewarn "there have been cases with fancy prompts, like bug #397829,"
138 - ewarn "where it caused issues. Proceed with caution."
139 - ewarn " (keep this terminal open until you make sure it works)"
140 - fi
141 - if use secondary-wheel; then
142 - elog "You have enabled the secondary-wheel USE flag."
143 - elog "This allows you to scroll in secondary screens"
144 - elog "(like mutt's message list/view or nano) using the mouse wheel."
145 - elog
146 - elog "To actually enable the feature you have to add"
147 - elog " URxvt*secondaryWheel: true"
148 - elog "in your ~/.Xdefaults file"
149 - fi
150 -}