/[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.12 - (show annotations) (download)
Fri Feb 20 14:41:26 2015 UTC (3 years, 2 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +9 -14 lines
Bump EAPI.

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

1 # Copyright 1999-2015 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.11 2014/08/30 12:07:41 mgorny Exp $
4
5 EAPI=5
6
7 inherit eutils flag-o-matic libtool toolchain-funcs
8
9 DESCRIPTION="A 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_prepare() {
28 tc-export AR
29
30 epatch "${FILESDIR}"/${P}-line-scroll.patch\
31 "${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 local term
46 if [ -n "${RXVT_TERM}" ] ; then
47 term="${RXVT_TERM}"
48 else
49 term="rxvt"
50 fi
51
52 # bug #22325
53 use linuxkeys && append-flags -DLINUX_KEYS
54
55 econf \
56 --enable-everything \
57 --enable-rxvt-scroll \
58 --enable-next-scroll \
59 --enable-xterm-scroll \
60 --enable-transparency \
61 --enable-xpm-background \
62 --enable-utmp \
63 --enable-wtmp \
64 --enable-mousewheel \
65 --enable-slipwheeling \
66 --enable-smart-resize \
67 --enable-256-color \
68 --enable-menubar \
69 $(use_enable cjk languages) \
70 --enable-xim \
71 --enable-shared \
72 --enable-keepscrolling \
73 --with-term=${term} \
74 $(use_enable xgetdefault)
75 }
76
77 src_install() {
78 emake DESTDIR="${D}" install
79
80 cd "${S}"/doc
81 dodoc README* *.txt BUGS FAQ
82 dohtml *.html
83 }
84
85 pkg_postinst() {
86 einfo
87 einfo "If you want to change default TERM variable other than rxvt,"
88 einfo "set RXVT_TERM environment variable and then emerge rxvt."
89 einfo "Especially, if you use rxvt under monochrome X you might need to run"
90 einfo "\t RXVT_TERM=rxvt-basic emerge rxvt"
91 einfo "otherwise curses based program will not work."
92 einfo
93 }

  ViewVC Help
Powered by ViewVC 1.1.20