wok-current rev 3532
scim-pinyin: Add patch cstring-gcc43.patch, build with gcc 4.4
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Mon Jun 22 13:40:13 2009 +0800 (2009-06-22) |
parents | 8b3ae6a93757 |
children | 58e54cfc221a 4787fefb7398 |
files | scim-pinyin/receipt scim-pinyin/stuff/cstring-gcc43.patch |
line diff
1.1 --- a/scim-pinyin/receipt Mon Jun 22 13:37:35 2009 +0800 1.2 +++ b/scim-pinyin/receipt Mon Jun 22 13:40:13 2009 +0800 1.3 @@ -3,52 +3,34 @@ 1.4 PACKAGE="scim-pinyin" 1.5 VERSION="0.5.91" 1.6 CATEGORY="utilities" 1.7 -SHORT_DESC="Chinese PinYin input for SCIM" 1.8 -MAINTAINER="slitaz@pworld.otherinbox.com" 1.9 -DEPENDS="scim xorg-libXdamage" 1.10 -BUILD_DEPENDS="scim scim-dev" 1.11 +SHORT_DESC="Chinese PinYin input for SCIM." 1.12 +MAINTAINER="rocky@slitaz.org" 1.13 +DEPENDS="scim" 1.14 +BUILD_DEPENDS="scim-dev" 1.15 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 WEB_SITE="http://www.scim-im.org/" 1.17 -#WGET_URL="$SF_MIRROR/scim/$TARBALL" 1.18 -WGET_URL="http://kent.dl.sourceforge.net/sourceforge/scim/$TARBALL" 1.19 +WGET_URL="$SF_MIRROR/scim/$TARBALL" 1.20 +#WGET_URL="http://kent.dl.sourceforge.net/sourceforge/scim/$TARBALL" 1.21 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 { 1.25 - cd $src 1.26 - export PKG_CONFIG_PATH=/usr/pkgconfig 1.27 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.28 - --mandir=/usr/share/man --disable-static $CONFIGURE_ARGS && 1.29 - make && 1.30 - make DESTDIR=$PWD/_pkg install 1.31 + cd $src 1.32 + patch -p1 < ../stuff/cstring-gcc43.patch && 1.33 + ./configure --prefix=/usr \ 1.34 + --mandir=/usr/share/man \ 1.35 + --infodir=/usr/share/info \ 1.36 + --disable-static \ 1.37 + $CONFIGURE_ARGS && 1.38 + make && 1.39 + make DESTDIR=$PWD/_pkg install 1.40 } 1.41 1.42 # Rules to gen a SliTaz package suitable for Tazpkg. 1.43 genpkg_rules() 1.44 { 1.45 - mkdir -p $fs/usr/share 1.46 - cp -a $_pkg/usr/lib $fs/usr 1.47 - cp -a $_pkg/usr/share/scim $fs/usr/share 1.48 - 1.49 - # say goodbye to .la files 1.50 - find $fs/usr/lib -name '*.la' -exec rm {} \; 1.51 - find $fs/usr/lib -name '*.so' -exec strip -s {} \; 1.52 + mkdir -p $fs/usr/share 1.53 + cp -a $_pkg/usr/lib $fs/usr 1.54 + cp -a $_pkg/usr/share/scim $fs/usr/share 1.55 + find $fs/usr/lib -name '*.la' -exec rm {} \; 1.56 } 1.57 - 1.58 -# Pre and post install commands for Tazpkg. 1.59 -post_install() 1.60 -{ 1.61 - cat <<EOT 1.62 ------------- 1.63 -In order to start scim and use chinese after boot time, 1.64 -add the following code to your ~/.profile file: 1.65 -export XMODIFIERS=@im=SCIM 1.66 -export XIM="scim" 1.67 -export XINPUT="xim" 1.68 -export XIM_PROGRAM="scim -d" 1.69 -export GTK_IM_MODULE=scim 1.70 -export QT_IM_MODULE=scim 1.71 -scim -d & 1.72 ------------- 1.73 -EOT 1.74 -}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/scim-pinyin/stuff/cstring-gcc43.patch Mon Jun 22 13:40:13 2009 +0800 2.3 @@ -0,0 +1,40 @@ 2.4 +--- scim-pinyin-0.5.91.orig/src/scim_pinyin.cpp Mon Aug 8 14:11:16 2005 2.5 ++++ scim-pinyin-0.5.91/src/scim_pinyin.cpp Mon Jun 22 12:24:33 2009 2.6 +@@ -30,6 +30,7 @@ 2.7 + 2.8 + #include <scim.h> 2.9 + #include "scim_pinyin.h" 2.10 ++#include <cstring> 2.11 + 2.12 + // Internal functions 2.13 + static int 2.14 +--- scim-pinyin-0.5.91.orig/src/scim_phrase.cpp Thu Jan 6 21:30:58 2005 2.15 ++++ scim-pinyin-0.5.91/src/scim_phrase.cpp Mon Jun 22 12:25:33 2009 2.16 +@@ -30,6 +30,7 @@ 2.17 + #include <scim.h> 2.18 + #include "scim_pinyin_private.h" 2.19 + #include "scim_phrase.h" 2.20 ++#include <cstring> 2.21 + 2.22 + static const char scim_phrase_lib_text_header [] = "SCIM_Phrase_Library_TEXT"; 2.23 + static const char scim_phrase_lib_binary_header [] = "SCIM_Phrase_Library_BINARY"; 2.24 +--- scim-pinyin-0.5.91.orig/src/scim_pinyin_phrase.cpp Sat Aug 6 20:06:49 2005 2.25 ++++ scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp Mon Jun 22 12:26:12 2009 2.26 +@@ -31,6 +31,7 @@ 2.27 + #include "scim_phrase.h" 2.28 + #include "scim_pinyin.h" 2.29 + #include "scim_pinyin_phrase.h" 2.30 ++#include <cstring> 2.31 + 2.32 + static const char scim_pinyin_lib_text_header [] = "SCIM_Pinyin_Library_TEXT"; 2.33 + static const char scim_pinyin_lib_binary_header [] = "SCIM_Pinyin_Library_BINARY"; 2.34 +--- scim-pinyin-0.5.91.orig/src/scim_special_table.cpp Thu Jan 6 21:31:02 2005 2.35 ++++ scim-pinyin-0.5.91/src/scim_special_table.cpp Mon Jun 22 12:27:10 2009 2.36 +@@ -24,6 +24,7 @@ 2.37 + #include <scim.h> 2.38 + #include "scim_pinyin_private.h" 2.39 + #include "scim_special_table.h" 2.40 ++#include <cstring> 2.41 + 2.42 + static inline String 2.43 + _trim_blank (const String &str)