blob: 1e3e48d6bfeb6e05e9af5a065857a2a4d021cf67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-terms/mlterm/mlterm-3.0.1.ebuild,v 1.1 2010/06/29 16:23:19 matsuu Exp $
EAPI="2"
inherit eutils
IUSE="bidi imlib gtk m17n-lib nls scim truetype uim"
#IUSE="${IUSE} iiimf"
DESCRIPTION="A multi-lingual terminal emulator"
HOMEPAGE="http://mlterm.sourceforge.net/"
SRC_URI="mirror://sourceforge/mlterm/${P}.tar.gz"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
LICENSE="BSD"
RDEPEND="virtual/utempter
x11-libs/libX11
x11-libs/libICE
x11-libs/libSM
gtk? ( x11-libs/gtk+:2 )
!gtk? ( imlib? ( media-libs/imlib2 ) )
truetype? ( x11-libs/libXft )
bidi? ( >=dev-libs/fribidi-0.10.4 )
nls? ( virtual/libintl )
uim? ( >=app-i18n/uim-1.0 )
scim? ( >=app-i18n/scim-1.4 )
m17n-lib? ( >=dev-libs/m17n-lib-1.2.0 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig
nls? ( sys-devel/gettext )"
src_prepare() {
epatch "${FILESDIR}"/${PN}-2.9.4-uim15-fix.patch
cd "${S}"/xwindow
epatch "${FILESDIR}"/${PN}-2.9.1-gentoo.diff
}
src_configure() {
local myconf
if use gtk ; then
myconf="${myconf} --with-imagelib=gdk-pixbuf"
else
if use imlib ; then
myconf="${myconf} --with-imagelib=imlib2"
else
myconf="${myconf} --with-imagelib=''"
fi
myconf="${myconf} --with-tools=mlclient,mlcc"
fi
# iiimf isn't stable enough
#myconf="${myconf} $(use_enable iiimf)"
econf --enable-utmp \
$(use_enable truetype anti-alias) \
$(use_enable bidi fribidi) \
$(use_enable nls) \
$(use_enable uim) \
$(use_enable scim) \
$(use_enable m17n-lib m17nlib) \
${myconf} || die "econf failed"
}
src_install () {
emake DESTDIR="${D}" install || die
doicon contrib/icon/mlterm* || die
make_desktop_entry mlterm mlterm mlterm-icon TerminalEmulator || die
dodoc ChangeLog README || die
docinto ja
dodoc doc/ja/* || die
docinto en
dodoc doc/en/* || die
}
|