wok-4.x annotate scim/receipt @ rev 3531
scim: Update to version 1.4.9
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Mon Jun 22 13:37:35 2009 +0800 (2009-06-22) |
parents | 0b02072d7f48 |
children | 1794ce625358 |
rev | line source |
---|---|
pascal@1651 | 1 PACKAGE="scim" |
rocky@3531 | 2 VERSION="1.4.9" |
rocky@3531 | 3 CATEGORY="utilities" |
rocky@3531 | 4 SHORT_DESC="Smart Common Input Method (SCIM)." |
rocky@3531 | 5 MAINTAINER="rocky@slitaz.org" |
rocky@3531 | 6 DEPENDS="gtk+" |
rocky@3531 | 7 BUILD_DEPENDS="gtk+-dev" |
pascal@1651 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@1651 | 9 WEB_SITE="http://www.scim-im.org/" |
pascal@1651 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
rocky@3531 | 11 CONFIG_FILES="/etc/scim/config /etc/scim/global" |
pascal@1651 | 12 |
pascal@1651 | 13 # Rules to configure and make the package. |
pascal@1651 | 14 compile_rules() |
pascal@1651 | 15 { |
pascal@1651 | 16 cd $src |
rocky@3531 | 17 patch -p1 < ../stuff/scim-glibc-2.10.patch && |
rocky@3531 | 18 ./configure --prefix=/usr \ |
rocky@3531 | 19 --sysconfdir=/etc \ |
rocky@3531 | 20 --with-x \ |
rocky@3531 | 21 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ |
rocky@3531 | 22 --mandir=/usr/share/man \ |
rocky@3531 | 23 --infodir=/usr/share/info \ |
rocky@3531 | 24 $CONFIGURE_ARGS && |
pascal@1651 | 25 make && |
pascal@1651 | 26 make DESTDIR=$PWD/_pkg install |
pascal@1651 | 27 } |
pascal@1651 | 28 |
pascal@1651 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1651 | 30 genpkg_rules() |
pascal@1651 | 31 { |
rocky@3531 | 32 mkdir -p $fs/usr/share/pixmaps |
rocky@3531 | 33 cp -a $_pkg/etc $fs/ |
pascal@1651 | 34 cp -a $_pkg/usr/bin $fs/usr |
pascal@1651 | 35 cp -a $_pkg/usr/lib $fs/usr |
pascal@1651 | 36 cp -a $_pkg/usr/share/scim $fs/usr/share |
rocky@3531 | 37 cp $_pkg/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps |
pascal@1651 | 38 find $fs/usr/lib -name '*.la' -exec rm {} \; |
pascal@1651 | 39 find $fs/usr/lib -name '*.a' -exec rm {} \; |
pascal@1651 | 40 rm -rf $fs/usr/lib/pkgconfig |
rocky@3531 | 41 chmod +x $fs/usr/bin/scim-setup |
pascal@1651 | 42 } |
pascal@1651 | 43 |
pascal@1651 | 44 post_install() |
pascal@1651 | 45 { |
pascal@1651 | 46 echo "Processing post-install commands..." |
rocky@3531 | 47 echo -n "Updating gtk.immodules... " |
pascal@1651 | 48 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules |
pascal@1651 | 49 echo "done." |
rocky@3531 | 50 cat <<EOT |
rocky@3531 | 51 In order to start scim and use chinese after boot time, |
rocky@3531 | 52 add the following code to your ~/.profile file: |
rocky@3531 | 53 ------------ |
rocky@3531 | 54 export XMODIFIERS=@im=SCIM |
rocky@3531 | 55 export XIM="scim" |
rocky@3531 | 56 export XINPUT="xim" |
rocky@3531 | 57 export XIM_PROGRAM="scim -d" |
rocky@3531 | 58 export GTK_IM_MODULE=scim |
rocky@3531 | 59 export QT_IM_MODULE=scim |
rocky@3531 | 60 scim -d & |
rocky@3531 | 61 ------------ |
rocky@3531 | 62 EOT |
pascal@1651 | 63 } |
pascal@1651 | 64 |
pascal@1651 | 65 post_remove() |
pascal@1651 | 66 { |
pascal@1651 | 67 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules |
pascal@1651 | 68 } |