blob: 3506a02237838709498aaa60bc37c5cff7d10b33 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-terms/mlterm/mlterm-2.8.0_p1-r1.ebuild,v 1.3 2003/11/29 16:34:47 usata Exp $
IUSE="truetype gnome gtk gtk2 imlib bidi nls"
MY_P="${P/_p?/}"
PATCH_P="${P/_p/pl}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="A multi-lingual terminal emulator"
HOMEPAGE="http://mlterm.sourceforge.net/"
SRC_URI="mirror://sourceforge/mlterm/${MY_P}.tar.gz
mirror://sourceforge/mlterm/${PATCH_P}.tar.gz"
SLOT="0"
KEYWORDS="x86 ppc"
LICENSE="BSD"
DEPEND="gnome? ( gtk? ( gtk2? ( =x11-libs/gtk+-2* ) ) :
( >=media-libs/gdk-pixbuf-0.18.0 ) )
!gnome? ( imlib? >=media-libs/imlib-1.9.14 : virtual/x11 )
gtk? ( =x11-libs/gtk+-1.2* )
truetype? ( =media-libs/freetype-2* )
bidi? ( >=dev-libs/fribidi-0.10.4 )
nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${WORKDIR}/${PATCH_P}/${PATCH_P}.patch
}
src_compile() {
local myconf imagelib
if [ -n "`use gnome`" ] ; then
if [ -n "`use gtk`" -a -n "`use gtk2`" ] ; then
imagelib="gdk-pixbuf2"
else
imagelib="gdk-pixbuf1"
fi
elif [ -n "`use imlib`" ] ; then
imagelib="imlib"
fi
use gtk || myconf="${myconf} --with-tools=mlclient,mlcc"
econf --enable-utmp \
`use_enable truetype anti-alias` \
`use_enable bidi fribidi` \
`use_enable nls` \
--with-imagelib=${imagelib} \
${myconf} || die "econf failed"
emake || die "emake failed"
}
src_install () {
einstall || die
dodoc ChangeLog LICENCE README
docinto ja
dodoc doc/ja/*
docinto en
dodoc doc/en/*
}
|