diff options
author | Naohiro Aota <naota@gentoo.org> | 2013-05-04 03:21:10 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2013-05-04 03:21:10 +0000 |
commit | f6d3b279f70a366997636f895b0d1c15dd88aa79 (patch) | |
tree | 4b078a91c573145772d4e6af9785c30a03f3cb15 /app-i18n/mozc | |
parent | Add ~x86-fbsd #465136 (diff) | |
download | historical-f6d3b279f70a366997636f895b0d1c15dd88aa79.tar.gz historical-f6d3b279f70a366997636f895b0d1c15dd88aa79.tar.bz2 historical-f6d3b279f70a366997636f895b0d1c15dd88aa79.zip |
Version bump wrt #465204
Package-Manager: portage-2.2.0_alpha171/cvs/Linux x86_64
Manifest-Sign-Key: 0xF8551514
Diffstat (limited to 'app-i18n/mozc')
-rw-r--r-- | app-i18n/mozc/ChangeLog | 8 | ||||
-rw-r--r-- | app-i18n/mozc/Manifest | 37 | ||||
-rw-r--r-- | app-i18n/mozc/files/mozc-1.10.1390.102-drop-Werror.patch | 12 | ||||
-rw-r--r-- | app-i18n/mozc/mozc-1.10.1390.102.ebuild | 175 |
4 files changed, 215 insertions, 17 deletions
diff --git a/app-i18n/mozc/ChangeLog b/app-i18n/mozc/ChangeLog index 34c4ee1a9691..ad9286481404 100644 --- a/app-i18n/mozc/ChangeLog +++ b/app-i18n/mozc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-i18n/mozc # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/mozc/ChangeLog,v 1.4 2013/03/02 19:28:02 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-i18n/mozc/ChangeLog,v 1.5 2013/05/04 03:20:57 naota Exp $ + +*mozc-1.10.1390.102 (04 May 2013) + + 04 May 2013; Naohiro Aota <naota@gentoo.org> + +files/mozc-1.10.1390.102-drop-Werror.patch, +mozc-1.10.1390.102.ebuild: + Version bump wrt #465204 02 Mar 2013; Markos Chandras <hwoarang@gentoo.org> mozc-1.3.975.102.ebuild, mozc-1.5.1090.102.ebuild, mozc-1.6.1187.102.ebuild: diff --git a/app-i18n/mozc/Manifest b/app-i18n/mozc/Manifest index 731175cdb756..1760b1aaab7a 100644 --- a/app-i18n/mozc/Manifest +++ b/app-i18n/mozc/Manifest @@ -2,33 +2,38 @@ Hash: SHA256 AUX 50mozc-gentoo.el 121 SHA256 833039439dea484a430e832df869b3af0b8d42bae63c4d6999e72c97d55d897b SHA512 2d67a6723374872717ab7132f02f4030f00ddecabb8a1fc20c9d69d64406dc2ba2a1109734378fae7b4718a8ae9601beff4b6f27cb43a280fa2e0f946da70685 WHIRLPOOL b9e5235177ee432509c9428b632a1148e8788c1bf9b6fe57bbc4f3f747a038008ef4752a1dfacb86a5be9a018504405e6a68053dd54d381af1fd9170ba9c6ed7 +AUX mozc-1.10.1390.102-drop-Werror.patch 353 SHA256 894411a2dc704157661cc7386abf32b62abea9dc5621bc30474ce3161c54adf7 SHA512 203066f08a5094306d09c3c58f81bfb7a4069bb1eacd31f0d257701a4560adee5452a516351cd9bc5ea7227e40d31bbc6eb177422d3c37514f7573398b389bc2 WHIRLPOOL 0a3cdabbc653c42403fa60d9486927a8b4d9c2003262b973a4f4264424331a02a8fb3c413a736e797525e57f25b12a7ba2fb328ff7a7684b4bb2533f35b2ba96 AUX mozc-1.2.809.102-gentoo.patch 652 SHA256 2a06a2f9430a1e1407288d535c41b54b6cef1e9488b92e484f8d4cb86eeb0494 SHA512 2289f38bf9790b5c3cb9396a284afb31f8b1d083148cf2bbfdfc23897033acf4445b4e421161d412a89a58e031f39cdb6fa141b3dc5c8eb9cc68e56a4d19f179 WHIRLPOOL e0e9fccc93af82683c8285cf0d9d2495a9273c4b8a2dbf41bd0ca6eaf7ccd1a470a6c507cf1134d689808a48596c23f51ed9cfdecb3d13ddcb9921e1f3cdc33e AUX mozc-1.3.975.102-ibus-1.4.patch 2048 SHA256 4f205c990e2f447bf1bdea8a820f90361a69cf9883d1ea902d6ae097a18fb291 SHA512 8fea1256155f99ab31f7ab6e29e9244c4e112710c52c73fc78c48aa622dbca36906916ff877d3c9416ee4e2d5d8d33ca9be1af1430217599696efa18c3e63001 WHIRLPOOL 89c7b02a692b500ea31b79c34e2d3b403b315d0c9ac13fd73eaf1eb7ecb12a728e40574f3c6efc69fd86afbda3ba664c3a8eb2ec3f2305d2afb370d9a13de548 +DIST gmock-1.6.0.zip 2053682 SHA256 341ad07c31c619ba32c88c2265bc23693da1df062f47f146a7ed340f646d82b7 SHA512 7adff00bb6ff81a6ffb704be71d0747636d69e24b4a8b709e1fb8c177a9a47f6dea8d14fde73034ebfb1529c291c7212a944ad92a34f88abdfe23c2d0b11b6f7 WHIRLPOOL 1a03ff8f2d96287f5deb24f970688f20f3480e77a4a71089ef1399a87f28f616bf0feaedc217e7ac1ca8ca1246e53f5d882f350704be111ae547961949939530 +DIST gtest-1.6.0.zip 1121697 SHA256 5ec97df8e75b4ee796604e74716d1b50582beba22c5502edd055a7e67a3965d8 SHA512 f4718dfbfa3339bb9449c3f14e5b44ae405ea7df64c10a0957a6300985b71c4642981d069a1382e27ae041a4e2873527a9e442aff978447e795a190f99fac115 WHIRLPOOL 745a49020d4353ed2fa38adfc80bbd777358c831719bbe3b7c90d243f84256615222ba5f04d48d98b9e1a803bb40766799b3aedd575024c19d853d9239a12f8a +DIST jsoncpp-src-0.6.0-rc2.tar.gz 117661 SHA256 d4d193d163f520b08b9155cba978615892ca1359d77e3fb261fce2f86d09b283 SHA512 5d44e766aa2d7657bc68cf16173130febaa6744d5fca0c6df5465617a3f306023a17cbeb07a62ad1a34c2d183d916401b4be48f37c2416c895db4ad5d9481b3d WHIRLPOOL bfa7e70e14f3ed0911c5127da0d2099ca8b9159a900a5bc5147d1e50b5a9f9d5be69a8d46a761d277ca1edabaab8d0d3b9f81417572e4664ed8239fd83c953e6 +DIST mozc-1.10.1390.102.tar.bz2 57879881 SHA256 72a8ed6657daa1c03b1efe50c262a69be2ab66d45747a47df6e54996b6d5ee39 SHA512 4482e822f8a14bffd02cb1eaa5d14ba0a213266b2f0dd6402c42b9b357bf0d8c4dd572cef79f1d400bd68b7bd6cb4367933574f8f5967f68738249a300e3cfb9 WHIRLPOOL 90518e621ef784b438fcf677e211fdb6753719f3d78d14ce866ccea22d6d87f8d64e334bc568eebe93cb2850d3d545eb0b73d6f6de820eaf1d43f16bfdef4100 DIST mozc-1.3.975.102.tar.bz2 55961505 SHA256 1ee57425c159bc0066645f086472f72aa16567fe5be272f35339c41e9a52d27a SHA512 dd26382f69820fd7a662c02a157dfcb382020cf15d0bcd613e9015d6142241c46c73755f28cdd23e2c07740dbddad65714474e84759c1313d6a1ffe84f3dc176 WHIRLPOOL b786924fa2c7ad5381ce35f565b320fb63cda4d03f35ce5b6878a4193adf52c22aebe06c953de8ba8f281a08ec2bf7583c26a684f94fa5c4ba73b5bec3a7f577 DIST mozc-1.5.1090.102.tar.bz2 54911799 SHA256 b52c1879c4749041032578ec6c591d9741f521d54993070c050d09ae35bd2107 SHA512 9901e58af10c67025dd030bd70c3b7d6be34b1e868aefcc0705a18f1b3e76394e4a4b36811df2e598ee1647ecd1f24ddcfe87db889863a5095c31a5680833fec WHIRLPOOL d503fd0c7c2871288d887d834996a53952591eb25ed57a5ef789347a8bf8e39ecc54fb408d53daa3a9018848d52b28bc77c964e202a3479d582529ffc021b598 DIST mozc-1.6.1187.102.tar.bz2 54828375 SHA256 2a9b54275400c768e14156e7654e9b9a4ca27353573627607c70d221c0e2db65 SHA512 0f182316e80baa8c3d268a266398bd2abad4db9ed54bba351b275681d17ef6fd5348d3b66fd95201028c38f29de293f124b9c4f45a5818f20faf17b1eea495ff WHIRLPOOL fb064dd78471d2060871f905cb1c81fd9c52cc15741493aad26df49db4259709860593b65586a6c44893a6454fd7f2d27815739e1525f1c8fd0cf9eb0efff92a DIST protobuf-2.4.1.tar.bz2 1440188 SHA256 cf8452347330834bbf9c65c2e68b5562ba10c95fa40d4f7ec0d2cb332674b0bf SHA512 52b0208c685e44126cb3915a74bde692ef91430f0407144b6c30b72a9f143b1ee4f1eea47a550184c689a1758b92582e7f26f0683c2d387205b957a69830f2f3 WHIRLPOOL e5462ff35f63413aff58640c24b9b561ac55749c489803ae009de21bf5d954a77516714361353ef02cfeb3c2d762620c89dc08a5fdee571e3a33b6f5c20edf6e +DIST protobuf-2.5.0.tar.bz2 1866763 SHA256 13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 SHA512 5994b3669808b82fef5c860ecad36358c0767f84acac877e7bfcf722e59d972835a955714149bdd4158fbd1328a51d01397a563991d26475351ee72be48142ee WHIRLPOOL 7e6786e1f20bf253d0e386a95c2bbfe1b443f484d492f97552cadcea62c24461436aa88130e3ff20b4dc9f352c101458cb8c03686f1cc4e6e2133b6e78f5b70d +EBUILD mozc-1.10.1390.102.ebuild 4919 SHA256 fd66cab2b1ce5c0b4cb3c2391d60816a99565853eefae759b5c1872b6030a222 SHA512 7059d220e47cc65ef5932c2b56da194a523ada2ba65c475fdd80553f87e2ead1d317bf58107f09d4f42842c97f38065cccbfd9be9e4a65cd0e50b49c0731eb1f WHIRLPOOL 7efb1eddaaa60a4aa7e7d2cada4fa44b8af37242e1539d590bb2dbdc6c26a564c7b2bfbcbbc24dc9ec76d36368f0684be5119cbe0c2359b0be33f0dd84f5e065 EBUILD mozc-1.3.975.102.ebuild 4383 SHA256 281dca5a4704df212a07e616db4779f9f241c600c4c026d8092a6604a5388d09 SHA512 34e6be151e59f79232b7bd352081f87b061841d26238a5e737c1b4be96d0206fd9d73c2dfd0623eb4efcff4610da604faa00dced14d21e6a4cc84e52110f1022 WHIRLPOOL cbf87dc98060bf4a86112ab1aff0c1571d3acd478f84d83b8e5885100833a8ec963e5c0c95eaa4218c141824d11b6c773a5a2b78acaaa304763e1557930710d2 EBUILD mozc-1.5.1090.102.ebuild 4833 SHA256 de99a5e45ecc8bc3b4d279495cd7befa08367660a71f36bf8fc34e5548b1197b SHA512 b420913dafd09e3b7cfea4d10d9a8c89fade2928e36c1fb072089d7f1ddc833634e72ef1b22e845a0f280d8def928982756119b32fd97a14b073f2d0a7a867cc WHIRLPOOL 7549a42e848ed58b343c5c6491e62addb505d75a2bfe8e06a0afde235c2151ffe0d0883de9d8046b3f2abfbb5981a33ec36b765d2baa875f9206a1040a605fcd EBUILD mozc-1.6.1187.102.ebuild 4164 SHA256 5cae4c0b185c35852a15213b12fcf12270bc1dbdb03f3515995095fa594e39ac SHA512 8af02bd6a4fcf628c4b43d768ff768d995f53909ec2837e2106d977c462170f3942b3e446ab8b50e0f0f962a8d988fe47fcb07b5d40e3b5707b9c474c5baf292 WHIRLPOOL bca8d2db9320f91dfe860b1e40fd96229eafbbef94b8a61b44e1968396328bf5c4e6a494dc18075d325a5fe28affc12bedb5e7ac02f1948695abb23fa3cfcb28 -MISC ChangeLog 6720 SHA256 053a12469b8c02eb57812fbb97cbf5eac4abaf25c0ba653c34266fe4c8f3d35b SHA512 6efa754bf42f51e35aa5c02ff333b06d6d430ac3dd97f514a19beae00ed145507862012b7ed806add06b7b532feecc23c33a9b9fb3dc4da115a5c0ea28a4c828 WHIRLPOOL 621472dac2a3b0811d2d562eaec64ca10785a0b1ac303c86f7f1572b0d5edb33309db32723724ecdd41e9873dd21a4ac5064f2b24a39443afdc84035e6e4fde2 +MISC ChangeLog 6902 SHA256 75f1a718f5f31e0597933fc8bbdcb1654109c9012ad33ccae317aa076b0a653c SHA512 1733af3c9b1c8dec910ff39f60024f17ab50efffa342c592c40a2cf92cd54a0af2183f82c758e44e2271350563558e7c42eb609c62dbd8b792a17c4a7a5ed6d2 WHIRLPOOL fa7fefc48a124e1c0d42febd0de5800d5ab0acca12712cce27a71dbfdf8c071cb2181b9ea132748b7811dc98ab2295d4726afa2856f3300136181fb6ae5e5c7f MISC metadata.xml 603 SHA256 e77d3254c53a7546df4dcde995975b713e7b7c1819e6361a98b8e0d1be183190 SHA512 5890a0bfd8e9a8584468a7bd8cd162e2135a6ca2f3c39a9a2da7bb3b1c64f77f18578241c4013da83dddf6af68817ebb02438d317996f8e712f4b6a17bf07c93 WHIRLPOOL 438f87eb3a1d199d931e0fadfad91e847f3f8e6f376e7b3d317ef2c77f278006078addee4162fd7816c81b75ca8a378bcec84e0f441c3bf73b89e95b6a38bcc3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQJ8BAEBCABmBQJRMlLCXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw -OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun88MNMP/1M2LVKx1F/e0LBfr1RbewX4 -cfE/WHx28MqJCVELwWXZJ44tbl2DIZh40qGScKf9B1EJ+ybBK1oTvXMBm6EbKPe0 -hZtY0gGivmK6NIFx23AIJgsuDA0KTOnhBr1odmf0Le0Q187HFbqmMl6fWW4xXpxn -jxmVgVCuS3HShqDyOnfXw42R/hY+hzfOuCY9/Ky1JxSrcRzMQEKqTGRsfXrzL0aA -cdr1mPr/tnEPsQV79KAs9ODvNvp6/ym6nwWkK18SqvB4xhoS6medsyYzicY6VY/F -uViCnDVNX/iiRIMDWgiBCpiRrb6tUfCn5YoGTPL/oN4tgqBer7BxwuQNtnrWqRz0 -ZxS4W7QtetnyZz+bLeBo9DmZt3Wu1dsW7/3tsTYAPaIJ2qdNoaItJJNXoiHPwAel -Qu/81OGK1s5N/QXVBtvAsg0IRpqQkcZDEVBTvIQx4Xyz3YpTvQtwUoFckrdA9Qqo -MZVneK/Fiuy4b9gTV4a4Zioi8ToYVqFVst4Ysb4Gjj2VYowLqq0wT++HwxzrMiaB -ZUfpF8vcTrrkf+AIOWff+x/JMgnieFeU11mZ52uOYWM+bvjpjf/AwgqzwPh786p7 -VNhYONvF12OUHF8s6F+YmKj2CjmTjwciLX+v7QcBmAFydB7L4t7bSzzk2HkrUzIq -pGBu5nyfP5pdmD0EI/RV -=9+E+ +iQIcBAEBCAAGBQJRhH6aAAoJEDYO1FT4VRUUT/wQAJNJdcCmGmrRMxB0KCQFqhcW +OMUwx09cgB4WBbXXtOs64yCNMPzVTU1vDP0qkHEEaFaXVdyHCUD4Yj3+6s2sNoOb +agT4cc+vuQvf7V3Mm/pg3/MZvTFEscN6r9IL/O8D8xBSVAxKNXIB00UgTbRvBYT0 +W0GKQ8n5fO4uo+6a4mx+blpA16xdU4017abiqSJJ621BRVm+rUN/wxGxnVFo5ItU +TgedZWI91B96T2IBxTg2E5W/52v5qGYEUPaY6RPdDevdowmOYIzrxY/XpCmT/fXX +CfxZF5rl/kVrs7KtQSmR0LL635K3y+V6LOTacmzzrJpqx63yB3MGTHG5kGTdbhF1 +xzhMwd293WP/sjs88KUxATjKvyoTBgMgy0jZLh8g9TB99Q9QdLcjvzG4n3VcA6l3 +pvCEIR5VPxtFdcYR2orGxmBJkNrFHrzmhLwQEBNeOjA5hkxqUTCNVJx6c9USnt7w +000m7ekHiF2HXBNJ5wcJ6fqIXkz6QbAAxoiLy3zg1vG1cu2P/HyDIVGAtKASDzMk +fxP1VF3/+a7GbNbLHu8jJqRgOFgpAqR4FzfAXG5BxVTe9tEAyk3x2T+3fnokxtLX +sykB3dmwTOgq2PRtqSPcH5yHVy3kNhTbJB3JQjIbrR7wswHo+zOzBQVOFI5nMFhR +Jv7n6HhPPwAHe22/e6QV +=Cxx+ -----END PGP SIGNATURE----- diff --git a/app-i18n/mozc/files/mozc-1.10.1390.102-drop-Werror.patch b/app-i18n/mozc/files/mozc-1.10.1390.102-drop-Werror.patch new file mode 100644 index 000000000000..e254f38b8745 --- /dev/null +++ b/app-i18n/mozc/files/mozc-1.10.1390.102-drop-Werror.patch @@ -0,0 +1,12 @@ +diff --git a/gyp/common.gypi b/gyp/common.gypi +index 6c176ff..3613b1b 100755 +--- a/gyp/common.gypi ++++ b/gyp/common.gypi +@@ -58,7 +58,6 @@ + # warning_cflags will be shared with Mac and Linux. + 'warning_cflags': [ + '-Wall', +- '-Werror', + '-Wno-char-subscripts', + '-Wno-sign-compare', + '-Wno-deprecated-declarations', diff --git a/app-i18n/mozc/mozc-1.10.1390.102.ebuild b/app-i18n/mozc/mozc-1.10.1390.102.ebuild new file mode 100644 index 000000000000..fb5b91b50fd4 --- /dev/null +++ b/app-i18n/mozc/mozc-1.10.1390.102.ebuild @@ -0,0 +1,175 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/mozc/mozc-1.10.1390.102.ebuild,v 1.1 2013/05/04 03:20:57 naota Exp $ + +EAPI="5" +PYTHON_COMPAT=( python{2_6,2_7} ) +inherit elisp-common eutils multilib multiprocessing python-single-r1 toolchain-funcs + +DESCRIPTION="The Mozc engine for IBus Framework" +HOMEPAGE="http://code.google.com/p/mozc/" + +PROTOBUF_VER="2.5.0" +GMOCK_VER="1.6.0" +GTEST_VER="1.6.0" +JSONCPP_VER="0.6.0-rc2" +MOZC_URL="http://mozc.googlecode.com/files/${P}.tar.bz2" +PROTOBUF_URL="http://protobuf.googlecode.com/files/protobuf-${PROTOBUF_VER}.tar.bz2" +GMOCK_URL="https://googlemock.googlecode.com/files/gmock-${GMOCK_VER}.zip" +GTEST_URL="https://googletest.googlecode.com/files/gtest-${GTEST_VER}.zip" +JSONCPP_URL="mirror://sourceforge/jsoncpp/jsoncpp-src-${JSONCPP_VER}.tar.gz" +SRC_URI="${MOZC_URL} ${PROTOBUF_URL} + test? ( ${GMOCK_URL} ${GTEST_URL} ${JSONCPP_URL} )" + +LICENSE="Apache-2.0 BSD Boost-1.0 ipadic public-domain unicode" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="emacs +ibus +qt4 renderer test" + +RDEPEND="dev-libs/glib:2 + dev-libs/openssl + x11-libs/libxcb + emacs? ( virtual/emacs ) + ibus? ( >=app-i18n/ibus-1.4.1 ) + renderer? ( x11-libs/gtk+:2 ) + qt4? ( + dev-qt/qtgui:4 + app-i18n/zinnia + ) + ${PYTHON_DEPS}" +DEPEND="${RDEPEND} + ~dev-libs/protobuf-2.4.1 + virtual/pkgconfig" + +BUILDTYPE="${BUILDTYPE:-Release}" + +RESTRICT="test" + +SITEFILE=50${PN}-gentoo.el + +src_unpack() { + unpack $(basename ${MOZC_URL}) + + cd "${S}"/protobuf + unpack $(basename ${PROTOBUF_URL}) + mv protobuf-${PROTOBUF_VER} files || die + + if use test; then + cd "${S}"/third_party + unpack $(basename ${GMOCK_URL}) $(basename ${GTEST_URL}) \ + $(basename ${JSONCPP_URL}) + mv gmock-${GMOCK_VER} gmock || die + mv gtest-${GTEST_VER} gtest || die + mv jsoncpp-src-${JSONCPP_VER} jsoncpp || die + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-drop-Werror.patch +} + +src_configure() { + local myconf="--server_dir=/usr/$(get_libdir)/mozc" + + if ! use qt4 ; then + myconf+=" --noqt" + export GYP_DEFINES="use_libzinnia=0" + fi + + if ! use renderer ; then + export GYP_DEFINES="${GYP_DEFINES} enable_gtk_renderer=0" + fi + + # export GYP_DEFINES="${GYP_DEFINES} use_libprotobuf=1" + + "${PYTHON}" build_mozc.py gyp ${myconf} || die "gyp failed" +} + +src_compile() { + tc-export CC CXX AR AS RANLIB LD + + local my_makeopts=$(makeopts_jobs) + # This is for a safety. -j without a number, makeopts_jobs returns 999. + local myjobs=-j${my_makeopts/999/1} + + local mytarget="server/server.gyp:mozc_server" + use emacs && mytarget="${mytarget} unix/emacs/emacs.gyp:mozc_emacs_helper" + use ibus && mytarget="${mytarget} unix/ibus/ibus.gyp:ibus_mozc" + use renderer && mytarget="${mytarget} renderer/renderer.gyp:mozc_renderer" + if use qt4 ; then + export QTDIR="${EPREFIX}/usr" + mytarget="${mytarget} gui/gui.gyp:mozc_tool" + fi + + V=1 "${PYTHON}" build_mozc.py build_tools -c "${BUILDTYPE}" ${myjobs} || die + V=1 "${PYTHON}" build_mozc.py build -c "${BUILDTYPE}" ${mytarget} ${myjobs} || die + + if use emacs ; then + elisp-compile unix/emacs/*.el || die + fi +} + +src_test() { + tc-export CC CXX AR AS RANLIB LD + V=1 "${PYTHON}" build_mozc.py runtests -c "${BUILDTYPE}" || die +} + +src_install() { + if use emacs ; then + dobin "out_linux/${BUILDTYPE}/mozc_emacs_helper" || die + elisp-install ${PN} unix/emacs/*.{el,elc} || die + elisp-site-file-install "${FILESDIR}/${SITEFILE}" ${PN} || die + fi + + if use ibus ; then + exeinto /usr/libexec || die + newexe "out_linux/${BUILDTYPE}/ibus_mozc" ibus-engine-mozc || die + insinto /usr/share/ibus/component || die + doins "out_linux/${BUILDTYPE}/obj/gen/unix/ibus/mozc.xml" || die + insinto /usr/share/ibus-mozc || die + ( + cd data/images/unix + newins ime_product_icon_opensource-32.png product_icon.png || die + for f in ui-* + do + newins ${f} ${f/ui-} || die + done + ) + + fi + + exeinto "/usr/$(get_libdir)/mozc" || die + doexe "out_linux/${BUILDTYPE}/mozc_server" || die + + if use qt4 ; then + exeinto "/usr/$(get_libdir)/mozc" || die + doexe "out_linux/${BUILDTYPE}/mozc_tool" || die + fi + + if use renderer ; then + exeinto "/usr/$(get_libdir)/mozc" || die + doexe "out_linux/${BUILDTYPE}/mozc_renderer" || die + fi +} + +pkg_postinst() { + if use emacs ; then + elisp-site-regen + elog "You can use mozc-mode via LEIM (Library of Emacs Input Method)." + elog "Write the following settings into your init file (~/.emacs.d/init.el" + elog "or ~/.emacs) in order to use mozc-mode by default, or you can call" + elog "\`set-input-method' and set \"japanese-mozc\" anytime you have loaded" + elog "mozc.el" + elog + elog " (require 'mozc)" + elog " (set-language-environment \"Japanese\")" + elog " (setq default-input-method \"japanese-mozc\")" + elog + elog "Having the above settings, just type C-\\ which is bound to" + elog "\`toggle-input-method' by default." + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |