wok-4.x rev 10962

Fixed opencc CATEGORY. Don't use pushd and popd cause build bot may not use bash. Some clean up.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Sep 20 10:22:35 2011 +0000 (2011-09-20)
parents 66ba59187c47
children b4bb522836eb
files fcitx-googlepinyin/receipt fcitx/receipt libgooglepinyin/receipt opencc/receipt
line diff
     1.1 --- a/fcitx-googlepinyin/receipt	Tue Sep 20 20:44:27 2011 +0800
     1.2 +++ b/fcitx-googlepinyin/receipt	Tue Sep 20 10:22:35 2011 +0000
     1.3 @@ -14,13 +14,12 @@
     1.4  # Rules to configure and make the package.
     1.5  compile_rules()
     1.6  {
     1.7 +	mkdir -p $src/build
     1.8 +	cd $src/build
     1.9 +	cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1
    1.10  	cd $src
    1.11 -	mkdir build
    1.12 -	pushd build
    1.13 -	cmake ../ -DCMAKE_INSTALL_PREFIX=/usr || return 1
    1.14 -	popd
    1.15  	make -C build || return 1
    1.16 -	make install/fast -C build DESTDIR=$PWD/_pkg
    1.17 +	make install/fast -C build DESTDIR=$DESTDIR
    1.18  }
    1.19  
    1.20  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- a/fcitx/receipt	Tue Sep 20 20:44:27 2011 +0800
     2.2 +++ b/fcitx/receipt	Tue Sep 20 10:22:35 2011 +0000
     2.3 @@ -14,13 +14,12 @@
     2.4  # Rules to configure and make the package.
     2.5  compile_rules()
     2.6  {
     2.7 +    mkdir -p $src/build
     2.8 +    cd $src/build
     2.9 +    cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_QT_IM_MODULE=OFF -DENABLE_GTK2_IM_MODULE=OFF -DENABLE_GTK3_IM_MODULE=OFF -DENABLE_OPENCC=ON || return 1
    2.10      cd $src
    2.11 -    mkdir build
    2.12 -    pushd build
    2.13 -    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
    2.14 -    popd
    2.15      make -C build || return 1
    2.16 -    make install/fast -C build DESTDIR=$PWD/_pkg
    2.17 +    make install/fast -C build DESTDIR=$DESTDIR
    2.18  }
    2.19  
    2.20  # Rules to gen a SliTaz package suitable for Tazpkg.
     3.1 --- a/libgooglepinyin/receipt	Tue Sep 20 20:44:27 2011 +0800
     3.2 +++ b/libgooglepinyin/receipt	Tue Sep 20 10:22:35 2011 +0000
     3.3 @@ -14,13 +14,12 @@
     3.4  # Rules to configure and make the package.
     3.5  compile_rules()
     3.6  {
     3.7 +	mkdir -p $src/build
     3.8 +	cd $src/build
     3.9 +	cmake $src -DCMAKE_INSTALL_PREFIX=/usr || return 1
    3.10  	cd $src
    3.11 -	mkdir build
    3.12 -	pushd build
    3.13 -	cmake ../ -DCMAKE_INSTALL_PREFIX=/usr || return 11
    3.14 -	popd
    3.15  	make -C build || return 1
    3.16 -	make install/fast -C build DESTDIR=$PWD/_pkg
    3.17 +	make install/fast -C build DESTDIR=$DESTDIR
    3.18  }
    3.19  
    3.20  # Rules to gen a SliTaz package suitable for Tazpkg.
     4.1 --- a/opencc/receipt	Tue Sep 20 20:44:27 2011 +0800
     4.2 +++ b/opencc/receipt	Tue Sep 20 10:22:35 2011 +0000
     4.3 @@ -2,7 +2,7 @@
     4.4  
     4.5  PACKAGE="opencc"
     4.6  VERSION="0.2.0"
     4.7 -CATEGORY=""
     4.8 +CATEGORY="misc"
     4.9  SHORT_DESC="Libraries for Simplified-Traditional Chinese Conversion"
    4.10  MAINTAINER="liupeng <hipeng@yahoo.com>"
    4.11  DEPENDS=""
    4.12 @@ -14,13 +14,12 @@
    4.13  # Rules to configure and make the package.
    4.14  compile_rules()
    4.15  {
    4.16 +	mkdir -p $src/build
    4.17 +	cd $src/build
    4.18 +	cmake $src -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1
    4.19  	cd $src
    4.20 -	mkdir build
    4.21 -	pushd build
    4.22 -	cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT:BOOL=ON || return 1
    4.23 -	popd
    4.24  	make -C build || return 1
    4.25 -	make install -C build DESTDIR=$PWD/_pkg
    4.26 +	make install -C build DESTDIR=$DESTDIR
    4.27  }
    4.28  
    4.29  # Rules to gen a SliTaz package suitable for Tazpkg.