/[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.8 - (hide annotations) (download)
Sun Oct 10 20:02:29 2010 UTC (8 years, 2 months ago) by ulm
Branch: MAIN
Changes since 1.7: +5 -3 lines
Fix openmotif dependency. Change EAPI to 1.

(Portage version: 2.1.9.14/cvs/Linux x86_64)

1 ulm 1.8 # Copyright 1999-2010 Gentoo Foundation
2 hoffie 1.1 # Distributed under the terms of the GNU General Public License v2
3 ulm 1.8 # $Header: /var/cvsroot/gentoo-x86/x11-terms/rxvt/rxvt-2.7.10-r4.ebuild,v 1.7 2009/09/23 15:02:37 ssuominen Exp $
4    
5     EAPI=1
6 hoffie 1.1
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 ranger 1.6 KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"
18 hoffie 1.1 IUSE="motif cjk xgetdefault linuxkeys"
19    
20 ssuominen 1.7 RDEPEND="x11-libs/libX11
21 hoffie 1.1 x11-libs/libXpm
22     x11-libs/libXext
23 ulm 1.8 motif? ( >=x11-libs/openmotif-2.3:0 )"
24 hoffie 1.1 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