summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorponsfoot2016-10-16 22:47:27 +0900
committerponsfoot2016-10-16 22:47:27 +0900
commit58cdc56cc23a39820185b3f029f6c54977a4419c (patch)
treecc386c2fcc0405e5736b0ce8057892d027fb3616
downloadaur-58cdc56cc23a39820185b3f029f6c54977a4419c.tar.gz
First commit
-rw-r--r--.SRCINFO97
-rw-r--r--EDICT_license.html399
-rw-r--r--PKGBUILD301
-rw-r--r--emacs-mozc.install14
-rwxr-xr-xmod-generate-dictionary.sh32
-rw-r--r--mozc-ut.install26
-rwxr-xr-xuim-mozc.install19
7 files changed, 888 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..af1e64693c30
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,97 @@
+# Generated by mksrcinfo v8
+# 日 10月 16 13:41:45 UTC 2016
+pkgbase = mozc-ut2
+ pkgdesc = Mozc the Japanese Input Method with Mozc UT2 Dictionary (additional dictionary) and uim-mozc (optional)
+ pkgver = 2.18.2612.102.20161013
+ pkgrel = 1
+ url = http://www.geocities.jp/ep3797/mozc-ut2.html
+ arch = i686
+ arch = x86_64
+ license = BSD
+ license = GPL
+ license = CC-BY-SA
+ license = custom
+ makedepends = python2
+ makedepends = ruby
+ makedepends = git
+ makedepends = ninja
+ makedepends = clang
+ makedepends = ibus>=1.4.1
+ makedepends = uim
+ depends = qt4
+ depends = zinnia
+ source = mozc::git+https://github.com/google/mozc.git#commit=2315f957d1785130c2ed196e141a330b0857b065
+ source = http://downloads.sourceforge.net/project/pnsft-aur/mozc/mozcdic-ut2-20161013.tar.bz2
+ source = http://downloads.sourceforge.net/project/pnsft-aur/mozc/edict-20161013.gz
+ source = EDICT_license.html
+ source = http://downloads.sourceforge.net/project/pnsft-aur/mozc/ken_all-201609.zip
+ source = http://downloads.sourceforge.net/project/pnsft-aur/mozc/jigyosyo-201609.zip
+ source = mod-generate-dictionary.sh
+ source = http://downloads.sourceforge.net/project/pnsft-aur/mozc/uim-mozc-321.3ea28b1.tar.xz
+ sha1sums = SKIP
+ sha1sums = 75efebc621fe57a5bc490b7faa1f5c556bfd7b07
+ sha1sums = 478eb5f982656ff80d45e123c16d88a2b9e110b3
+ sha1sums = e0ba18e67c1be8e3cfb8ecb30760597b215da255
+ sha1sums = c8085904b2326363667831131c0921b004a66bad
+ sha1sums = 3d012569963b9359d2d267216f78c1a07a395065
+ sha1sums = 083a175815080500fc480d9d8af2ee1e39f528f1
+ sha1sums = 22b7c2a5b0a7fef778ee72ebe5873a75e879d26b
+
+pkgname = mozc-ut2
+ pkgdesc = Mozc the Japanese Input Method with Mozc UT2 Dictionary
+ install = mozc-ut.install
+ arch = i686
+ arch = x86_64
+ groups = mozc-im
+ depends = qt4
+ depends = zinnia
+ optdepends = tegaki-models-zinnia-japanese: hand-writing recognition support
+ provides = mozc=
+ conflicts = mozc
+ conflicts = mozc-server
+ conflicts = mozc-utils-gui
+ conflicts = mozc-ut
+ replaces = mozc-server-ut
+ replaces = mozc-utils-gui-ut
+ replaces = mozc-ut
+
+pkgname = ibus-mozc-ut2
+ pkgdesc = IBus engine module for Mozc
+ arch = i686
+ arch = x86_64
+ groups = mozc-im
+ depends = mozc=
+ depends = ibus>=1.4.1
+ provides = ibus-mozc
+ conflicts = ibus-mozc
+ conflicts = ibus-mozc-ut
+ replaces = ibus-mozc-ut
+
+pkgname = uim-mozc-ut2
+ pkgdesc = uim plugin module for Mozc
+ install = uim-mozc.install
+ arch = i686
+ arch = x86_64
+ groups = mozc-im
+ depends = mozc=
+ depends = uim
+ provides = uim-mozc
+ conflicts = uim-mozc
+ conflicts = uim-mozc-ut
+ replaces = uim-mozc-ut
+
+pkgname = emacs-mozc-ut2
+ pkgdesc = Mozc for Emacs
+ install = emacs-mozc.install
+ arch = i686
+ arch = x86_64
+ groups = mozc-im
+ depends = mozc=
+ depends = emacs
+ provides = emacs-mozc
+ conflicts = emacs-mozc
+ conflicts = emacs-mozc-bin
+ conflicts = emacs-mozc-ut
+ replaces = emacs-mozc-bin
+ replaces = emacs-mozc-ut
+
diff --git a/EDICT_license.html b/EDICT_license.html
new file mode 100644
index 000000000000..c1c801cce693
--- /dev/null
+++ b/EDICT_license.html
@@ -0,0 +1,399 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+<HEAD>
+<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
+<META NAME="Generator" CONTENT="Jim's Markup Program - V0.99">
+<TITLE>ELECTRONIC DICTIONARY RESEARCH AND DEVELOPMENT GROUP</TITLE>
+</HEAD>
+<BODY BGCOLOR="white">
+<!-- DO NOT EDIT!!
+This HTML document was generated by the "markup" program.
+Edit the original file instead. -->
+<center>
+<IMG SRC="edrdg.jpg" ALT="EDRDG"><BR>
+</center>
+<H1 ALIGN=CENTER> ELECTRONIC DICTIONARY RESEARCH AND DEVELOPMENT GROUP</H1>
+<H1 ALIGN=CENTER> GENERAL DICTIONARY LICENCE STATEMENT</H1>
+<BASEFONT SIZE="3">
+<P ALIGN="JUSTIFY">
+ <a HREF="index.html">EDRDG Home Page </a>
+</P>
+<P ALIGN="JUSTIFY">
+<B>1. Introduction</B>
+</P>
+<P ALIGN="JUSTIFY">
+In March 2000, James William Breen assigned ownership of the copyright
+of the dictionary files assembled, coordinated and edited by him to the
+The Electronic Dictionary Research and Development Group, then at
+Monash University (hereafter "the Group"), on the understanding that
+the Group
+will foster the development of the dictionary files, and will utilize all
+monies received for use of the files for the further
+development of the files, and for research into computer lexicography and
+electronic dictionaries.
+</P>
+<P ALIGN="JUSTIFY">
+This document outlines the licence arrangement put in place by The
+Group for usage of the files. It replaces all previous copyright and
+licence statements applying to the files.
+</P>
+<P ALIGN="JUSTIFY">
+<B>2. Application</B>
+</P>
+<P ALIGN="JUSTIFY">
+This licence statement and copyright notice applies to the
+following dictionary files, the associated documentation files,
+and any data files which are derived from them.
+</P>
+<P ALIGN="JUSTIFY">
+</P>
+<UL>
+<LI><P ALIGN="JUSTIFY">
+<B>JMDICT</B>
+- Japanese-Multilingual Dictionary File - the Japanese and English
+components (the German, French and Russian translational equivalents
+are covered by separate copyright held by the compilers of that material.)
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+<B>EDICT</B>
+- Japanese-English Electronic DICTionary File
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+<B>ENAMDICT</B>
+- Japanese Names File
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+<B>COMPDIC</B>
+- Japanese-English Computing and Telecommunications Terminology File
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+<B>KANJIDIC2</B>
+- File of Information about the Kanji in JIS X 0208, JIS X 0212 and JIS X
+0213 in XML format.
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+<B>KANJIDIC</B>
+- File of Information about the 6,355 Kanji in the JIS X 0208 Standard
+<I>(special conditions apply)</I>
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+<B>KANJD212</B>
+- File of Information about the 5,801 Supplementary Kanji in the
+JIS X 0212 Standard
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+<B>EDICT-R</B>
+- romanized version of the EDICT file. (NB: this file has been withdrawn
+from circulation, and all sites carrying it are requested to remove
+their copies.)
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+<B>RADKFILE/KRADFILE</B>
+- files relating to the decomposition of the 6,355 kanji in JIS X 0208
+into their visible components.
+</P>
+<P ALIGN="JUSTIFY">
+</P>
+</LI>
+</UL>
+<P ALIGN="JUSTIFY">
+Copyright over the documents covered by this statement is held by James
+William BREEN and The Electronic Dictionary Research and
+Development Group.
+</P>
+<P ALIGN="JUSTIFY">
+<B>3. Licence Conditions</B>
+</P>
+<P ALIGN="JUSTIFY">
+<a href="http://creativecommons.org/licenses/by-sa/3.0/"><img
+src="http://creativecommons.org/images/public/somerights20.gif"></a>
+</P>
+<P ALIGN="JUSTIFY">
+The dictionary files are made available under a Creative Commons
+Attribution-ShareAlike Licence (V3.0). The Licence Deed can be viewed
+ <a HREF="http://creativecommons.org/licenses/by-sa/3.0/">here, </a>
+and the full Licence Code is
+ <a HREF="http://creativecommons.org/licenses/by-sa/3.0/legalcode">here. </a>
+</P>
+<P ALIGN="JUSTIFY">
+In summary (extract from the Licence Deed):
+<center>
+<table border width="80%"><tr><td>
+You are free:
+<ul>
+<li>to Share - to copy, distribute and transmit the work
+<li>to Remix - to adapt the work
+</ul>
+Under the following conditions:
+<ul>
+<li>Attribution. You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
+<li>Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same, similar or a compatible licence.
+</ul>
+</td></tr></table>
+</center>
+</P>
+<P ALIGN="JUSTIFY">
+For attribution of these files, you must:
+</P>
+<OL type="a">
+<LI><P ALIGN="JUSTIFY">in the case of publishing significant extracts of the files, or
+material based on significant extracts of the files, e.g. in a published
+dictionary or in
+vocabulary lists, clearly acknowledge that you used the files for this purpose;
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">in the case of a software package or WWW server, etc. which uses the
+files or incorporates data from the files, you must:
+</P>
+<OL type="i">
+<LI><P ALIGN="JUSTIFY">acknowledge the usage and source of the files in the documentation,
+publicity material, WWW site of the package/server, etc.;
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">provide copies of the documentation and licence files (in the case
+of software packages). Where the application packaging does not provide
+for the inclusion of such files (e.g. with iPhone applications), it is
+sufficient to provide links, as per the next point;
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">provide links to either local copies of
+the documentation and licence files or to the locations of the files
+at Monash University or at the EDRDG site.
+</P>
+<P ALIGN="JUSTIFY">
+If a WWW server is providing a dictionary function or an on-screen
+display of words from the files, the acknowledgement must be made on each
+screen display, e.g. in the form of a message at the foot of the screen
+or page. If, however, material from the files is mixed with information from
+other sources, it is sufficient to provide a general acknowledgement of the
+sources as described above.
+</P>
+<P ALIGN="JUSTIFY">
+For the EDICT, JMdict and KANJIDIC files, the
+following URLs may be used or quoted:
+</P>
+<UL>
+<LI><P ALIGN="JUSTIFY">
+ <a HREF="http://www.csse.monash.edu.au/~jwb/edict.html">http://www.csse.monash.edu.au/~jwb/edict.html </a>
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+ <a HREF="http://www.csse.monash.edu.au/~jwb/jmdict.html">http://www.csse.monash.edu.au/~jwb/jmdict.html </a>
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+ <a HREF="http://www.csse.monash.edu.au/~jwb/kanjidic.html">http://www.csse.monash.edu.au/~jwb/kanjidic.html </a>
+</P>
+</LI>
+</UL>
+</LI>
+</OL>
+</LI>
+</OL>
+See
+ <a HREF="sample.html">this page </a>
+for samples of possible acknowledgement text.
+<P ALIGN="JUSTIFY">
+Note that in all cases, the addition of material to the files or to
+extracts from the files does not remove or in any way diminish the
+Group's copyright over the files.
+</P>
+<P ALIGN="JUSTIFY">
+Note also that provided the conditions above are met,
+there is NO restriction placed on commercial use of the files.
+The files can be bundled with software and sold for whatever
+the developer wants to charge.
+Software using these files does not have to be under any form of
+open-source licence.
+</P>
+<P ALIGN="JUSTIFY">
+Where use of the files results in a financial return to the user, it is
+suggested that the user make a donation to the Group to assist with the
+continued development of the files. There are
+several ways of donating:
+</P>
+<UL>
+<LI><P ALIGN="JUSTIFY"> send a cheque (check) in any currency made out
+to "Monash University". The address to use is:
+</P>
+<DL><DD>
+<pre>
+Jim Breen
+Electronic Dictionary Research Group
+Clayton School of Information Technology
+Monash University
+Clayton, Vic, 3800
+Australia
+</pre>
+</DL>
+</LI>
+<LI><P ALIGN="JUSTIFY">
+make a donation via PayPal using a credit or debit card. Simply click on
+the following button and follow the instructions.
+<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+<input type="hidden" name="cmd" value="_xclick">
+<input type="hidden" name="business" value="Jim.Breen@infotech.monash.edu.au">
+<input type="hidden" name="item_name" value="Electronic Dictionary Research Group">
+<input type="hidden" name="item_number" value="EDRGDON001">
+<input type="hidden" name="no_shipping" value="2">
+<input type="hidden" name="no_note" value="1">
+<input type="hidden" name="currency_code" value="AUD">
+<input type="hidden" name="tax" value="0">
+<input type="hidden" name="bn" value="PP-DonationsBF">
+<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
+<img alt="" border="0" src="https://www.paypal.com/en_AU/i/scr/pixel.gif" width="1" height="1">
+</form>
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">make a funds transfer from your bank using a mechanism such as
+SWIFT. Email
+<a href="mailto://Jim.Breen@infotech.monash.edu.au">Jim</a>
+for the University's banking details.
+</P>
+</LI>
+</UL>
+<P ALIGN="JUSTIFY">
+NB: No contract or agreement needs to be signed in order to use the files.
+By using the files, the user implicitly undertakes to abide by the
+conditions of this licence.
+</P>
+<P ALIGN="JUSTIFY">
+<B>4. Warranty and Liability</B>
+</P>
+<P ALIGN="JUSTIFY">
+While every effort has been made to ensure the accuracy of the information
+in the files, it is possible that errors may still be included. The files
+are made available without any warranty whatsoever as to their accuracy or
+suitability for a particular application.
+</P>
+<P ALIGN="JUSTIFY">
+Any individual or organization making use of the files must agree:
+</P>
+<P ALIGN="JUSTIFY">
+</P>
+<OL type="a">
+<P ALIGN="JUSTIFY">
+</P>
+<LI><P ALIGN="JUSTIFY">to assume all liability for the use or misuse of the files, and must
+agree not to hold the Group liable for any actions or
+events resulting from use of the files.
+</P>
+<P ALIGN="JUSTIFY">
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">to refrain from bringing action or suit or claim against
+the Group or any of the Group's members on the basis of the use of
+the files, or any information included in the files.
+</P>
+<P ALIGN="JUSTIFY">
+</P>
+</LI>
+<LI><P ALIGN="JUSTIFY">to indemnify the Group or its members in the case of action by a
+third party on the basis of the use of the files, or any
+information included in the files.
+</P>
+<P ALIGN="JUSTIFY">
+</P>
+</LI>
+</OL>
+<P ALIGN="JUSTIFY">
+<B>5. Copyright</B>
+</P>
+<P ALIGN="JUSTIFY">
+Every effort has been made in the compilation of these files to ensure
+that the copyright of other compilers of dictionaries and lexicographic
+material
+has not been infringed. The Group asserts its intention to rectify immediately
+any breach of copyright brought to its attention.
+</P>
+<P ALIGN="JUSTIFY">
+Any individual or organization in possession of copies of the files, upon becoming
+aware that a possible copyright infringement may be present in the files,
+must undertake to contact the Group immediately with details of the
+possible infringement.
+</P>
+<P ALIGN="JUSTIFY">
+<B>6. Prior Permission</B>
+</P>
+<P ALIGN="JUSTIFY">
+All permissions for use of the files granted by James William Breen
+prior to March 2000 will be honoured and maintained, however the placing
+of the KANJD212 and EDICTH files under the GNU GPL has been withdrawn as
+of 25 March 2000.
+</P>
+<P ALIGN="JUSTIFY">
+<B>7. Special Conditions for the KANJIDIC, KANJD212 and KANJIDIC2 Files</B>
+</P>
+<P ALIGN="JUSTIFY">
+In addition to licensing arrangements described above, the following
+additional conditions apply to the KANJIDIC, KANJD212 and KANJIDIC2 files.
+</P>
+<P ALIGN="JUSTIFY">
+The following people have granted permission for material for which they hold
+copyright to be included in the files, and distributed under the above
+conditions, while retaining their copyright over that material:
+</P>
+<P ALIGN="JUSTIFY">
+Jack HALPERN: The SKIP codes.
+</P>
+<P ALIGN="JUSTIFY">
+Note that the SKIP codes are under their own similar Creative Common
+licence. See Jack Halpern's
+ <a HREF="http://www.kanji.org/kanji/dictionaries/skip_permission.htm">conditions of use </a>
+page. Note that commercial applications using the SKIP codes must
+have prior permission from Jack Halpern.
+</P>
+<P ALIGN="JUSTIFY">
+Christian WITTERN and Koichi YASUOKA: The Pinyin information.
+</P>
+<P ALIGN="JUSTIFY">
+Urs APP: the Four Corner codes and the Morohashi information.
+</P>
+<P ALIGN="JUSTIFY">
+Mark SPAHN and Wolfgang HADAMITZKY: the kanji descriptors from their
+dictionary.
+</P>
+<P ALIGN="JUSTIFY">
+Charles MULLER: the Korean readings.
+</P>
+<P ALIGN="JUSTIFY">
+Joseph DE ROO: the De Roo codes.
+</P>
+<P ALIGN="JUSTIFY">
+</P>
+</OL>
+<B>8. Enquiries</B>
+<P ALIGN="JUSTIFY">
+All enquiries to:
+</P>
+<P ALIGN="JUSTIFY">
+The Electronic Dictionary Research and Development Group
+<BR>
+(Attn: Assoc. Prof. Jim Breen)
+<BR>
+Clayton School of Information Technology
+<BR>
+Monash University
+<BR>
+CLAYTON VIC 3168
+<BR>
+AUSTRALIA
+<BR>
+(jimbreen@gmail.com)
+<!-- revised 28 August 2000 to clarify the situation with Linux -->
+<!-- revised 30 September 2000 to clarify the publication of material in other formats -->
+<!-- revised 26 February 2003 to remove commercial use restrictions -->
+<!-- revised 17 January 2004 to clarify acknowledgement details -->
+<!-- revised 20 May 2008 to update the frequency information in KANJIDIC -->
+<!-- revised 21 May 2008 reflected move to EDRDG site -->
+<!-- revised 30 May 2009 reflected the new SKIP licence. -->
+</P>
+</BODY></HTML>
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..b2e8b5d26b71
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,301 @@
+# Maintainer: ponsfoot <cabezon dot hashimoto at gmail dot com>
+
+##
+## Build configuration
+##
+## You can choose the input method framework to use either ibus and/or uim.
+## If you will not be using ibus, comment out below.
+_ibus_mozc="yes"
+## If you will be using uim, uncomment below.
+#_uim_mozc="yes"
+
+## If you will be using mozc.el on Emacs, uncomment below.
+#_emacs_mozc="yes"
+
+## If you want to use 'kill-line' feature of uim, uncomment below.
+#_kill_line="yes"
+## NOTE: This option affects only for uim users.
+## Bcause this applies a patch to original mozc source,
+## there is a possibility to fail depends on the mozc version.
+
+## ニコニコ大百科IME辞書 (NICONICOPEDIA IME dictionary, see below)
+#_NICODIC="true"
+
+#***********************************************************************
+# License information:
+#
+# Mozc: 3-clause BSD
+# uim-mozc: 3-clause BSD
+#
+# Mozc-UT2 dictionary
+# altcanna, jinmei, skk: GPL
+# hatena: unknown
+# edict: Creative Commons Attribution-ShareAlike License (V3.0)
+# ekimei: redistributable
+# zip code: public domain
+# niconico: unknown
+# ruby/shell scripts: GPL
+#
+# ** CAUTION **
+# CC-BY-SA (EDICT) is incompatible with GPL (some of the other dic data).
+# You should not redistribute the binary of mozc-ut2 including edict
+# (and niconico which unknown license) at least.
+#
+#***********************************************************************
+# Upstreams:
+#
+# mozc
+# https://github.com/google/mozc
+#
+# Japanese zip code data by Japan Post
+# http://www.post.japanpost.jp/zipcode/download.html
+#
+# Modified zip code data by Ibs
+# http://zipcloud.ibsnet.co.jp/
+#
+# Mozc UT2 dictionary
+# http://www.geocities.jp/ep3797/mozc-ut2.html
+#
+# uim-mozc by macuim
+# http://code.google.com/p/macuim/
+#
+#***********************************************************************
+# Changes to original mozc:
+#
+# 1. Add Mozc UT Dictionary
+# 2. Add uim-mozc (optional)
+#
+#***********************************************************************
+
+## Mozc compile option
+_bldtype=Release
+#_bldtype=Debug
+
+_mozcrev=2315f957d1785130c2ed196e141a330b0857b065
+_utdicver=20161013
+_zipcoderel=201609
+_uimmozcrev=321.3ea28b1
+
+pkgbase=mozc-ut2
+pkgname=mozc-ut2
+true && pkgname=('mozc-ut2')
+pkgver=2.18.2612.102.20161013
+pkgrel=1
+arch=('i686' 'x86_64')
+url="http://www.geocities.jp/ep3797/mozc-ut2.html"
+license=('BSD' 'GPL' 'CC-BY-SA' 'custom')
+makedepends=('python2' 'ruby' 'git' 'ninja' 'clang')
+source=(
+ mozc::git+https://github.com/google/mozc.git#commit=${_mozcrev}
+ http://downloads.sourceforge.net/project/pnsft-aur/mozc/mozcdic-ut2-${_utdicver}.tar.bz2
+ http://downloads.sourceforge.net/project/pnsft-aur/mozc/edict-${_utdicver}.gz
+ EDICT_license.html
+ http://downloads.sourceforge.net/project/pnsft-aur/mozc/ken_all-${_zipcoderel}.zip
+ http://downloads.sourceforge.net/project/pnsft-aur/mozc/jigyosyo-${_zipcoderel}.zip
+ mod-generate-dictionary.sh
+)
+sha1sums=('SKIP'
+ '75efebc621fe57a5bc490b7faa1f5c556bfd7b07'
+ '478eb5f982656ff80d45e123c16d88a2b9e110b3'
+ 'e0ba18e67c1be8e3cfb8ecb30760597b215da255'
+ 'c8085904b2326363667831131c0921b004a66bad'
+ '3d012569963b9359d2d267216f78c1a07a395065'
+ '083a175815080500fc480d9d8af2ee1e39f528f1')
+
+
+if [[ "$_ibus_mozc" == "yes" ]]; then
+ true && pkgname+=('ibus-mozc-ut2')
+ makedepends+=('ibus>=1.4.1')
+fi
+if [[ "$_uim_mozc" == "yes" ]]; then
+ true && pkgname+=('uim-mozc-ut2')
+ makedepends+=('uim')
+ source+=(http://downloads.sourceforge.net/project/pnsft-aur/mozc/uim-mozc-${_uimmozcrev}.tar.xz)
+ sha1sums+=('22b7c2a5b0a7fef778ee72ebe5873a75e879d26b')
+
+fi
+
+if [[ "$_emacs_mozc" == "yes" ]]; then
+ true && pkgname+=('emacs-mozc-ut2')
+fi
+
+
+mozcver() {
+ . "${srcdir}/mozc/src/data/version/mozc_version_template.bzl"
+ printf "%s.%s.%s.%s" $MAJOR $MINOR $BUILD $REVISION
+}
+
+
+pkgver() {
+ printf "%s.%s" $_mozcver "${_utdicver}"
+}
+
+
+prepare() {
+ cd "$srcdir"
+ ln -sf `which python2` ./python
+ PATH="${srcdir}:${PATH}"
+
+ cd "${srcdir}/mozc/"
+
+ git submodule update --init --recursive
+
+ cd "${srcdir}/mozcdic-ut2-${_utdicver}"
+
+ _mozcver=`mozcver`
+ "${srcdir}/mod-generate-dictionary.sh"
+ msg "Generating UT dictionary seed..."
+ MOZCVER="$_mozcver" DICVER="$_utdicver" NICODIC="$_NICODIC" \
+ ./generate-dictionary.sh
+ msg "Done."
+
+ cd "${srcdir}/${pkgbase}-`pkgver`/src"
+
+ # uim-mozc
+ if [[ "$_uim_mozc" == "yes" ]]; then
+ cp -rf "${srcdir}/uim-mozc-${_uimmozcrev}/uim" unix/
+ # kill-line patch
+ if [[ "$_kill_line" == "yes" ]]; then
+ patch -p0 -i "${srcdir}/uim-mozc-${_uimmozcrev}/mozc-kill-line.diff"
+ fi
+ # Extract license part of uim-mozc
+ head -n 32 unix/uim/mozc.cc > unix/uim/LICENSE
+
+ fi
+}
+
+
+build() {
+ msg2 '====================================================='
+ msg2 ' *** Build Info ***'
+ msg2 ' The following package files will be generated:'
+ for _p in ${pkgname[@]}
+ do
+ msg2 " * ${_p}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}"
+ done
+ msg2 '====================================================='
+
+ # Use Qt4
+ _rcc_loc=`pkg-config QtCore --variable=rcc_location`
+ _qt4dir=${_rcc_loc%%/bin/rcc}
+ _qt4i=`pkg-config --cflags-only-I QtGui`
+ CFLAGS+=" $_qt4i"
+ CXXFLAGS+=" $_qt4i"
+
+ msg "Starting make..."
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/src"
+
+ _targets="server/server.gyp:mozc_server gui/gui.gyp:mozc_tool "
+ [[ "$_emacs_mozc" == "yes" ]] && _targets+="unix/emacs/emacs.gyp:mozc_emacs_helper "
+ [[ "$_ibus_mozc" == "yes" ]] && _targets+="unix/ibus/ibus.gyp:ibus_mozc renderer/renderer.gyp:mozc_renderer "
+ [[ "$_uim_mozc" == "yes" ]] && _targets+="unix/uim/uim.gyp:uim-mozc "
+
+ unset CC CC_host CC_target CXX CXX_host CXX_target LINK AR AR_host AR_target \
+ NM NM_host NM_target READELF READELF_host READELF_target
+ QTDIR=$_qt4dir GYP_DEFINES="document_dir=/usr/share/licenses/${pkgbase}" \
+ python2 build_mozc.py gyp
+ python2 build_mozc.py build -c $_bldtype $_targets
+
+ if [[ "$_ibus_mozc" == "yes" ]]; then
+ sed -i 's|/usr/libexec/|/usr/lib/ibus-mozc/|g' \
+ out_linux/${_bldtype}/gen/unix/ibus/mozc.xml
+ fi
+
+}
+
+package_mozc-ut2() {
+ pkgdesc="Mozc the Japanese Input Method with Mozc UT2 Dictionary"
+ arch=('i686' 'x86_64')
+ groups=('mozc-im')
+ depends=('qt4' 'zinnia')
+ install=mozc-ut.install
+ provides=("mozc=${_mozcver}")
+ replaces=('mozc-server-ut' 'mozc-utils-gui-ut' 'mozc-ut')
+ conflicts=('mozc' 'mozc-server' 'mozc-utils-gui' 'mozc-ut')
+ optdepends=('tegaki-models-zinnia-japanese: hand-writing recognition support')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/src"
+ install -D -m 755 out_linux/${_bldtype}/mozc_server "${pkgdir}/usr/lib/mozc/mozc_server"
+ install -m 755 out_linux/${_bldtype}/mozc_tool "${pkgdir}/usr/lib/mozc/mozc_tool"
+
+ install -d "${pkgdir}/usr/lib/mozc/documents/"
+ install -m 644 data/installer/*.html "${pkgdir}/usr/lib/mozc/documents/"
+
+ cd "${srcdir}/${pkgbase}-${pkgver}"
+ _licpath="${pkgdir}/usr/share/licenses/${pkgbase}"
+ install -D -m 644 LICENSE "${_licpath}/LICENSE_MOZC"
+ install -m 644 docs-ut/README.md "${_licpath}/README_MOZC-UT.md"
+ install -m 644 src/data/installer/*.html "$_licpath"
+
+ cp -rf docs-ut/ "${_licpath}/"
+ chmod 644 -R "${_licpath}/docs-ut/"
+}
+
+package_emacs-mozc-ut2() {
+ pkgdesc="Mozc for Emacs"
+ arch=('i686' 'x86_64')
+ groups=('mozc-im')
+ depends=("mozc=${_mozcver}" 'emacs')
+ install=emacs-mozc.install
+ replaces=('emacs-mozc-bin' 'emacs-mozc-ut')
+ provides=('emacs-mozc')
+ conflicts=('emacs-mozc' 'emacs-mozc-bin' 'emacs-mozc-ut')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/src"
+ install -D -m 755 out_linux/${_bldtype}/mozc_emacs_helper "${pkgdir}/usr/bin/mozc_emacs_helper"
+ install -d "${pkgdir}/usr/share/emacs/site-lisp/emacs-mozc/"
+ install -m 644 unix/emacs/mozc.el "${pkgdir}/usr/share/emacs/site-lisp/emacs-mozc"
+}
+
+package_ibus-mozc-ut2() {
+ pkgdesc="IBus engine module for Mozc"
+ arch=('i686' 'x86_64')
+ groups=('mozc-im')
+ depends=("mozc=${_mozcver}" 'ibus>=1.4.1')
+ replaces=('ibus-mozc-ut')
+ provides=('ibus-mozc')
+ conflicts=('ibus-mozc' 'ibus-mozc-ut')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/src"
+ install -D -m 755 out_linux/${_bldtype}/ibus_mozc "${pkgdir}/usr/lib/ibus-mozc/ibus-engine-mozc"
+ install -D -m 644 out_linux/${_bldtype}/gen/unix/ibus/mozc.xml "${pkgdir}/usr/share/ibus/component/mozc.xml"
+ install -D -m 644 data/images/unix/ime_product_icon_opensource-32.png "${pkgdir}/usr/share/ibus-mozc/product_icon.png"
+ install -m 644 data/images/unix/ui-tool.png "${pkgdir}/usr/share/ibus-mozc/tool.png"
+ install -m 644 data/images/unix/ui-properties.png "${pkgdir}/usr/share/ibus-mozc/properties.png"
+ install -m 644 data/images/unix/ui-dictionary.png "${pkgdir}/usr/share/ibus-mozc/dictionary.png"
+ install -m 644 data/images/unix/ui-direct.png "${pkgdir}/usr/share/ibus-mozc/direct.png"
+ install -m 644 data/images/unix/ui-hiragana.png "${pkgdir}/usr/share/ibus-mozc/hiragana.png"
+ install -m 644 data/images/unix/ui-katakana_half.png "${pkgdir}/usr/share/ibus-mozc/katakana_half.png"
+ install -m 644 data/images/unix/ui-katakana_full.png "${pkgdir}/usr/share/ibus-mozc/katakana_full.png"
+ install -m 644 data/images/unix/ui-alpha_half.png "${pkgdir}/usr/share/ibus-mozc/alpha_half.png"
+ install -m 644 data/images/unix/ui-alpha_full.png "${pkgdir}/usr/share/ibus-mozc/alpha_full.png"
+
+ install -D -m 755 out_linux/${_bldtype}/mozc_renderer "${pkgdir}/usr/lib/mozc/mozc_renderer"
+}
+
+package_uim-mozc-ut2() {
+ pkgdesc="uim plugin module for Mozc"
+ arch=('i686' 'x86_64')
+ groups=('mozc-im')
+ depends=("mozc=${_mozcver}" 'uim')
+ install=uim-mozc.install
+ replaces=('uim-mozc-ut')
+ provides=('uim-mozc')
+ conflicts=('uim-mozc' 'uim-mozc-ut')
+
+ cd "${srcdir}/${pkgbase}-${pkgver}/src"
+ install -D -m 755 out_linux/${_bldtype}/libuim-mozc.so "${pkgdir}/usr/lib/uim/plugin/libuim-mozc.so"
+ install -d "${pkgdir}/usr/share/uim"
+ install -m 644 ${srcdir}/uim-mozc-${_uimmozcrev}/scm/*.scm "${pkgdir}/usr/share/uim/"
+ install -D -m 644 data/images/unix/ime_product_icon_opensource-32.png "${pkgdir}/usr/share/uim/pixmaps/mozc.png"
+ install -m 644 data/images/unix/ui-tool.png "${pkgdir}/usr/share/uim/pixmaps/mozc_tool_selector.png"
+ install -m 644 data/images/unix/ui-properties.png "${pkgdir}/usr/share/uim/pixmaps/mozc_tool_config_dialog.png"
+ install -m 644 data/images/unix/ui-dictionary.png "${pkgdir}/usr/share/uim/pixmaps/mozc_tool_dictionary_tool.png"
+
+ install -D -m 644 unix/uim/LICENSE "${pkgdir}/usr/share/licenses/${pkgbase}/uim-mozc/LICENSE"
+}
+
+# Global pkgdesc and depends are here so that they will be picked up by AUR
+pkgdesc="Mozc the Japanese Input Method with Mozc UT2 Dictionary (additional dictionary) and uim-mozc (optional)"
+depends=('qt4' 'zinnia')
diff --git a/emacs-mozc.install b/emacs-mozc.install
new file mode 100644
index 000000000000..e8fd36581333
--- /dev/null
+++ b/emacs-mozc.install
@@ -0,0 +1,14 @@
+post_install() {
+ cat << EOF
+==> Add the followings into your \$HOME/.emacs.d/init.el file to enable mozc-mode.
+
+ (set-language-environment "Japanese")
+ (require 'mozc) ; or (load-file "/path/to/mozc.el")
+ (setq default-input-method "japanese-mozc")
+
+==> Having the above settings, just type C-\\ which is bound to
+==> \`toggle-input-method' by default.
+
+EOF
+}
+
diff --git a/mod-generate-dictionary.sh b/mod-generate-dictionary.sh
new file mode 100755
index 000000000000..fce54ba4205f
--- /dev/null
+++ b/mod-generate-dictionary.sh
@@ -0,0 +1,32 @@
+#!/usr/bin/bash -e
+
+[[ ! -f generate-dictionary.sh ]] && { echo "generate-dictionary.sh not found."; exit 1; }
+
+sed -i \
+ -e '1s/sh/sh -e/' \
+ -e 's/ruby \(.*\)/ruby -EUTF-8 \1/g' \
+ generate-dictionary.sh \
+ edict-katakana-english/generate-dictionary.sh
+
+# Comment out the specifying versions and initial cleanup
+# cp $srcdir/KEN_ALL.CSV to chimei/
+# Specify $srcdir/JIGYOSYO.CSV
+# Modify mozc-\$MOZCVER to mozc
+# Remove making xz archive
+sed -i \
+ -e 's/^\(MOZCVER=.*\|DICVER=.*\|NICODIC=.*\)/#&/' \
+ -e '/rm -rf mozc-$MOZCVER/s/^/#/i' \
+ -e '/echo "extract official mozc..."/,+1s/^/#/ig' \
+ -e '/rm -f \*\.zip/,+6s/^/#/ig' \
+ -e '/cd chimei/a cp -f ../../KEN_ALL.CSV .' \
+ -e 's|JIGYOSYO.CSV|../../JIGYOSYO.CSV|' \
+ -e 's|mozc-\$MOZCVER|mozc|g' \
+ -e '/# compress mozc-ut/,+4s/^/#/ig' \
+ -e 's|^cp -r docs/|cp -r docs-ut/|' \
+ generate-dictionary.sh
+
+sed -i \
+ -e '5,6s/^/#/ig' \
+ edict-katakana-english/generate-dictionary.sh
+
+#sed -i '71s/s\[5\]/& != "" and &/' chimei/get-entries.rb
diff --git a/mozc-ut.install b/mozc-ut.install
new file mode 100644
index 000000000000..864acf8b8f45
--- /dev/null
+++ b/mozc-ut.install
@@ -0,0 +1,26 @@
+## arg 1: the new package version
+post_install() {
+ cat << _EOF
+
+ ###############
+ C A U T I O N
+ ###############
+
+ Mozc-ut includes Mozc UT Dictionary the 3rd party
+ additional dictionary by UT. It means that all
+ problems or annoying behaviors of Mozc-ut might
+ be caused by the UT Dic (might not be occured on
+ the vanilla Mozc).
+ Therefore, you should NOT think that all of them
+ are by the Google first and should be careful to
+ report them to the Google.
+
+_EOF
+
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ post_install $1
+}
diff --git a/uim-mozc.install b/uim-mozc.install
new file mode 100755
index 000000000000..586121d9a1af
--- /dev/null
+++ b/uim-mozc.install
@@ -0,0 +1,19 @@
+post_install() {
+ echo -n "Registering mozc on uim..."
+ uim-module-manager --register mozc
+ [[ $? != 0 ]] && echo "Failed." || echo "Done."
+
+ cat << _EOF
+ ==> You must run the following command to use mozc
+ ==> whenever you upgrade or (re-)install uim.
+
+ \`sudo uim-module-manager --register mozc'
+
+_EOF
+}
+
+post_remove() {
+ echo -n "Unregistering mozc from uim..."
+ uim-module-manager --unregister mozc
+ [[ $? != 0 ]] && echo "Failed." || echo "Done."
+}