From a809ba51fe5d50e58b030f7b0878df68fd757a7c Mon Sep 17 00:00:00 2001 From: Kuro_CODE25 Date: Mon, 25 Jul 2016 05:24:03 +0700 Subject: misc/fcitx-mozc: Updated for version 2.17.2313.102.1. Signed-off-by: Willy Sudiarto Raharjo --- misc/fcitx-mozc/fcitx-mozc.SlackBuild | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) (limited to 'misc/fcitx-mozc/fcitx-mozc.SlackBuild') diff --git a/misc/fcitx-mozc/fcitx-mozc.SlackBuild b/misc/fcitx-mozc/fcitx-mozc.SlackBuild index 8ec8a6a747..4858b3f375 100644 --- a/misc/fcitx-mozc/fcitx-mozc.SlackBuild +++ b/misc/fcitx-mozc/fcitx-mozc.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for fcitx-mozc # Issued under The MIT License (MIT) # -# Copyright 2015 Kuro_CODE25 +# Copyright 2016 Kuro_CODE25 # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -23,7 +23,7 @@ # THE SOFTWARE. PRGNAM=fcitx-mozc -VERSION=${VERSION:-2.17.2102.102.1} +VERSION=${VERSION:-2.17.2313.102.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -62,15 +62,12 @@ QT4I=`pkg-config QtGui --cflags-only-I` BLDTYPE=Release # source rev. and version. -ZIPCODE_REL=201504 +ZIPCODE_REL=201511 PROTOBUF_REV=172019c40bf548908ab09bfd276074c929d48415 -GYP_REV=ff251c3d43eb4263d3aafa29007d6420289525d1 -JSONCPP_REV=11086dd6a7eba04289944367ca82cea71299ed70 +GYP_REV=e2e928bacd07fead99a18cb08d64cb24e131d3e5 JAPNESE_USAGE_DICT_REV=e5b3425575734c323e1d947009dd74709437b684 -MOZC_REV=3648b9bf06d5d9b36bed2425640bfd18ae05b588 -FONTTOOLS_REV=5ba7d98a4153fad57258fca23b0bcb238717aec3 -JSR305_VER=2.0.2 -FCITX_PATCH_VER=2.17.2102.102.1 +MOZC_REV=3306d3314499a54a4064b8b80bbc1bce3f6cfac4 +FCITX_PATCH_VER=2.17.2313.102.1 rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT @@ -79,27 +76,25 @@ rm -rf $PRGNAM-$VERSION mkdir -p $PRGNAM-$VERSION cd $PRGNAM-$VERSION echo "prepare source file..." + # unzip packages unzip ${CWD}/x-ken-all-${ZIPCODE_REL}.zip unzip ${CWD}/jigyosyo-${ZIPCODE_REL}.zip -tar -xvf ${CWD}/fcitx-mozc-icon.tar.gz unzip ${CWD}/$MOZC_REV.zip -unzip ${CWD}/$JSONCPP_REV.zip unzip ${CWD}/$JAPNESE_USAGE_DICT_REV.zip unzip ${CWD}/$GYP_REV.zip unzip ${CWD}/$PROTOBUF_REV.zip -unzip ${CWD}/$FONTTOOLS_REV.zip + +# extact tar file +tar -xvf ${CWD}/fcitx-mozc-icon.tar.gz cp $CWD/fcitx-mozc-${FCITX_PATCH_VER}.patch . -cp $CWD/jsr305-$JSR305_VER.jar . # rename directory mv mozc-$MOZC_REV mozc -mv jsoncpp-$JSONCPP_REV jsoncpp mv japanese-usage-dictionary-$JAPNESE_USAGE_DICT_REV japanese_usage_dictionary -mv gyp-$GYP_REV gyp mv protobuf-$PROTOBUF_REV protobuf -mv fonttools-$FONTTOOLS_REV fonttools +mv gyp-$GYP_REV gyp chown -R root:root . find -L . \ @@ -122,13 +117,12 @@ echo "Done." # Copy third party deps echo "Copy third party deps ..." cd $BLDBASEDIR -for dep in jsoncpp gyp protobuf japanese_usage_dictionary fonttools +for dep in gyp protobuf japanese_usage_dictionary do cp -a $dep mozc/src/third_party/ done -install -D jsr305-$JSR305_VER.jar mozc/src/third_party/jsr305/jsr305-$JSR305_VER.jar - +# build package echo "build package..." CFLAGS="${CFLAGS} $QT4I -fvisibility=hidden" CXXFLAGS="${CXXFLAGS} $QT4I -fvisibility=hidden" @@ -137,7 +131,7 @@ cd $BLDBASEDIR/mozc/src _targets="server/server.gyp:mozc_server gui/gui.gyp:mozc_tool unix/fcitx/fcitx.gyp:fcitx-mozc" -QTDIR=$QT4DIR GYP_DEFINES="document_dir=/usr/share/licenses/$pkgname" python2 build_mozc.py gyp +QTDIR=$QT4DIR GYP_DEFINES="document_dir=/usr/share/licenses/$pkgname use_libzinnia=1" python2 build_mozc.py gyp sed -i 's|command = $cxx -MMD -MF $out.d $defines $includes $cflags $cflags_cc $cflags_pch_cc -c $in -o $out|command = $cxx -MMD -MF $out.d $defines $includes -D__STRICT_ANSI__ $cflags $cflags_cc $cflags_pch_cc -c $in -o $out|' out_linux/Release/build.ninja python2 build_mozc.py build -c $BLDTYPE $_targets @@ -145,7 +139,6 @@ python2 build_mozc.py build -c $BLDTYPE $_targets head -n 29 server/mozc_server.cc > LICENSE BLDTYPE=Release -#cd mozc/src # install mozc to /usr/lib even if 64 bit install -D -m 755 out_linux/${BLDTYPE}/mozc_server "${PKG}/usr/lib/mozc/mozc_server" -- cgit v1.2.3-65-gdbad