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