# HG changeset patch # User Liu Peng # Date 1245649213 -28800 # Node ID 012d72b2b62928244729a9003ac8787664d84e52 # Parent 8b3ae6a93757695b47ae57fce4f3bf588109bdd7 scim-pinyin: Add patch cstring-gcc43.patch, build with gcc 4.4 diff -r 8b3ae6a93757 -r 012d72b2b629 scim-pinyin/receipt --- a/scim-pinyin/receipt Mon Jun 22 13:37:35 2009 +0800 +++ b/scim-pinyin/receipt Mon Jun 22 13:40:13 2009 +0800 @@ -3,52 +3,34 @@ PACKAGE="scim-pinyin" VERSION="0.5.91" CATEGORY="utilities" -SHORT_DESC="Chinese PinYin input for SCIM" -MAINTAINER="slitaz@pworld.otherinbox.com" -DEPENDS="scim xorg-libXdamage" -BUILD_DEPENDS="scim scim-dev" +SHORT_DESC="Chinese PinYin input for SCIM." +MAINTAINER="rocky@slitaz.org" +DEPENDS="scim" +BUILD_DEPENDS="scim-dev" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://www.scim-im.org/" -#WGET_URL="$SF_MIRROR/scim/$TARBALL" -WGET_URL="http://kent.dl.sourceforge.net/sourceforge/scim/$TARBALL" +WGET_URL="$SF_MIRROR/scim/$TARBALL" +#WGET_URL="http://kent.dl.sourceforge.net/sourceforge/scim/$TARBALL" # Rules to configure and make the package. compile_rules() { - cd $src - export PKG_CONFIG_PATH=/usr/pkgconfig - ./configure --prefix=/usr --infodir=/usr/share/info \ - --mandir=/usr/share/man --disable-static $CONFIGURE_ARGS && - make && - make DESTDIR=$PWD/_pkg install + cd $src + patch -p1 < ../stuff/cstring-gcc43.patch && + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --disable-static \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share - cp -a $_pkg/usr/lib $fs/usr - cp -a $_pkg/usr/share/scim $fs/usr/share - - # say goodbye to .la files - find $fs/usr/lib -name '*.la' -exec rm {} \; - find $fs/usr/lib -name '*.so' -exec strip -s {} \; + mkdir -p $fs/usr/share + cp -a $_pkg/usr/lib $fs/usr + cp -a $_pkg/usr/share/scim $fs/usr/share + find $fs/usr/lib -name '*.la' -exec rm {} \; } - -# Pre and post install commands for Tazpkg. -post_install() -{ - cat < + #include "scim_pinyin.h" ++#include + + // Internal functions + static int +--- scim-pinyin-0.5.91.orig/src/scim_phrase.cpp Thu Jan 6 21:30:58 2005 ++++ scim-pinyin-0.5.91/src/scim_phrase.cpp Mon Jun 22 12:25:33 2009 +@@ -30,6 +30,7 @@ + #include + #include "scim_pinyin_private.h" + #include "scim_phrase.h" ++#include + + static const char scim_phrase_lib_text_header [] = "SCIM_Phrase_Library_TEXT"; + static const char scim_phrase_lib_binary_header [] = "SCIM_Phrase_Library_BINARY"; +--- scim-pinyin-0.5.91.orig/src/scim_pinyin_phrase.cpp Sat Aug 6 20:06:49 2005 ++++ scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp Mon Jun 22 12:26:12 2009 +@@ -31,6 +31,7 @@ + #include "scim_phrase.h" + #include "scim_pinyin.h" + #include "scim_pinyin_phrase.h" ++#include + + static const char scim_pinyin_lib_text_header [] = "SCIM_Pinyin_Library_TEXT"; + static const char scim_pinyin_lib_binary_header [] = "SCIM_Pinyin_Library_BINARY"; +--- scim-pinyin-0.5.91.orig/src/scim_special_table.cpp Thu Jan 6 21:31:02 2005 ++++ scim-pinyin-0.5.91/src/scim_special_table.cpp Mon Jun 22 12:27:10 2009 +@@ -24,6 +24,7 @@ + #include + #include "scim_pinyin_private.h" + #include "scim_special_table.h" ++#include + + static inline String + _trim_blank (const String &str)