/[gentoo-x86]/x11-terms/rxvt-unicode/rxvt-unicode-9.15.ebuild
Gentoo

Contents of /x11-terms/rxvt-unicode/rxvt-unicode-9.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Mon May 21 18:08:18 2012 UTC (3 years ago) by xarthisius
Branch: MAIN
Changes since 1.13: +2 -2 lines
Add missing inheritance of eutils.eclass

(Portage version: 2.2.0_alpha104/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-terms/rxvt-unicode/rxvt-unicode-9.15.ebuild,v 1.13 2012/05/03 07:11:35 jdhore Exp $
4
5 EAPI="4"
6
7 inherit autotools eutils
8
9 DESCRIPTION="rxvt clone with xft and unicode support"
10 HOMEPAGE="http://software.schmorp.de/pkg/rxvt-unicode.html"
11 SRC_URI="http://dist.schmorp.de/rxvt-unicode/Attic/${P}.tar.bz2"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris"
16 IUSE="
17 256-color alt-font-width afterimage blink buffer-on-clear +focused-urgency
18 fading-colors +font-styles iso14755 +mousewheel +perl pixbuf secondary-wheel
19 startup-notification xft unicode3 +vanilla wcwidth
20 "
21
22 RDEPEND="
23 >=sys-libs/ncurses-5.7-r6
24 afterimage? ( || ( media-libs/libafterimage x11-wm/afterstep ) )
25 kernel_Darwin? ( dev-perl/Mac-Pasteboard )
26 media-libs/fontconfig
27 perl? ( dev-lang/perl )
28 pixbuf? ( x11-libs/gdk-pixbuf x11-libs/gtk+:2 )
29 startup-notification? ( x11-libs/startup-notification )
30 x11-libs/libX11
31 x11-libs/libXrender
32 xft? ( x11-libs/libXft )
33 "
34 DEPEND="
35 ${RDEPEND}
36 virtual/pkgconfig
37 x11-proto/xproto
38 "
39
40 REQUIRED_USE="vanilla? ( !alt-font-width !buffer-on-clear focused-urgency !secondary-wheel !wcwidth )"
41
42 src_prepare() {
43 # fix for prefix not installing properly
44 epatch "${FILESDIR}"/${PN}-9.06-case-insensitive-fs.patch
45
46 if ! use afterimage && ! use pixbuf; then
47 einfo " + If you want transparency support, please enable either the *pixbuf*"
48 einfo " or the *afterimage* USE flag. Enabling both will default to pixbuf."
49 fi
50
51 if ! use vanilla; then
52 ewarn " + You are going to include unsupported third-party bug fixes/features."
53
54 use wcwidth && epatch doc/wcwidth.patch
55
56 # bug #240165
57 use focused-urgency || epatch "${FILESDIR}"/${PN}-9.06-no-urgency-if-focused.diff
58
59 # bug #263638
60 epatch "${FILESDIR}"/${PN}-9.06-popups-hangs.patch
61
62 # bug #237271
63 epatch "${FILESDIR}"/${PN}-9.05_no-MOTIF-WM-INFO.patch
64
65 # support for wheel scrolling on secondary screens
66 use secondary-wheel && epatch "${FILESDIR}"/${PN}-9.14-secondary-wheel.patch
67
68 # ctrl-l buffer fix
69 use buffer-on-clear && epatch "${FILESDIR}"/${PN}-9.14-clear.patch
70
71 use alt-font-width && epatch "${FILESDIR}"/${PN}-9.06-font-width.patch
72 fi
73
74 # kill the rxvt-unicode terminfo file - #192083
75 sed -i -e "/rxvt-unicode.terminfo/d" doc/Makefile.in || die "sed failed"
76
77 eautoreconf
78 }
79
80 src_configure() {
81 local myconf=''
82
83 use iso14755 || myconf='--disable-iso14755'
84
85 econf --enable-everything \
86 $(use_enable 256-color) \
87 $(use_enable afterimage) \
88 $(use_enable blink text-blink) \
89 $(use_enable fading-colors fading) \
90 $(use_enable font-styles) \
91 $(use_enable mousewheel) \
92 $(use_enable perl) \
93 $(use_enable pixbuf) \
94 $(use_enable startup-notification) \
95 $(use_enable xft) \
96 $(use_enable unicode3) \
97 ${myconf}
98 }
99
100 src_compile() {
101 emake || die "emake failed"
102
103 sed -i \
104 -e 's/RXVT_BASENAME = "rxvt"/RXVT_BASENAME = "urxvt"/' \
105 "${S}"/doc/rxvt-tabbed || die "tabs sed failed"
106 }
107
108 src_install() {
109 make DESTDIR="${D}" install || die
110
111 dodoc README.FAQ Changes
112 cd "${S}"/doc
113 dodoc README* changes.txt etc/* rxvt-tabbed
114
115 make_desktop_entry urxvt rxvt-unicode utilities-terminal TerminalEmulator
116 }
117
118 pkg_postinst() {
119 if use buffer-on-clear; then
120 ewarn "You have enabled the buffer-on-clear USE flag."
121 ewarn "Please note that, although this works well for most prompts,"
122 ewarn "there have been cases with fancy prompts, like bug #397829,"
123 ewarn "where it caused issues. Proceed with caution."
124 ewarn " (keep this terminal open until you make sure it works)"
125 fi
126 if use secondary-wheel; then
127 elog "You have enabled the secondary-wheel USE flag."
128 elog "This allows you to scroll in secondary screens"
129 elog "(like mutt's message list/view) using the mouse wheel."
130 elog
131 elog "To actually enable the feature you have to add"
132 elog " URxvt*secondaryWheel: true"
133 elog "in your ~/.Xdefaults file"
134 fi
135 }

  ViewVC Help
Powered by ViewVC 1.1.20