1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 DESCRIPTION="A multi-lingual terminal emulator"
9 HOMEPAGE="http://mlterm.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
14 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
15 IUSE="bidi brltty cairo canna debug fbcon fcitx freewnn gtk gtk2 harfbuzz ibus libssh2 m17n-lib nls regis scim skk static-libs uim utempter wayland xft"
16 REQUIRED_USE="gtk2? ( gtk )"
18 RDEPEND="x11-libs/libICE
21 bidi? ( dev-libs/fribidi )
22 brltty? ( app-accessibility/brltty )
23 cairo? ( x11-libs/cairo[X(+)] )
24 canna? ( app-i18n/canna )
25 fbcon? ( media-fonts/unifont )
26 fcitx? ( app-i18n/fcitx )
27 freewnn? ( app-i18n/freewnn )
29 gtk2? ( x11-libs/gtk+:2 )
30 !gtk2? ( x11-libs/gtk+:3 )
32 harfbuzz? ( media-libs/harfbuzz[truetype(+)] )
33 ibus? ( app-i18n/ibus )
34 libssh2? ( net-libs/libssh2 )
35 m17n-lib? ( dev-libs/m17n-lib )
36 nls? ( virtual/libintl )
43 scim? ( app-i18n/scim )
51 utempter? ( sys-libs/libutempter )
52 wayland? ( dev-libs/wayland )
53 xft? ( x11-libs/libXft )"
56 nls? ( sys-devel/gettext )"
58 PATCHES=( "${FILESDIR}"/${PN}-font.patch )
64 -e "/ icon_path =/aicon_path = ${EPREFIX}/usr/share/pixmaps/${PN}-icon.svg" \
65 -e "/ scrollbar_view_name =/ascrollbar_view_name = sample" \
73 $(use_enable bidi fribidi)
74 $(use_enable brltty brlapi)
78 $(use_enable freewnn wnn)
79 $(use_enable harfbuzz otl)
81 $(use_enable libssh2 ssh2)
82 $(use_enable m17n-lib m17nlib)
87 $(use_enable utempter utmp)
88 --with-gui=xlib$(usex fbcon ",fb" "")$(usex wayland ",wayland" "")
89 --with-type-engines=xcore$(usex xft ",xft" "")$(usex cairo ",cairo" "")
90 --enable-optimize-redrawing
95 local scrollbars="sample,extra"
96 local tools="mlclient,mlcc,mlfc,mlmenu,${PN}-zoom"
99 $(use_with gtk gtk $(usex gtk2 2.0 3.0))
100 --with-imagelib=gdk-pixbuf
102 scrollbars+=",pixmap_engine"
103 tools+=",mlconfig,mlimgloader"
108 myconf+=( --with-scrollbars="${scrollbars}" )
109 myconf+=( --with-tools="${tools}" )
121 find "${ED}" -name '*.la' -delete || die
124 dodoc contrib/icon/README
126 doicon contrib/icon/${PN}*
127 make_desktop_entry ${PN} ${PN} ${PN}-icon "System;TerminalEmulator"