wok diff scim/receipt @ rev 3534
merge 3532:012d72b2b629 , 3530:0109c31e8835
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Mon Jun 22 17:35:58 2009 +0800 (2009-06-22) |
parents | 0b02072d7f48 |
children | 1794ce625358 |
line diff
1.1 --- a/scim/receipt Mon Mar 16 22:38:09 2009 +0000 1.2 +++ b/scim/receipt Mon Jun 22 17:35:58 2009 +0800 1.3 @@ -1,22 +1,27 @@ 1.4 PACKAGE="scim" 1.5 -VERSION="1.4.7" 1.6 -CATEGORY="x-window" 1.7 -SHORT_DESC="Smart Common Input Method (SCIM)" 1.8 -MAINTAINER="slitaz@pworld.otherinbox.com" 1.9 -DEPENDS="gtk+ xorg-libXdamage" 1.10 -BUILD_DEPENDS="xorg-dev xorg-dev-proto gtk+-dev" 1.11 +VERSION="1.4.9" 1.12 +CATEGORY="utilities" 1.13 +SHORT_DESC="Smart Common Input Method (SCIM)." 1.14 +MAINTAINER="rocky@slitaz.org" 1.15 +DEPENDS="gtk+" 1.16 +BUILD_DEPENDS="gtk+-dev" 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 WEB_SITE="http://www.scim-im.org/" 1.19 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.20 +CONFIG_FILES="/etc/scim/config /etc/scim/global" 1.21 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 { 1.25 cd $src 1.26 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.27 - --sysconfdir=/etc --with-x \ 1.28 - --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ 1.29 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.30 + patch -p1 < ../stuff/scim-glibc-2.10.patch && 1.31 + ./configure --prefix=/usr \ 1.32 + --sysconfdir=/etc \ 1.33 + --with-x \ 1.34 + --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ 1.35 + --mandir=/usr/share/man \ 1.36 + --infodir=/usr/share/info \ 1.37 + $CONFIGURE_ARGS && 1.38 make && 1.39 make DESTDIR=$PWD/_pkg install 1.40 } 1.41 @@ -24,27 +29,37 @@ 1.42 # Rules to gen a SliTaz package suitable for Tazpkg. 1.43 genpkg_rules() 1.44 { 1.45 - mkdir -p $fs/usr 1.46 + mkdir -p $fs/usr/share/pixmaps 1.47 + cp -a $_pkg/etc $fs/ 1.48 cp -a $_pkg/usr/bin $fs/usr 1.49 - strip -s $fs/usr/bin/* 1.50 cp -a $_pkg/usr/lib $fs/usr 1.51 - mkdir -p $fs/usr/share 1.52 cp -a $_pkg/usr/share/scim $fs/usr/share 1.53 + cp $_pkg/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps 1.54 find $fs/usr/lib -name '*.la' -exec rm {} \; 1.55 find $fs/usr/lib -name '*.a' -exec rm {} \; 1.56 - find $fs/usr/lib -name '*.so' -exec strip -s {} \; 1.57 - mkdir -p $fs/usr/share/pixmaps 1.58 - cp $_pkg/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps 1.59 rm -rf $fs/usr/lib/pkgconfig 1.60 - chmod +x $fs/usr/bin/* 1.61 + chmod +x $fs/usr/bin/scim-setup 1.62 } 1.63 1.64 post_install() 1.65 { 1.66 echo "Processing post-install commands..." 1.67 - echo -n "updating gtk.immodules... " 1.68 + echo -n "Updating gtk.immodules... " 1.69 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules 1.70 echo "done." 1.71 +cat <<EOT 1.72 +In order to start scim and use chinese after boot time, 1.73 +add the following code to your ~/.profile file: 1.74 +------------ 1.75 +export XMODIFIERS=@im=SCIM 1.76 +export XIM="scim" 1.77 +export XINPUT="xim" 1.78 +export XIM_PROGRAM="scim -d" 1.79 +export GTK_IM_MODULE=scim 1.80 +export QT_IM_MODULE=scim 1.81 +scim -d & 1.82 +------------ 1.83 +EOT 1.84 } 1.85 1.86 post_remove()