From ee0d9cbd32309d14b3a0368485b0353e60fc7fd6 Mon Sep 17 00:00:00 2001 From: vvoody Date: Thu, 15 Dec 2011 11:04:15 -0600 Subject: misc/fcitx: Updated for version 4.1.2 (+new maintainer) Signed-off-by: Robby Workman --- misc/fcitx/README | 15 ++++-- misc/fcitx/doinst.sh | 13 +++++ misc/fcitx/fcitx.SlackBuild | 62 +++++++++++++---------- misc/fcitx/fcitx.config | 109 ----------------------------------------- misc/fcitx/fcitx.info | 18 ++++--- misc/fcitx/fcitx.sh | 6 --- misc/fcitx/profile.d/fcitx.csh | 7 +++ misc/fcitx/profile.d/fcitx.sh | 7 +++ misc/fcitx/slack-desc | 22 ++++----- 9 files changed, 96 insertions(+), 163 deletions(-) create mode 100644 misc/fcitx/doinst.sh delete mode 100644 misc/fcitx/fcitx.config delete mode 100644 misc/fcitx/fcitx.sh create mode 100644 misc/fcitx/profile.d/fcitx.csh create mode 100644 misc/fcitx/profile.d/fcitx.sh (limited to 'misc') diff --git a/misc/fcitx/README b/misc/fcitx/README index 272f23eefc..474052b149 100644 --- a/misc/fcitx/README +++ b/misc/fcitx/README @@ -1,6 +1,11 @@ -fcitx: A very popular Simp Chinese Input Method - -fcitx is a very popular Simp Chinese input method -developped by some chinese hack guys. +Fcitx(Free Chinese Input Toy for X) is a collection of Simplified +Chinese input methods for Linux. It supports Pinyin, QuWei and +Table-based input methods. -fcitx is much simpler than scim +If you have installed Gtk3 or OpenCC, you may run as below to make +fcitx support them: +$ GTK3=On OPENCC=On ./fcitx.SlackBuild + +You may need 'fcitx-configtool', a GUI tool for configuring fcitx. + +This requires icu4c. diff --git a/misc/fcitx/doinst.sh b/misc/fcitx/doinst.sh new file mode 100644 index 0000000000..9424ce43ff --- /dev/null +++ b/misc/fcitx/doinst.sh @@ -0,0 +1,13 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/misc/fcitx/fcitx.SlackBuild b/misc/fcitx/fcitx.SlackBuild index edf856b515..b61ae0a7e0 100644 --- a/misc/fcitx/fcitx.SlackBuild +++ b/misc/fcitx/fcitx.SlackBuild @@ -1,15 +1,17 @@ #!/bin/sh # Slackware build script for fcitx -# Written by luoyi (luoyi.ly@gmail.com) -# Modified by the slackbuilds.org project. --michiel +# Written by vvoody + PRGNAM=fcitx -VERSION=${VERSION:-3.6} -SRCVER=${PKGVER:-3.6} +VERSION=${VERSION:-4.1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +GTK3=${GTK3:-Off} +OPENCC=${OPENCC:-Off} + # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -45,8 +47,8 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$SRCVER.tar.bz2 -cd $PRGNAM-$SRCVER +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -54,38 +56,48 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -./autogen.sh -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --build=$ARCH-slackware-linux +cp -a $CWD/pinyin.tar.gz data/ +cp -a $CWD/table.tar.gz data/table/ -make -make install DESTDIR=$PKG +mkdir build +cd build + cmake -DCMAKE_C_FLAGS:STRING=${SLKCFLAGS} \ + -DCMAKE_CXX_FLAGS:STRING=${SLKCFLAGS} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \ + -DENABLE_DBUS=On \ + -DENABLE_CAIRO=On \ + -DENABLE_PANGO=On \ + -DENABLE_TABLE=On \ + -DENABLE_GTK2_IM_MODULE=On \ + -DENABLE_GTK3_IM_MODULE=${GTK3} \ + -DENABLE_QT_IM_MODULE=On \ + -DENABLE_OPENCC=${OPENCC} \ + .. + make + make install DESTDIR=$PKG +cd .. find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/etc/profile.d -cat $CWD/fcitx.sh > $PKG/etc/profile.d/fcitx.sh -chmod 0755 $PKG/etc/profile.d/fcitx.sh +mv $PKG/usr/share/man $PKG/usr +find $PKG/usr/man -type f -exec gzip -9 {} \; -sed -i -e 's/^/#/' $PKG/usr/share/fcitx/data/tables.conf -cat $CWD/fcitx.config > $PKG/usr/share/fcitx/data/config -chmod 644 $PKG/usr/share/fcitx/data/config +mkdir -p $PKG/etc/profile.d +cat $CWD/profile.d/fcitx.sh > $PKG/etc/profile.d/fcitx.sh +cat $CWD/profile.d/fcitx.csh > $PKG/etc/profile.d/fcitx.csh +chmod 0755 $PKG/etc/profile.d/* -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc $PKG/usr +mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL README THANKS TODO \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/misc/fcitx/fcitx.config b/misc/fcitx/fcitx.config deleted file mode 100644 index 9e49ebd3a9..0000000000 --- a/misc/fcitx/fcitx.config +++ /dev/null @@ -1,109 +0,0 @@ -[程序] -显示字体(中)=* -显示字体(英)=Courier New -显示字体大小=12 -主窗口字体大小=12 -字体区域=zh_CN.UTF-8 -使用AA字体=1 -使用粗体=1 -使用托盘图标=1 - -[输出] -数字后跟半角符号=1 -Enter键行为=2 -分号键行为=2 -大写字母输入英文=1 -转换英文中的标点=1 -联想方式禁止翻页=1 - -[界面] -候选词个数=10 -主窗口使用3D界面=0 -输入条使用3D界面=2 -主窗口隐藏模式=0 -显示虚拟键盘=0 -输入条居中=1 -首次显示输入条=1 -# 输入条固定宽度(仅适用于码表输入法),0表示不固定宽度 -输入条固定宽度=0 -输入条偏移量X=0 -输入条偏移量Y=16 -序号后加点=1 -显示打字速度=1 -显示版本=1 -光标色=92 210 131 -主窗口背景色=240 255 240 -主窗口线条色=150 220 150 -主窗口输入法名称色=170 170 170 150 200 150 0 0 255 -输入窗背景色=240 255 240 -输入窗提示色=255 0 0 -输入窗用户输入色=0 0 255 -输入窗序号色=200 0 0 -输入窗第一个候选字色=0 150 100 -# 该颜色值只用于拼音中的用户自造词 -输入窗用户词组色=0 0 255 -输入窗提示编码色=100 100 255 -# 五笔、拼音的单字/系统词组均使用该颜色 -输入窗其它文本色=0 0 0 -输入窗线条色=90 160 90 -输入窗箭头色=255 0 0 -虚拟键盘窗背景色=220 220 220 -虚拟键盘窗字母色=80 0 0 -虚拟键盘窗符号色=0 0 0 - -# 除了“中英文快速切换键”外,其它的热键均可设置为两个,中间用空格分隔 -[热键] -打开/关闭输入法=CTRL_SPACE -# 中英文快速切换键 可以设置为L_CTRL R_CTRL L_SHIFT R_SHIFT L_SUPER R_SUPER -中英文快速切换键=L_SHIFT -双击中英文切换=0 -击键时间间隔=250 -光标跟随=CTRL_K -隐藏主窗口=CTRL_ALT_H -GBK支持=CTRL_M -GBK繁体切换键=CTRL_ALT_F -联想=CTRL_L -反查拼音=CTRL_ALT_E -全半角=SHIFT_SPACE -中文标点=ALT_SPACE -上一页=PGUP -下一页=PGDN -第二三候选词选择键=CTRL - -[输入法] -使用拼音=1 -拼音名称=智能拼音 -使用双拼=1 -双拼名称=智能双拼 -默认双拼方案=自然码 -使用区位=1 -区位名称=区位 -使用码表=1 -提示词库中的词组=1 -其他输入法= - -[拼音] -使用全拼=0 -拼音自动组词=1 -保存自动组词=0 -增加拼音常用字=CTRL_8 -删除拼音常用字=CTRL_7 -删除拼音用户词组=CTRL_DELETE -# 拼音以词定字键,等号后面紧接键,不要有空格 -拼音以词定字键=[] -# 重码调整方式说明:0-->不调整 1-->快速调整 2-->按频率调整 -拼音单字重码调整方式=2 -拼音词组重码调整方式=1 -拼音常用词重码调整方式=0 -模糊an和ang=0 -模糊en和eng=0 -模糊ian和iang=0 -模糊in和ing=0 -模糊ou和u=0 -模糊uan和uang=0 -模糊c和ch=0 -模糊f和h=0 -模糊l和n=0 -模糊s和sh=0 -模糊z和zh=0 - diff --git a/misc/fcitx/fcitx.info b/misc/fcitx/fcitx.info index b1c37fb2bf..6ecb8c5240 100644 --- a/misc/fcitx/fcitx.info +++ b/misc/fcitx/fcitx.info @@ -1,10 +1,14 @@ PRGNAM="fcitx" -VERSION="3.6.0" -HOMEPAGE="http://www.fcitx.org/" -DOWNLOAD="http://www.fcitx.org/download/fcitx-3.6.tar.bz2" -MD5SUM="fe2091474392413408991c4d677e135a" +VERSION="4.1.2" +HOMEPAGE="http://code.google.com/p/fcitx/" +DOWNLOAD="http://fcitx.googlecode.com/files/fcitx-4.1.2.tar.bz2 \ + http://fcitx.googlecode.com/files/pinyin.tar.gz \ + http://fcitx.googlecode.com/files/table.tar.gz" +MD5SUM="f72460f46e50f82c3738aa1f0d9b3125 \ + 34dcb1b5209c28baa4e87f6a2773bfd0 \ + acb0b112423474ab2c1a22cee590d636" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -MAINTAINER="luoyi" -EMAIL="luoyi.ly@gmail.com" -APPROVED="michiel" +MAINTAINER="vvoody" +EMAIL="vvoodywang@gmail.com" +APPROVED="rworkman" diff --git a/misc/fcitx/fcitx.sh b/misc/fcitx/fcitx.sh deleted file mode 100644 index 2845a17b07..0000000000 --- a/misc/fcitx/fcitx.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh -export GTK_IM_MODULE=xim -export XMODIFIERS="@im=fcitx" -export XIM=fcitx -export XIM_PROGRAM=fcitx - diff --git a/misc/fcitx/profile.d/fcitx.csh b/misc/fcitx/profile.d/fcitx.csh new file mode 100644 index 0000000000..ab1b455593 --- /dev/null +++ b/misc/fcitx/profile.d/fcitx.csh @@ -0,0 +1,7 @@ +#!/bin/csh + +setenv XMODIFIERS "@im=fcitx" +setenv XIM fcitx +setenv XIM_PROGRAM fcitx +setenv GTK_IM_MODULE fcitx +setenv QT_IM_MODULE fcitx diff --git a/misc/fcitx/profile.d/fcitx.sh b/misc/fcitx/profile.d/fcitx.sh new file mode 100644 index 0000000000..b4a5489517 --- /dev/null +++ b/misc/fcitx/profile.d/fcitx.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +export XMODIFIERS="@im=fcitx" +export XIM=fcitx +export XIM_PROGRAM=fcitx +export GTK_IM_MODULE=fcitx #=xim +export QT_IM_MODULE=fcitx #=xim \ No newline at end of file diff --git a/misc/fcitx/slack-desc b/misc/fcitx/slack-desc index dfec06f0b8..c1ecfbb640 100644 --- a/misc/fcitx/slack-desc +++ b/misc/fcitx/slack-desc @@ -5,15 +5,15 @@ # exactly 11 lines for the formatting to be correct. It's also customary to # leave one space after the ':'. - |-----handy-ruler------------------------------------------------------| + |-----handy-ruler------------------------------------------------------| fcitx: fcitx (Free Chinese Input Toy for X) -fcitx: -fcitx: fcitx is a simple and lightweight chinese input method -fcitx: for the X Windows System. -fcitx: -fcitx: It can only work under en_US.utf8 or zh_CN.GBK -fcitx: -fcitx: -fcitx: -fcitx: See: http://www.fcitx.org -fcitx: +fcitx: +fcitx: Fcitx(Free Chinese Input Toy for X) is a collection of +fcitx: Simplified Chinese input methods for Linux. It supports Pinyin, +fcitx: QuWei and Table-based input methods. +fcitx: +fcitx: There are some good modules you can choose, like fcitx-config, +fcitx: fcitx-{googlepinyin,sunpinyin,cloudpinyin}, fcitx-fbterm, etc. +fcitx: +fcitx: Homepage: http://code.google.com/p/fcitx/ +fcitx: -- cgit v1.2.3