wok diff fcitx/receipt @ rev 10958
Add: opencc
author | Liu Peng <hipeng@yahoo.com> |
---|---|
date | Tue Sep 20 20:35:27 2011 +0800 (2011-09-20) |
parents | a6cc66b552c6 |
children | 3af70ef3a7ac |
line diff
1.1 --- a/fcitx/receipt Tue Dec 21 15:30:57 2010 +0800 1.2 +++ b/fcitx/receipt Tue Sep 20 20:35:27 2011 +0800 1.3 @@ -1,13 +1,13 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="fcitx" 1.7 -VERSION="4.0.1" 1.8 +VERSION="4.1.1" 1.9 CATEGORY="x-window" 1.10 SHORT_DESC="Free Chinese Input Toy of X, a collection of Simplified Chinese input methods for Linux." 1.11 MAINTAINER="lufeng369@gmail.com" 1.12 -DEPENDS="dbus pango" 1.13 -BUILD_DEPENDS="intltool xorg-libXrender-dev pkg-config cairo-dev pango-dev" 1.14 -TARBALL="$PACKAGE-${VERSION}_all.tar.gz" 1.15 +DEPENDS="libfcitx fcitx-skin-default gtk+" 1.16 +BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev gcc" 1.17 +TARBALL="$PACKAGE-${VERSION}_all.tar.bz2" 1.18 WEB_SITE="http://code.google.com/p/fcitx/" 1.19 WGET_URL="http://fcitx.googlecode.com/files/$TARBALL" 1.20 1.21 @@ -15,22 +15,27 @@ 1.22 compile_rules() 1.23 { 1.24 cd $src 1.25 - ./configure \ 1.26 - --prefix=/usr \ 1.27 - --disable-table-data && 1.28 - make && make DESTDIR=$PWD/_pkg install 1.29 + mkdir build 1.30 + pushd build 1.31 + cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_QT_IM_MODULE=OFF -DENABLE_GTK2_IM_MODULE=OFF -DENABLE_GTK3_IM_MODULE=OFF -DENABLE_OPENCC=ON || return 1 1.32 + popd 1.33 + make -C build || return 1 1.34 + make install/fast -C build DESTDIR=$PWD/_pkg 1.35 } 1.36 1.37 # Rules to gen a SliTaz package suitable for Tazpkg. 1.38 genpkg_rules() 1.39 { 1.40 - mkdir -p $fs/usr 1.41 - cp -a $_pkg/usr $fs/ 1.42 - sed -i \ 1.43 - -e 's/DefaultValue=default/DefaultValue=classic/' \ 1.44 - -e 's/DefaultValue=L_CTRL/DefaultValue=L_SHIFT/' \ 1.45 - -e 's/DefaultValue=ALT_SPACE/DefaultValue=CTRL_./' \ 1.46 - -e 's/DefaultValue=-/DefaultValue=,/' \ 1.47 - -e 's/DefaultValue==/DefaultValue=./' $fs/usr/share/fcitx/data/config.desc 1.48 - 1.49 + mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/ 1.50 + cp -a $_pkg/usr/bin/fcitx $fs/usr/bin/ 1.51 + cp -a $_pkg/usr/bin/fcitx-configtool $fs/usr/bin/ 1.52 + cp -a $_pkg/usr/bin/fcitx-remote $fs/usr/bin/ 1.53 + cp -a $_pkg/usr/bin/fcitx4-config $fs/usr/bin/ 1.54 + cp -a $_pkg/usr/share/fcitx/addon/ $fs/usr/share/fcitx/ 1.55 + cp -a $_pkg/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/ 1.56 + cp -a $_pkg/usr/share/fcitx/data/ $fs/usr/share/fcitx/ 1.57 + cp -a $_pkg/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/ 1.58 + cp -a $_pkg/usr/share/fcitx/table/ $fs/usr/share/fcitx/ 1.59 + cp -a $_pkg/usr/share/applications/*.desktop $fs/usr/share/applications/ 1.60 + cp -a $_pkg/usr/share/icons/ $fs/usr/share/ 1.61 }