wok annotate scim/receipt @ rev 17021

libmtp, mtp-tools: up 1.1.6
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Aug 13 17:45:35 2014 +0000 (2014-08-13)
parents d925fb3ac2bd
children 6fab3264ba87
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@15131 6 LICENSE="LGPL2.1"
pascal@1651 7 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@1651 8 WEB_SITE="http://www.scim-im.org/"
pascal@1651 9 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
rocky@3531 10 CONFIG_FILES="/etc/scim/config /etc/scim/global"
pascal@1651 11
pascal@15131 12 DEPENDS="gtk+ gcc-lib-base"
pascal@15131 13 BUILD_DEPENDS="gtk+-dev"
pascal@15131 14
pascal@1651 15 # Rules to configure and make the package.
pascal@1651 16 compile_rules()
pascal@1651 17 {
pascal@1651 18 cd $src
rocky@3573 19 while read file; do
rocky@3573 20 [ -f done.$file ] && continue
rocky@3573 21 echo "Apply $file..."
pascal@8974 22 patch -p1 < $stuff/$file || return 1
rocky@3573 23 touch done.$file
rocky@3573 24 done <<EOT
rocky@3573 25 scim-glibc-2.10.patch
rocky@3573 26 EOT
rocky@3531 27 ./configure --prefix=/usr \
rocky@3531 28 --sysconfdir=/etc \
rocky@3531 29 --with-x \
rocky@3531 30 --with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
rocky@3531 31 --mandir=/usr/share/man \
rocky@3531 32 --infodir=/usr/share/info \
pascal@15131 33 $CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES &&
gokhlayeh@11574 34 make $MAKEFLAGS &&
pascal@15131 35 make DESTDIR=$DESTDIR install
pascal@1651 36 }
pascal@1651 37
pascal@1651 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@1651 39 genpkg_rules()
pascal@1651 40 {
rocky@3531 41 mkdir -p $fs/usr/share/pixmaps
pascal@15131 42 cp -a $install/etc $fs/
pascal@15131 43 cp -a $install/usr/bin $fs/usr
pascal@15131 44 cp -a $install/usr/lib $fs/usr
pascal@15131 45 cp -a $install/usr/share/scim $fs/usr/share
pascal@15131 46 cp $install/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps
pascal@1651 47 find $fs/usr/lib -name '*.la' -exec rm {} \;
pascal@1651 48 find $fs/usr/lib -name '*.a' -exec rm {} \;
pascal@1651 49 rm -rf $fs/usr/lib/pkgconfig
rocky@3531 50 chmod +x $fs/usr/bin/scim-setup
pascal@1651 51 }
pascal@1651 52
pascal@1651 53 post_install()
pascal@1651 54 {
pascal@1651 55 echo "Processing post-install commands..."
rocky@3531 56 echo -n "Updating gtk.immodules... "
pascal@16223 57 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
pascal@1651 58 echo "done."
rocky@3531 59 cat <<EOT
rocky@3531 60 In order to start scim and use chinese after boot time,
rocky@4045 61 add the following code to your autostart.sh(openbox):
rocky@3531 62 ------------
rocky@3531 63 export XMODIFIERS=@im=SCIM
rocky@3531 64 export XIM="scim"
rocky@3531 65 export XINPUT="xim"
rocky@3531 66 export XIM_PROGRAM="scim -d"
rocky@3531 67 export GTK_IM_MODULE=scim
rocky@3531 68 export QT_IM_MODULE=scim
rocky@3531 69 scim -d &
rocky@3531 70 ------------
rocky@3531 71 EOT
pascal@1651 72 }
pascal@1651 73
pascal@1651 74 post_remove()
pascal@1651 75 {
pascal@1651 76 /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
pascal@1651 77 }