wok diff scim-pinyin/receipt @ 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 0b02072d7f48
children 1794ce625358
line diff
     1.1 --- a/scim-pinyin/receipt	Mon Mar 16 22:38:09 2009 +0000
     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 -}