/[gentoo-x86]/x11-terms/rxvt/rxvt-2.7.10-r4.ebuild
Gentoo

Contents of /x11-terms/rxvt/rxvt-2.7.10-r4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon May 5 13:49:38 2008 UTC (10 years, 2 months ago) by ranger
Branch: MAIN
Changes since 1.5: +2 -2 lines
Marking rxvt-2.7.10-r4 ppc for bug 217819
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-terms/rxvt/rxvt-2.7.10-r4.ebuild,v 1.5 2008/05/05 12:04:19 corsair Exp $
4
5 inherit eutils flag-o-matic libtool
6
7 DESCRIPTION="rxvt -- nice small x11 terminal"
8 HOMEPAGE="http://rxvt.sourceforge.net/
9 http://www.giga.it.okayama-u.ac.jp/~ishihara/opensource/"
10 SRC_URI="mirror://sourceforge/rxvt/${P}.tar.gz
11 http://www.giga.it.okayama-u.ac.jp/~ishihara/opensource/${P}-xim-fix.patch.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"
16 IUSE="motif cjk xgetdefault linuxkeys"
17
18 RDEPEND="virtual/libc
19 x11-libs/libX11
20 x11-libs/libXpm
21 x11-libs/libXext
22 motif? ( x11-libs/openmotif )"
23 DEPEND="${RDEPEND}
24 x11-proto/xproto"
25
26 src_unpack() {
27 unpack "${P}.tar.gz"
28 cd "${S}"
29
30 epatch "${FILESDIR}"/${P}-line-scroll.patch
31 epatch "${FILESDIR}"/${P}-asneeded.patch
32 use motif && epatch "${FILESDIR}"/${P}-azz4.diff
33 if use cjk ; then
34 epatch "${DISTDIR}"/${P}-xim-fix.patch.gz
35 if use linguas_ja ; then
36 epatch "${FILESDIR}"/${P}-rk.patch
37 fi
38 fi
39
40 epatch "${FILESDIR}"/${P}-CVE-2008-1142-DISPLAY.patch
41 elibtoolize
42 }
43
44 src_compile() {
45
46 local term
47 if [ -n "${RXVT_TERM}" ] ; then
48 term="${RXVT_TERM}"
49 else
50 term="rxvt"
51 fi
52
53 # bug #22325
54 use linuxkeys && append-flags -DLINUX_KEYS
55
56 econf \
57 --enable-everything \
58 --enable-rxvt-scroll \
59 --enable-next-scroll \
60 --enable-xterm-scroll \
61 --enable-transparency \
62 --enable-xpm-background \
63 --enable-utmp \
64 --enable-wtmp \
65 --enable-mousewheel \
66 --enable-slipwheeling \
67 --enable-smart-resize \
68 --enable-256-color \
69 --enable-menubar \
70 $(use_enable cjk languages) \
71 --enable-xim \
72 --enable-shared \
73 --enable-keepscrolling \
74 --with-term=${term} \
75 $(use_enable xgetdefault) || die
76
77 emake || die
78 }
79
80 src_install() {
81
82 einstall mandir="${D}"/usr/share/man/man1 || die
83
84 cd "${S}"/doc
85 dodoc README* *.txt BUGS FAQ
86 dohtml *.html
87 }
88
89 pkg_postinst() {
90
91 einfo
92 einfo "If you want to change default TERM variable other than rxvt,"
93 einfo "set RXVT_TERM environment variable and then emerge rxvt."
94 einfo "Especially, if you use rxvt under monochrome X you might need to run"
95 einfo "\t RXVT_TERM=rxvt-basic emerge rxvt"
96 einfo "otherwise curses based program will not work."
97 einfo
98 }

  ViewVC Help
Powered by ViewVC 1.1.20