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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Jun 27 12:40:29 2015 UTC (4 years, 6 months ago) by hattya
Branch: MAIN
CVS Tags: HEAD
new upstream release

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

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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 canna debug fcitx freewnn 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 canna? ( app-i18n/canna )
24 fcitx? ( app-i18n/fcitx )
25 freewnn? ( app-i18n/freewnn )
26 gtk? ( >=x11-libs/gtk+-2 )
27 ibus? ( app-i18n/ibus )
28 libssh2? ( net-libs/libssh2 )
29 m17n-lib? ( dev-libs/m17n-lib )
30 nls? ( virtual/libintl )
31 regis? (
32 || (
33 media-libs/sdl-ttf
34 media-libs/sdl2-ttf
35 )
36 )
37 scim? ( app-i18n/scim )
38 uim? ( app-i18n/uim )
39 utempter? ( sys-libs/libutempter )
40 xft? ( x11-libs/libXft )"
41 DEPEND="${RDEPEND}
42 virtual/pkgconfig
43 nls? ( sys-devel/gettext )"
44
45 DOCS=( ChangeLog README doc/{en,ja} )
46
47 AUTOTOOLS_PRUNE_LIBTOOL_FILES="all"
48
49 src_prepare() {
50 # default config
51 sed -i \
52 -e "/ icon_path =/aicon_path = ${EPREFIX}/usr/share/pixmaps/mlterm-icon.svg" \
53 -e "/ scrollbar_view_name =/ascrollbar_view_name = sample" \
54 etc/main
55
56 autotools-utils_src_prepare
57 }
58
59 src_configure() {
60 local myeconfargs=(
61 --with-type-engines=xcore$(usex xft ",xft" "")$(usex cairo ",cairo" "")
62 --enable-optimize-redrawing
63 --enable-vt52
64 $(use_enable bidi fribidi)
65 $(use_enable canna)
66 $(use_enable debug)
67 $(use_enable fcitx)
68 $(use_enable freewnn wnn)
69 $(use_enable ibus)
70 $(use_enable libssh2 ssh2)
71 $(use_enable m17n-lib m17nlib)
72 $(use_enable nls)
73 $(use_enable scim)
74 $(use_enable uim)
75 $(use_enable utempter utmp)
76 )
77
78 local scrollbars="sample,extra"
79 local tools="mlclient,mlcc,mlmenu,mlterm-zoom"
80 if use gtk; then
81 myeconfargs+=(--with-imagelib=gdk-pixbuf)
82 if has_version x11-libs/gtk+:3; then
83 myeconfargs+=(--with-gtk=3.0)
84 else
85 myeconfargs+=(--with-gtk=2.0)
86 fi
87 scrollbars+=",pixmap_engine"
88 tools+=",mlconfig,mlimgloader"
89 fi
90 if use regis; then
91 tools+=",registobmp"
92 fi
93 myeconfargs+=(--with-scrollbars="${scrollbars}")
94 myeconfargs+=(--with-tools="${tools}")
95
96 addpredict /dev/ptmx
97 autotools-utils_src_configure
98 }
99
100 src_test() {
101 :
102 }
103
104 src_install () {
105 autotools-utils_src_install
106 docinto contrib/icon
107 dodoc contrib/icon/README
108
109 doicon contrib/icon/mlterm*
110 make_desktop_entry mlterm mlterm mlterm-icon "System;TerminalEmulator"
111 }
112
113 pkg_postinst() {
114 elog "The 'use_scrollbar' option was renamed to 'use_mdi'."
115 }

  ViewVC Help
Powered by ViewVC 1.1.20