/[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.9 - (show annotations) (download)
Wed Oct 24 19:49:13 2012 UTC (2 years, 7 months ago) by ulm
Branch: MAIN
Changes since 1.8: +3 -3 lines
Update dependency after package move from x11-libs/openmotif to x11-libs/motif.

(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

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/rxvt-2.7.10-r4.ebuild,v 1.8 2010/10/10 20:02:29 ulm Exp $
4
5 EAPI=1
6
7 inherit eutils flag-o-matic libtool
8
9 DESCRIPTION="rxvt -- nice small x11 terminal"
10 HOMEPAGE="http://rxvt.sourceforge.net/
11 http://www.giga.it.okayama-u.ac.jp/~ishihara/opensource/"
12 SRC_URI="mirror://sourceforge/rxvt/${P}.tar.gz
13 http://www.giga.it.okayama-u.ac.jp/~ishihara/opensource/${P}-xim-fix.patch.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"
18 IUSE="motif cjk xgetdefault linuxkeys"
19
20 RDEPEND="x11-libs/libX11
21 x11-libs/libXpm
22 x11-libs/libXext
23 motif? ( >=x11-libs/motif-2.3:0 )"
24 DEPEND="${RDEPEND}
25 x11-proto/xproto"
26
27 src_unpack() {
28 unpack "${P}.tar.gz"
29 cd "${S}"
30
31 epatch "${FILESDIR}"/${P}-line-scroll.patch
32 epatch "${FILESDIR}"/${P}-asneeded.patch
33 use motif && epatch "${FILESDIR}"/${P}-azz4.diff
34 if use cjk ; then
35 epatch "${DISTDIR}"/${P}-xim-fix.patch.gz
36 if use linguas_ja ; then
37 epatch "${FILESDIR}"/${P}-rk.patch
38 fi
39 fi
40
41 epatch "${FILESDIR}"/${P}-CVE-2008-1142-DISPLAY.patch
42 elibtoolize
43 }
44
45 src_compile() {
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 einstall mandir="${D}"/usr/share/man/man1 || die
82
83 cd "${S}"/doc
84 dodoc README* *.txt BUGS FAQ
85 dohtml *.html
86 }
87
88 pkg_postinst() {
89 einfo
90 einfo "If you want to change default TERM variable other than rxvt,"
91 einfo "set RXVT_TERM environment variable and then emerge rxvt."
92 einfo "Especially, if you use rxvt under monochrome X you might need to run"
93 einfo "\t RXVT_TERM=rxvt-basic emerge rxvt"
94 einfo "otherwise curses based program will not work."
95 einfo
96 }

  ViewVC Help
Powered by ViewVC 1.1.20