Gentoo Archives: gentoo-commits

From: Akinori Hattori <hattya@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/mlterm/files/, x11-terms/mlterm/
Date: Sun, 18 Jun 2017 13:07:14
Message-Id: 1497791173.deddb81bac426fdcb2fd2d98c5a99b41c53c28c8.hattya@gentoo
1 commit: deddb81bac426fdcb2fd2d98c5a99b41c53c28c8
2 Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 18 13:06:13 2017 +0000
4 Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 18 13:06:13 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deddb81b
7
8 x11-terms/mlterm: new upstream release
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11
12 x11-terms/mlterm/Manifest | 1 +
13 x11-terms/mlterm/files/mlterm-font.patch | 17 +++++
14 x11-terms/mlterm/mlterm-3.8.1.ebuild | 121 +++++++++++++++++++++++++++++++
15 3 files changed, 139 insertions(+)
16
17 diff --git a/x11-terms/mlterm/Manifest b/x11-terms/mlterm/Manifest
18 index bd66c64e914..dd4f78ed478 100644
19 --- a/x11-terms/mlterm/Manifest
20 +++ b/x11-terms/mlterm/Manifest
21 @@ -1 +1,2 @@
22 DIST mlterm-3.8.0.tar.gz 3756779 SHA256 6be0165fe43dc45099c4b37303fcca918e5dd07c5b0abb1fd4e35c8d73e9bf01 SHA512 86d163aaf24668dea77e54ff775cb448c6c699bcc82e1d84fe9a9fbed90d9c834ee3e61348de77713b2dbd229b37b76d2be817d788710f224cd5c53e7f93049f WHIRLPOOL b189d06d420a42ded64e84c17158c21d3968353ac69bc1027bc1895a2eccc21cafe402d6b4f9497ca652d436ecc51c99ce8287ec96790e75d526facd7a830558
23 +DIST mlterm-3.8.1.tar.gz 3789935 SHA256 464fa3a76ea562e38945067003c68e5ce320b60063f412bff01cb6a0f5c5d6d9 SHA512 fd57ffefb9f96a58bb63751cc06b3381e0b3d5b50c5023cbd95fa5dc0351f958a783f6eabbf71b6625774312d03c5284db957c47f83f5352ae594d0e4864c52e WHIRLPOOL 5db8da0598b0419bca47448eb6471aed7ba2d57511d31944c41a26333f697b758c0a002b12ee60f5e4bebd61dedfbeea12ce90122fd7d66293c2906e7153ea17
24
25 diff --git a/x11-terms/mlterm/files/mlterm-font.patch b/x11-terms/mlterm/files/mlterm-font.patch
26 new file mode 100644
27 index 00000000000..205a748a04a
28 --- /dev/null
29 +++ b/x11-terms/mlterm/files/mlterm-font.patch
30 @@ -0,0 +1,17 @@
31 +--- a/uitoolkit/fb/ui_font.c
32 ++++ b/uitoolkit/fb/ui_font.c
33 +@@ -1625,11 +1625,11 @@
34 + }
35 + percent = 0;
36 + #else /* __linux__ */
37 +- if (stat("/usr/share/fonts/X11/misc/unifont.pcf.gz", &st) == 0) {
38 +- font_file = "/usr/share/fonts/X11/misc/unifont.pcf.gz";
39 ++ if (stat("/usr/share/fonts/unifont/unifont.pcf.gz", &st) == 0) {
40 ++ font_file = "/usr/share/fonts/unifont/unifont.pcf.gz";
41 + percent = 100;
42 + } else {
43 +- font_file = "/usr/share/fonts/X11/misc/10x20.pcf.gz";
44 ++ font_file = "/usr/share/fonts/misc/10x20.pcf.gz";
45 + percent = 0;
46 + }
47 + #endif
48
49 diff --git a/x11-terms/mlterm/mlterm-3.8.1.ebuild b/x11-terms/mlterm/mlterm-3.8.1.ebuild
50 new file mode 100644
51 index 00000000000..a90ee67d69c
52 --- /dev/null
53 +++ b/x11-terms/mlterm/mlterm-3.8.1.ebuild
54 @@ -0,0 +1,121 @@
55 +# Copyright 1999-2017 Gentoo Foundation
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI="6"
59 +
60 +inherit eutils
61 +
62 +DESCRIPTION="A multi-lingual terminal emulator"
63 +HOMEPAGE="http://mlterm.sourceforge.net/"
64 +SRC_URI="mirror://sourceforge/mlterm/${P}.tar.gz"
65 +
66 +LICENSE="BSD"
67 +SLOT="0"
68 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
69 +IUSE="bidi cairo canna debug fbcon fcitx freewnn gtk ibus libssh2 m17n-lib nls regis scim skk static-libs uim utempter xft"
70 +
71 +RDEPEND="x11-libs/libICE
72 + x11-libs/libSM
73 + x11-libs/libX11
74 + bidi? ( dev-libs/fribidi )
75 + cairo? ( x11-libs/cairo[X] )
76 + canna? ( app-i18n/canna )
77 + fbcon? ( media-fonts/unifont )
78 + fcitx? ( app-i18n/fcitx )
79 + freewnn? ( app-i18n/freewnn )
80 + gtk? ( >=x11-libs/gtk+-2:= )
81 + ibus? ( app-i18n/ibus )
82 + libssh2? ( net-libs/libssh2 )
83 + m17n-lib? ( dev-libs/m17n-lib )
84 + nls? ( virtual/libintl )
85 + regis? (
86 + || (
87 + media-libs/sdl-ttf
88 + media-libs/sdl2-ttf
89 + )
90 + )
91 + scim? ( app-i18n/scim )
92 + skk? (
93 + || (
94 + virtual/skkserv
95 + app-i18n/skk-jisyo
96 + )
97 + )
98 + uim? ( app-i18n/uim )
99 + utempter? ( sys-libs/libutempter )
100 + xft? ( x11-libs/libXft )"
101 +DEPEND="${RDEPEND}
102 + virtual/pkgconfig
103 + nls? ( sys-devel/gettext )"
104 +
105 +PATCHES=( "${FILESDIR}"/${PN}-font.patch )
106 +DOCS=( doc/{en,ja} )
107 +
108 +src_prepare() {
109 + # default config
110 + sed -i \
111 + -e "/ icon_path =/aicon_path = ${EPREFIX}/usr/share/pixmaps/mlterm-icon.svg" \
112 + -e "/ scrollbar_view_name =/ascrollbar_view_name = sample" \
113 + etc/main
114 +
115 + default
116 +}
117 +
118 +src_configure() {
119 + local myconf=(
120 + $(use_enable bidi fribidi)
121 + $(use_enable canna)
122 + $(use_enable debug)
123 + $(use_enable fcitx)
124 + $(use_enable freewnn wnn)
125 + $(use_enable ibus)
126 + $(use_enable libssh2 ssh2)
127 + $(use_enable m17n-lib m17nlib)
128 + $(use_enable nls)
129 + $(use_enable scim)
130 + $(use_enable skk)
131 + $(use_enable uim)
132 + $(use_enable utempter utmp)
133 + --with-gui=xlib$(usex fbcon ",fb" "")
134 + --with-type-engines=xcore$(usex xft ",xft" "")$(usex cairo ",cairo" "")
135 + --enable-optimize-redrawing
136 + --enable-vt52
137 + --disable-static
138 + )
139 +
140 + local scrollbars="sample,extra"
141 + local tools="mlclient,mlcc,mlfc,mlmenu,mlterm-zoom"
142 + if use gtk; then
143 + myconf+=( --with-imagelib=gdk-pixbuf )
144 + if has_version x11-libs/gtk+:3; then
145 + myconf+=( --with-gtk=3.0 )
146 + else
147 + myconf+=( --with-gtk=2.0 )
148 + fi
149 + scrollbars+=",pixmap_engine"
150 + tools+=",mlconfig,mlimgloader"
151 + fi
152 + if use regis; then
153 + tools+=",registobmp"
154 + fi
155 + myconf+=( --with-scrollbars="${scrollbars}" )
156 + myconf+=( --with-tools="${tools}" )
157 +
158 + addpredict /dev/ptmx
159 + econf "${myconf[@]}"
160 +}
161 +
162 +src_test() {
163 + :
164 +}
165 +
166 +src_install () {
167 + default
168 + prune_libtool_files
169 +
170 + docinto contrib/icon
171 + dodoc contrib/icon/README
172 +
173 + doicon contrib/icon/mlterm*
174 + make_desktop_entry mlterm mlterm mlterm-icon "System;TerminalEmulator"
175 +}