Gentoo Archives: gentoo-commits

From: "Naohiro Aota (naota)" <naota@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-i18n/mozc: mozc-1.6.1187.102.ebuild ChangeLog
Date: Tue, 02 Oct 2012 02:47:31
Message-Id: 20121002024719.3392B21601@flycatcher.gentoo.org
1 naota 12/10/02 02:47:19
2
3 Modified: ChangeLog
4 Added: mozc-1.6.1187.102.ebuild
5 Log:
6 Version bump. #433730
7
8 (Portage version: 2.2.0_alpha134/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.3 app-i18n/mozc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/mozc/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/mozc/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/mozc/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-i18n/mozc/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 23 Jul 2012 04:20:12 -0000 1.2
24 +++ ChangeLog 2 Oct 2012 02:47:19 -0000 1.3
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-i18n/mozc
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/mozc/ChangeLog,v 1.2 2012/07/23 04:20:12 naota Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/mozc/ChangeLog,v 1.3 2012/10/02 02:47:19 naota Exp $
30 +
31 +*mozc-1.6.1187.102 (02 Oct 2012)
32 +
33 + 02 Oct 2012; <naota@g.o> +mozc-1.6.1187.102.ebuild:
34 + Version bump. #433730
35
36 23 Jul 2012; Naohiro Aota <naota@g.o> mozc-1.3.975.102.ebuild,
37 mozc-1.5.1090.102.ebuild:
38
39
40
41 1.1 app-i18n/mozc/mozc-1.6.1187.102.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/mozc/mozc-1.6.1187.102.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-i18n/mozc/mozc-1.6.1187.102.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mozc-1.6.1187.102.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-i18n/mozc/mozc-1.6.1187.102.ebuild,v 1.1 2012/10/02 02:47:18 naota Exp $
51
52 EAPI="3"
53 PYTHON_DEPEND="2"
54 inherit elisp-common eutils multilib multiprocessing python toolchain-funcs
55
56 DESCRIPTION="The Mozc engine for IBus Framework"
57 HOMEPAGE="http://code.google.com/p/mozc/"
58
59 PROTOBUF_VER="2.4.1"
60 GMOCK_VER="403"
61 MOZC_URL="http://mozc.googlecode.com/files/${P}.tar.bz2"
62 PROTOBUF_URL="http://protobuf.googlecode.com/files/protobuf-${PROTOBUF_VER}.tar.bz2"
63 SRC_URI="${MOZC_URL} ${PROTOBUF_URL}"
64
65 LICENSE="Apache-2.0 BSD Boost-1.0 ipadic public-domain unicode"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="emacs +ibus +qt4 renderer"
69
70 RDEPEND="dev-libs/glib:2
71 dev-libs/openssl
72 x11-libs/libxcb
73 emacs? ( virtual/emacs )
74 ibus? ( >=app-i18n/ibus-1.4.1 )
75 renderer? ( x11-libs/gtk+:2 )
76 qt4? (
77 x11-libs/qt-gui:4
78 app-i18n/zinnia
79 )"
80 DEPEND="${RDEPEND}
81 virtual/pkgconfig"
82
83 BUILDTYPE="${BUILDTYPE:-Release}"
84
85 RESTRICT="test"
86
87 SITEFILE=50${PN}-gentoo.el
88
89 pkg_setup() {
90 python_set_active_version 2
91 }
92
93 src_unpack() {
94 unpack $(basename ${MOZC_URL})
95
96 cd "${S}"/protobuf
97 unpack $(basename ${PROTOBUF_URL})
98 mv protobuf-${PROTOBUF_VER} files
99 }
100
101 src_configure() {
102 local myconf="--channel_dev=0"
103 myconf+=" --server_dir=/usr/$(get_libdir)/mozc"
104
105 if ! use qt4 ; then
106 myconf+=" --noqt"
107 export GYP_DEFINES="use_libzinnia=0"
108 fi
109
110 if ! use renderer ; then
111 export GYP_DEFINES="${GYP_DEFINES} enable_gtk_renderer=0"
112 fi
113
114 "$(PYTHON)" build_mozc.py gyp ${myconf} || die "gyp failed"
115 }
116
117 src_compile() {
118 tc-export CC CXX AR AS RANLIB LD
119
120 local my_makeopts=$(makeopts_jobs)
121 # This is for a safety. -j without a number, makeopts_jobs returns 999.
122 local myjobs=-j${my_makeopts/999/1}
123
124 local mytarget="server/server.gyp:mozc_server"
125 use emacs && mytarget="${mytarget} unix/emacs/emacs.gyp:mozc_emacs_helper"
126 use ibus && mytarget="${mytarget} unix/ibus/ibus.gyp:ibus_mozc"
127 use renderer && mytarget="${mytarget} renderer/renderer.gyp:mozc_renderer"
128 if use qt4 ; then
129 export QTDIR="${EPREFIX}/usr"
130 mytarget="${mytarget} gui/gui.gyp:mozc_tool"
131 fi
132
133 "$(PYTHON)" build_mozc.py build_tools -c "${BUILDTYPE}" ${myjobs} || die
134 "$(PYTHON)" build_mozc.py build -c "${BUILDTYPE}" ${mytarget} ${myjobs} || die
135
136 if use emacs ; then
137 elisp-compile unix/emacs/*.el || die
138 fi
139 }
140
141 src_test() {
142 "$(PYTHON)" build_mozc.py runtests -c "${BUILDTYPE}" || die
143 }
144
145 src_install() {
146 if use emacs ; then
147 dobin "out_linux/${BUILDTYPE}/mozc_emacs_helper" || die
148 elisp-install ${PN} unix/emacs/*.{el,elc} || die
149 elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN} || die
150 fi
151
152 if use ibus ; then
153 exeinto /usr/libexec || die
154 newexe "out_linux/${BUILDTYPE}/ibus_mozc" ibus-engine-mozc || die
155 insinto /usr/share/ibus/component || die
156 doins "out_linux/${BUILDTYPE}/obj/gen/unix/ibus/mozc.xml" || die
157 insinto /usr/share/ibus-mozc || die
158 (
159 cd data/images/unix
160 newins ime_product_icon_opensource-32.png product_icon.png || die
161 for f in ui-*
162 do
163 newins ${f} ${f/ui-} || die
164 done
165 )
166
167 fi
168
169 exeinto "/usr/$(get_libdir)/mozc" || die
170 doexe "out_linux/${BUILDTYPE}/mozc_server" || die
171
172 if use qt4 ; then
173 exeinto "/usr/$(get_libdir)/mozc" || die
174 doexe "out_linux/${BUILDTYPE}/mozc_tool" || die
175 fi
176
177 if use renderer ; then
178 exeinto "/usr/$(get_libdir)/mozc" || die
179 doexe "out_linux/${BUILDTYPE}/mozc_renderer" || die
180 fi
181 }
182
183 pkg_postinst() {
184 if use emacs ; then
185 elisp-site-regen
186 elog "You can use mozc-mode via LEIM (Library of Emacs Input Method)."
187 elog "Write the following settings into your init file (~/.emacs.d/init.el"
188 elog "or ~/.emacs) in order to use mozc-mode by default, or you can call"
189 elog "\`set-input-method' and set \"japanese-mozc\" anytime you have loaded"
190 elog "mozc.el"
191 elog
192 elog " (require 'mozc)"
193 elog " (set-language-environment \"Japanese\")"
194 elog " (setq default-input-method \"japanese-mozc\")"
195 elog
196 elog "Having the above settings, just type C-\\ which is bound to"
197 elog "\`toggle-input-method' by default."
198 fi
199 }
200
201 pkg_postrm() {
202 use emacs && elisp-site-regen
203 }