# HG changeset patch # User Liu Peng # Date 1316522127 -28800 # Node ID 3f3e2cc53af09f3c62528674df0e4d3e7e6f1d23 # Parent 90eda8e742d92d4aa0c97f5ea5ed43f9d2bf15b7 Add: opencc diff -r 90eda8e742d9 -r 3f3e2cc53af0 fcitx/receipt --- a/fcitx/receipt Tue Sep 20 10:58:12 2011 +0800 +++ b/fcitx/receipt Tue Sep 20 20:35:27 2011 +0800 @@ -1,13 +1,13 @@ # SliTaz package receipt. PACKAGE="fcitx" -VERSION="4.0.1" +VERSION="4.1.1" CATEGORY="x-window" SHORT_DESC="Free Chinese Input Toy of X, a collection of Simplified Chinese input methods for Linux." MAINTAINER="lufeng369@gmail.com" -DEPENDS="dbus pango" -BUILD_DEPENDS="intltool xorg-libXrender-dev pkg-config cairo-dev pango-dev" -TARBALL="$PACKAGE-${VERSION}_all.tar.gz" +DEPENDS="libfcitx fcitx-skin-default gtk+" +BUILD_DEPENDS="cmake intltool cairo-dev pango-dev gtk+-dev dbus-dev opencc-dev gcc" +TARBALL="$PACKAGE-${VERSION}_all.tar.bz2" WEB_SITE="http://code.google.com/p/fcitx/" WGET_URL="http://fcitx.googlecode.com/files/$TARBALL" @@ -15,22 +15,27 @@ compile_rules() { cd $src - ./configure \ - --prefix=/usr \ - --disable-table-data && - make && make DESTDIR=$PWD/_pkg install + mkdir build + pushd build + 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 + popd + make -C build || return 1 + make install/fast -C build DESTDIR=$PWD/_pkg } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr - cp -a $_pkg/usr $fs/ - sed -i \ - -e 's/DefaultValue=default/DefaultValue=classic/' \ - -e 's/DefaultValue=L_CTRL/DefaultValue=L_SHIFT/' \ - -e 's/DefaultValue=ALT_SPACE/DefaultValue=CTRL_./' \ - -e 's/DefaultValue=-/DefaultValue=,/' \ - -e 's/DefaultValue==/DefaultValue=./' $fs/usr/share/fcitx/data/config.desc - + mkdir -p $fs/usr/bin/ $fs/usr/share/fcitx/ $fs/usr/share/applications/ + cp -a $_pkg/usr/bin/fcitx $fs/usr/bin/ + cp -a $_pkg/usr/bin/fcitx-configtool $fs/usr/bin/ + cp -a $_pkg/usr/bin/fcitx-remote $fs/usr/bin/ + cp -a $_pkg/usr/bin/fcitx4-config $fs/usr/bin/ + cp -a $_pkg/usr/share/fcitx/addon/ $fs/usr/share/fcitx/ + cp -a $_pkg/usr/share/fcitx/configdesc/ $fs/usr/share/fcitx/ + cp -a $_pkg/usr/share/fcitx/data/ $fs/usr/share/fcitx/ + cp -a $_pkg/usr/share/fcitx/pinyin/ $fs/usr/share/fcitx/ + cp -a $_pkg/usr/share/fcitx/table/ $fs/usr/share/fcitx/ + cp -a $_pkg/usr/share/applications/*.desktop $fs/usr/share/applications/ + cp -a $_pkg/usr/share/icons/ $fs/usr/share/ } diff -r 90eda8e742d9 -r 3f3e2cc53af0 opencc-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/opencc-dev/receipt Tue Sep 20 20:35:27 2011 +0800 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="opencc-dev" +VERSION="0.2.0" +CATEGORY="development" +SHORT_DESC="Development files for OpenCC" +MAINTAINER="liupeng " +DEPENDS="opencc" +WEB_SITE="http://code.google.com/p/opencc/" +WANTED="opencc" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/pkgconfig/ + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/lib/*.so $fs/usr/lib/ + cp -a $_pkg/usr/lib/pkgconfig/*.pc $fs/usr/lib/pkgconfig/ +} diff -r 90eda8e742d9 -r 3f3e2cc53af0 opencc-tools/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/opencc-tools/receipt Tue Sep 20 20:35:27 2011 +0800 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="opencc-tools" +VERSION="0.2.0" +CATEGORY="utilities" +SHORT_DESC="Command line tools for OpenCC" +MAINTAINER="liupeng " +DEPENDS="opencc" +WEB_SITE="http://code.google.com/p/opencc/" +WANTED="opencc" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr +} diff -r 90eda8e742d9 -r 3f3e2cc53af0 opencc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/opencc/receipt Tue Sep 20 20:35:27 2011 +0800 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="opencc" +VERSION="0.2.0" +CATEGORY="" +SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion" +MAINTAINER="liupeng " +DEPENDS="" +BUILD_DEPENDS="cmake gettext" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://code.google.com/p/opencc/" +WGET_URL="http://opencc.googlecode.com/p/files/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + mkdir build + pushd build + cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1 + popd + make -C build || return 1 + make install -C build DESTDIR=$PWD/_pkg +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/ $fs/usr/share/ + cp -a $_pkg/usr/lib/lib*.so.* $fs/usr/lib/ + cp -a $_pkg/usr/share/opencc/ $fs/usr/share/ +}