/[gentoo-x86]/x11-terms/mlterm/mlterm-3.4.5.ebuild
Gentoo

Contents of /x11-terms/mlterm/mlterm-3.4.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Aug 6 07:16:24 2015 UTC (4 years, 5 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for x86, wrt bug #554508

(Portage version: 2.2.20/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

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/mlterm/mlterm-3.4.5.ebuild,v 1.4 2015/08/03 10:59:26 ago Exp $
4
5 EAPI="5"
6
7 inherit autotools-utils eutils
8
9 DESCRIPTION="A multi-lingual terminal emulator"
10 HOMEPAGE="http://mlterm.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/mlterm/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="amd64 hppa ppc ppc64 x86"
16 IUSE="bidi cairo debug fcitx gtk ibus libssh2 m17n-lib nls regis scim static-libs uim utempter xft"
17
18 RDEPEND="x11-libs/libICE
19 x11-libs/libSM
20 x11-libs/libX11
21 bidi? ( dev-libs/fribidi )
22 cairo? ( x11-libs/cairo )
23 fcitx? ( app-i18n/fcitx )
24 gtk? ( x11-libs/gtk+ )
25 ibus? ( app-i18n/ibus )
26 libssh2? ( net-libs/libssh2 )
27 m17n-lib? ( dev-libs/m17n-lib )
28 nls? ( virtual/libintl )
29 regis? (
30 || (
31 media-libs/sdl-ttf
32 media-libs/sdl2-ttf
33 )
34 )
35 scim? ( app-i18n/scim )
36 uim? ( app-i18n/uim )
37 utempter? ( sys-libs/libutempter )
38 xft? ( x11-libs/libXft )"
39 DEPEND="${RDEPEND}
40 virtual/pkgconfig
41 nls? ( sys-devel/gettext )"
42
43 DOCS=( ChangeLog README doc/{en,ja} )
44
45 AUTOTOOLS_PRUNE_LIBTOOL_FILES="all"
46
47 src_prepare() {
48 # default config
49 sed -i \
50 -e "/ icon_path =/aicon_path = ${EPREFIX}/usr/share/pixmaps/mlterm-icon.svg" \
51 -e "/ scrollbar_view_name =/ascrollbar_view_name = sample" \
52 etc/main
53
54 autotools-utils_src_prepare
55 }
56
57 src_configure() {
58 local myeconfargs=(
59 --with-type-engines=xcore$(usex xft ",xft" "")$(usex cairo ",cairo" "")
60 --enable-optimize-redrawing
61 --enable-vt52
62 $(use_enable bidi fribidi)
63 $(use_enable debug)
64 $(use_enable fcitx)
65 $(use_enable ibus)
66 $(use_enable libssh2 ssh2)
67 $(use_enable m17n-lib m17nlib)
68 $(use_enable nls)
69 $(use_enable scim)
70 $(use_enable uim)
71 $(use_enable utempter utmp)
72 )
73
74 local scrollbars="sample,extra"
75 local tools="mlclient,mlcc,mlmenu,mlterm-zoom"
76 if use gtk; then
77 myeconfargs+=(--with-imagelib=gdk-pixbuf)
78 if has_version x11-libs/gtk+:3; then
79 myeconfargs+=(--with-gtk=3.0)
80 else
81 myeconfargs+=(--with-gtk=2.0)
82 fi
83 scrollbars+=",pixmap_engine"
84 tools+=",mlconfig,mlimgloader"
85 fi
86 if use regis; then
87 tools+=",registobmp"
88 fi
89 myeconfargs+=(--with-scrollbars="${scrollbars}")
90 myeconfargs+=(--with-tools="${tools}")
91
92 addpredict /dev/ptmx
93 autotools-utils_src_configure
94 }
95
96 src_test() {
97 :
98 }
99
100 src_install () {
101 autotools-utils_src_install
102 docinto contrib/icon
103 dodoc contrib/icon/README
104
105 doicon contrib/icon/mlterm*
106 make_desktop_entry mlterm mlterm mlterm-icon "System;TerminalEmulator"
107 }

  ViewVC Help
Powered by ViewVC 1.1.20