wok-current rev 10958
Add: opencc
author | Liu Peng <hipeng@yahoo.com> |
---|---|
date | Tue Sep 20 20:35:27 2011 +0800 (2011-09-20) |
parents | 90eda8e742d9 |
children | be1fa6a49b59 |
files | fcitx/receipt opencc-dev/receipt opencc-tools/receipt opencc/receipt |
line diff
1.1 --- a/fcitx/receipt Tue Sep 20 10:58:12 2011 +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 }
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/opencc-dev/receipt Tue Sep 20 20:35:27 2011 +0800 2.3 @@ -0,0 +1,19 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="opencc-dev" 2.7 +VERSION="0.2.0" 2.8 +CATEGORY="development" 2.9 +SHORT_DESC="Development files for OpenCC" 2.10 +MAINTAINER="liupeng <hipeng@yahoo.com>" 2.11 +DEPENDS="opencc" 2.12 +WEB_SITE="http://code.google.com/p/opencc/" 2.13 +WANTED="opencc" 2.14 + 2.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.16 +genpkg_rules() 2.17 +{ 2.18 + mkdir -p $fs/usr/lib/pkgconfig/ 2.19 + cp -a $_pkg/usr/include $fs/usr 2.20 + cp -a $_pkg/usr/lib/*.so $fs/usr/lib/ 2.21 + cp -a $_pkg/usr/lib/pkgconfig/*.pc $fs/usr/lib/pkgconfig/ 2.22 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/opencc-tools/receipt Tue Sep 20 20:35:27 2011 +0800 3.3 @@ -0,0 +1,17 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="opencc-tools" 3.7 +VERSION="0.2.0" 3.8 +CATEGORY="utilities" 3.9 +SHORT_DESC="Command line tools for OpenCC" 3.10 +MAINTAINER="liupeng <hipeng@yahoo.com>" 3.11 +DEPENDS="opencc" 3.12 +WEB_SITE="http://code.google.com/p/opencc/" 3.13 +WANTED="opencc" 3.14 + 3.15 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.16 +genpkg_rules() 3.17 +{ 3.18 + mkdir -p $fs/usr 3.19 + cp -a $_pkg/usr/bin $fs/usr 3.20 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/opencc/receipt Tue Sep 20 20:35:27 2011 +0800 4.3 @@ -0,0 +1,32 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="opencc" 4.7 +VERSION="0.2.0" 4.8 +CATEGORY="" 4.9 +SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion" 4.10 +MAINTAINER="liupeng <hipeng@yahoo.com>" 4.11 +DEPENDS="" 4.12 +BUILD_DEPENDS="cmake gettext" 4.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 4.14 +WEB_SITE="http://code.google.com/p/opencc/" 4.15 +WGET_URL="http://opencc.googlecode.com/p/files/$TARBALL" 4.16 + 4.17 +# Rules to configure and make the package. 4.18 +compile_rules() 4.19 +{ 4.20 + cd $src 4.21 + mkdir build 4.22 + pushd build 4.23 + cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1 4.24 + popd 4.25 + make -C build || return 1 4.26 + make install -C build DESTDIR=$PWD/_pkg 4.27 +} 4.28 + 4.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.30 +genpkg_rules() 4.31 +{ 4.32 + mkdir -p $fs/usr/lib/ $fs/usr/share/ 4.33 + cp -a $_pkg/usr/lib/lib*.so.* $fs/usr/lib/ 4.34 + cp -a $_pkg/usr/share/opencc/ $fs/usr/share/ 4.35 +}