/[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.10 - (show annotations) (download)
Wed May 15 12:45:49 2013 UTC (5 years, 4 months ago) by xmw
Branch: MAIN
Changes since 1.9: +5 -3 lines
Respect AR (bug 468174)

(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

1 # Copyright 1999-2013 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.9 2012/10/24 19:49:13 ulm Exp $
4
5 EAPI=1
6
7 inherit eutils flag-o-matic libtool toolchain-funcs
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 tc-export AR
32
33 epatch "${FILESDIR}"/${P}-line-scroll.patch
34 epatch "${FILESDIR}"/${P}-asneeded.patch
35 use motif && epatch "${FILESDIR}"/${P}-azz4.diff
36 if use cjk ; then
37 epatch "${DISTDIR}"/${P}-xim-fix.patch.gz
38 if use linguas_ja ; then
39 epatch "${FILESDIR}"/${P}-rk.patch
40 fi
41 fi
42
43 epatch "${FILESDIR}"/${P}-CVE-2008-1142-DISPLAY.patch
44 elibtoolize
45 }
46
47 src_compile() {
48 local term
49 if [ -n "${RXVT_TERM}" ] ; then
50 term="${RXVT_TERM}"
51 else
52 term="rxvt"
53 fi
54
55 # bug #22325
56 use linuxkeys && append-flags -DLINUX_KEYS
57
58 econf \
59 --enable-everything \
60 --enable-rxvt-scroll \
61 --enable-next-scroll \
62 --enable-xterm-scroll \
63 --enable-transparency \
64 --enable-xpm-background \
65 --enable-utmp \
66 --enable-wtmp \
67 --enable-mousewheel \
68 --enable-slipwheeling \
69 --enable-smart-resize \
70 --enable-256-color \
71 --enable-menubar \
72 $(use_enable cjk languages) \
73 --enable-xim \
74 --enable-shared \
75 --enable-keepscrolling \
76 --with-term=${term} \
77 $(use_enable xgetdefault) || die
78
79 emake || die
80 }
81
82 src_install() {
83 einstall mandir="${D}"/usr/share/man/man1 || die
84
85 cd "${S}"/doc
86 dodoc README* *.txt BUGS FAQ
87 dohtml *.html
88 }
89
90 pkg_postinst() {
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