wok annotate scim/receipt @ rev 10599
parole: fix bdeps and clean
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 26 15:26:37 2011 +0200 (2011-05-26) |
parents | 666fd56c3a0e |
children | 8e4c74abdf74 |
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" |
pascal@5007 | 6 DEPENDS="gtk+ gcc-lib-base" |
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@3573 | 17 while read file; do |
rocky@3573 | 18 [ -f done.$file ] && continue |
rocky@3573 | 19 echo "Apply $file..." |
pascal@8974 | 20 patch -p1 < $stuff/$file || return 1 |
rocky@3573 | 21 touch done.$file |
rocky@3573 | 22 done <<EOT |
rocky@3573 | 23 scim-glibc-2.10.patch |
rocky@3573 | 24 EOT |
rocky@3531 | 25 ./configure --prefix=/usr \ |
rocky@3531 | 26 --sysconfdir=/etc \ |
rocky@3531 | 27 --with-x \ |
rocky@3531 | 28 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \ |
rocky@3531 | 29 --mandir=/usr/share/man \ |
rocky@3531 | 30 --infodir=/usr/share/info \ |
rocky@3531 | 31 $CONFIGURE_ARGS && |
pascal@5777 | 32 make -j 4 && |
pascal@1651 | 33 make DESTDIR=$PWD/_pkg install |
pascal@1651 | 34 } |
pascal@1651 | 35 |
pascal@1651 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1651 | 37 genpkg_rules() |
pascal@1651 | 38 { |
rocky@3531 | 39 mkdir -p $fs/usr/share/pixmaps |
rocky@3531 | 40 cp -a $_pkg/etc $fs/ |
pascal@1651 | 41 cp -a $_pkg/usr/bin $fs/usr |
pascal@1651 | 42 cp -a $_pkg/usr/lib $fs/usr |
pascal@1651 | 43 cp -a $_pkg/usr/share/scim $fs/usr/share |
rocky@3531 | 44 cp $_pkg/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps |
pascal@1651 | 45 find $fs/usr/lib -name '*.la' -exec rm {} \; |
pascal@1651 | 46 find $fs/usr/lib -name '*.a' -exec rm {} \; |
pascal@1651 | 47 rm -rf $fs/usr/lib/pkgconfig |
rocky@3531 | 48 chmod +x $fs/usr/bin/scim-setup |
pascal@1651 | 49 } |
pascal@1651 | 50 |
pascal@1651 | 51 post_install() |
pascal@1651 | 52 { |
pascal@1651 | 53 echo "Processing post-install commands..." |
rocky@3531 | 54 echo -n "Updating gtk.immodules... " |
rocky@3573 | 55 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules |
pascal@1651 | 56 echo "done." |
rocky@3531 | 57 cat <<EOT |
rocky@3531 | 58 In order to start scim and use chinese after boot time, |
rocky@4045 | 59 add the following code to your autostart.sh(openbox): |
rocky@3531 | 60 ------------ |
rocky@3531 | 61 export XMODIFIERS=@im=SCIM |
rocky@3531 | 62 export XIM="scim" |
rocky@3531 | 63 export XINPUT="xim" |
rocky@3531 | 64 export XIM_PROGRAM="scim -d" |
rocky@3531 | 65 export GTK_IM_MODULE=scim |
rocky@3531 | 66 export QT_IM_MODULE=scim |
rocky@3531 | 67 scim -d & |
rocky@3531 | 68 ------------ |
rocky@3531 | 69 EOT |
pascal@1651 | 70 } |
pascal@1651 | 71 |
pascal@1651 | 72 post_remove() |
pascal@1651 | 73 { |
pascal@1651 | 74 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules |
pascal@1651 | 75 } |