misc/fcitx: Updated for version 4.2.6.1.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
vvoody 2012-12-16 17:43:10 -05:00 committed by dsomero
parent 798c26f912
commit 3b0b404073
3 changed files with 36 additions and 28 deletions

View File

@ -1,7 +1,10 @@
Fcitx(Free Chinese Input Toy for X) is a collection of Simplified Fcitx [ˈfaɪtɪks] is an input method framework with extension support.
Chinese input methods for Linux. It supports Pinyin, QuWei and Currently it supports linux and Unix system, like freebsd. It has three
Table-based input methods. builtin Input Method Engine, Pinyin, QuWei and Table-based input methods.
If you have installed Gtk3 or OpenCC, you may run as below to make By default, this slackbuild will build IM module support for GTK2, GTK3
fcitx support them: and Qt.
$ GTK3=On OPENCC=On ./fcitx.SlackBuild
If you have installed OpenCC, you may run as below to make fcitx
support them:
# OPENCC=On ./fcitx.SlackBuild

View File

@ -1,23 +1,39 @@
#!/bin/sh #!/bin/sh
# Slackware build script for fcitx # Slackware build script for fcitx.
# Written by vvoody <vvoodywang@gmail.com> # Copyright 2012 vvoody <vvoodywang@gmail.com>
#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=fcitx PRGNAM=fcitx
VERSION=${VERSION:-4.1.2} VERSION=${VERSION:-4.2.6.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
GTK3=${GTK3:-Off}
OPENCC=${OPENCC:-Off} OPENCC=${OPENCC:-Off}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
i?86) ARCH=i486 ;; i?86) ARCH=i486 ;;
arm*) ARCH=arm ;; arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;; *) ARCH=$( uname -m ) ;;
esac esac
fi fi
@ -47,7 +63,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 tar xvf $CWD/$PRGNAM-${VERSION}_dict.tar.xz
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find . \ find . \
@ -56,21 +72,14 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
cp -a $CWD/pinyin.tar.gz data/
cp -a $CWD/table.tar.gz data/table/
mkdir build mkdir build
cd build cd build
cmake -DCMAKE_C_FLAGS:STRING=${SLKCFLAGS} \ cmake -DCMAKE_C_FLAGS:STRING=${SLKCFLAGS} \
-DCMAKE_CXX_FLAGS:STRING=${SLKCFLAGS} \ -DCMAKE_CXX_FLAGS:STRING=${SLKCFLAGS} \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \
-DENABLE_DBUS=On \
-DENABLE_CAIRO=On \
-DENABLE_PANGO=On \
-DENABLE_TABLE=On \
-DENABLE_GTK2_IM_MODULE=On \ -DENABLE_GTK2_IM_MODULE=On \
-DENABLE_GTK3_IM_MODULE=${GTK3} \ -DENABLE_GTK3_IM_MODULE=On \
-DENABLE_QT_IM_MODULE=On \ -DENABLE_QT_IM_MODULE=On \
-DENABLE_OPENCC=${OPENCC} \ -DENABLE_OPENCC=${OPENCC} \
.. ..

View File

@ -1,12 +1,8 @@
PRGNAM="fcitx" PRGNAM="fcitx"
VERSION="4.1.2" VERSION="4.2.6.1"
HOMEPAGE="http://code.google.com/p/fcitx/" HOMEPAGE="http://code.google.com/p/fcitx/"
DOWNLOAD="http://fcitx.googlecode.com/files/fcitx-4.1.2.tar.bz2 \ DOWNLOAD="http://fcitx.googlecode.com/files/fcitx-4.2.6.1_dict.tar.xz"
http://fcitx.googlecode.com/files/pinyin.tar.gz \ MD5SUM="7dc57dbe41702ec8be856ce3de434f2b"
http://fcitx.googlecode.com/files/table.tar.gz"
MD5SUM="f72460f46e50f82c3738aa1f0d9b3125 \
34dcb1b5209c28baa4e87f6a2773bfd0 \
acb0b112423474ab2c1a22cee590d636"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""