[arch-commits] Commit in fcitx-mozc/trunk (2 files)

Felix Yan fyan at nymeria.archlinux.org
Fri Apr 12 02:11:01 UTC 2013


    Date: Friday, April 12, 2013 @ 04:11:00
  Author: fyan
Revision: 88115

upgpkg: fcitx-mozc 1.10.1390.102-2

Added:
  fcitx-mozc/trunk/mozc_1.10.1390.102_remove_warn_as_error.patch
Modified:
  fcitx-mozc/trunk/PKGBUILD

-----------------------------------------------+
 PKGBUILD                                      |   20 +++++++++++++-------
 mozc_1.10.1390.102_remove_warn_as_error.patch |   12 ++++++++++++
 2 files changed, 25 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-04-11 22:41:40 UTC (rev 88114)
+++ PKGBUILD	2013-04-12 02:11:00 UTC (rev 88115)
@@ -12,8 +12,8 @@
 pkgname=fcitx-mozc
 pkgdesc="Fcitx Module of A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese Input)"
 pkgver=1.10.1390.102
-_patchver=${pkgver}.1
-pkgrel=1
+_patchver=${pkgver}.2
+pkgrel=2
 arch=('i686' 'x86_64')
 url="http://code.google.com/p/mozc/"
 license=('custom')
@@ -26,15 +26,14 @@
         http://downloads.sourceforge.net/pnsft-aur/jigyosyo-${_zipcoderel}.zip
         http://protobuf.googlecode.com/files/protobuf-${_protobuf_ver}.tar.bz2
         http://fcitx.googlecode.com/files/fcitx-mozc-${_patchver}.patch
+	mozc_1.10.1390.102_remove_warn_as_error.patch
 )
 
 build() {
   cd "$srcdir"
-  ln -sf `which python2` ./python
-  PATH="${srcdir}:${PATH}"
 
   #source /etc/profile.d/qt4.sh
-  
+
   # Update: Fix qt4 include path too
   # Fix compatibility with google-glog 0.3.3 (symbol conflict)
   #CFLAGS="${CFLAGS} -DFLAGS_log_dir=FLAGS_mozc_log_dir"
@@ -52,6 +51,13 @@
   sed -i 's|(qt_dir)/bin|(qt_dir)/lib/qt4/bin|' gui/*.gyp{,i}
   sed -i 's|(qt_dir_env)/bin|(qt_dir_env)/lib/qt4/bin|' gui/*.gyp{,i}
 
+  # Patch for gcc>=4.8
+  patch -p0 -i "${srcdir}/mozc_1.10.1390.102_remove_warn_as_error.patch"
+
+  # Adjust to use python2
+  find . -name  \*.py        -type f -exec sed -i -e "1s|python.*$|python2|"  {} +
+  find . -regex '.*\.gypi?$' -type f -exec sed -i -e "s|'python'|'python2'|g" {} +
+
   # Generate zip code seed
   msg "Generating zip code seed..."
   python2 dictionary/gen_zip_code_seed.py --zip_code="${srcdir}/KEN_ALL.CSV" --jigyosyo="${srcdir}/JIGYOSYO.CSV" >> data/dictionary_oss/dictionary09.txt
@@ -104,9 +110,9 @@
   install -m 644 data/images/unix/ui-properties.png "${pkgdir}/usr/share/fcitx/mozc/icon/mozc-properties.png"
   install -m 644 data/images/unix/ui-tool.png "${pkgdir}/usr/share/fcitx/mozc/icon/mozc-tool.png"
 }
-
 md5sums=('ff1611354703cbaa76cd562007ba57e9'
          '63310f8bad30f528ba10a6574b807952'
          'bb9fa83c00dece4de5f92ca1773e2bc5'
          'a72001a9067a4c2c4e0e836d0f92ece4'
-         'b3e15acd43b41cb5383508250707292b')
+         '1d94b16b5379f0ccd9f4e372c59b8190'
+         '36689e236c97e570c1a8c98f947755bb')

Added: mozc_1.10.1390.102_remove_warn_as_error.patch
===================================================================
--- mozc_1.10.1390.102_remove_warn_as_error.patch	                        (rev 0)
+++ mozc_1.10.1390.102_remove_warn_as_error.patch	2013-04-12 02:11:00 UTC (rev 88115)
@@ -0,0 +1,12 @@
+Index: gyp/common.gypi
+===================================================================
+--- gyp/common.gypi	(revision 151)
++++ gyp/common.gypi	(working copy)
+@@ -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',




More information about the arch-commits mailing list