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