wok-next diff scim/receipt @ rev 19741

Many random packages update/upgrade.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jun 05 16:48:55 2017 +0300 (2017-06-05)
parents 6fab3264ba87
children e70c0b9c5adf
line diff
     1.1 --- a/scim/receipt	Fri Dec 25 15:23:46 2015 +0200
     1.2 +++ b/scim/receipt	Mon Jun 05 16:48:55 2017 +0300
     1.3 @@ -1,64 +1,65 @@
     1.4 +# SliTaz package receipt v2.
     1.5 +
     1.6  PACKAGE="scim"
     1.7 -VERSION="1.4.9"
     1.8 +VERSION="1.4.17"
     1.9  CATEGORY="utilities"
    1.10 -SHORT_DESC="Smart Common Input Method (SCIM)."
    1.11 +SHORT_DESC="Smart Common Input Method"
    1.12  MAINTAINER="rocky@slitaz.org"
    1.13  LICENSE="LGPL2.1"
    1.14 +WEB_SITE="https://github.com/scim-im/scim"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://www.scim-im.org/"
    1.18 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.19 -CONFIG_FILES="/etc/scim/config /etc/scim/global"
    1.20 +WGET_URL="https://github.com/scim-im/scim/archive/$TARBALL"
    1.21  
    1.22 -DEPENDS="gtk+ gcc-lib-base"
    1.23 -BUILD_DEPENDS="gtk+-dev"
    1.24 +BUILD_DEPENDS="gettext automake intltool libtool doxygen coreutils-path \
    1.25 +libxslt docbook-xsl gtk+-dev xorg-libX11-dev"
    1.26 +SPLIT="scim-dev"
    1.27  
    1.28  # Rules to configure and make the package.
    1.29  compile_rules()
    1.30  {
    1.31 -	while read file; do
    1.32 -		[ -f done.$file ] && continue
    1.33 -		echo "Apply $file..."
    1.34 -		patch -p1 -i $stuff/$file || return 1
    1.35 -		touch done.$file
    1.36 -	done <<EOT
    1.37 -scim-glibc-2.10.patch
    1.38 -EOT
    1.39 +	./bootstrap &&
    1.40  
    1.41  	./configure \
    1.42 -		--prefix=/usr \
    1.43  		--sysconfdir=/etc \
    1.44  		--with-x \
    1.45 -		--with-gtk-im-module-dir=$(ls -d /usr/lib/gtk-2*/2*/immodules/) \
    1.46 -		--mandir=/usr/share/man \
    1.47 -		--infodir=/usr/share/info \
    1.48 -		$CONFIGURE_ARGS 2>&1 | grep -v po/POTFILES &&
    1.49 +		$CONFIGURE_ARGS &&
    1.50  	make $MAKEFLAGS &&
    1.51 -	make DESTDIR=$DESTDIR install
    1.52 +	make install
    1.53  }
    1.54  
    1.55  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.56  genpkg_rules()
    1.57  {
    1.58 -	mkdir -p $fs/usr/share/pixmaps
    1.59 -	cp -a $install/etc $fs/
    1.60 -	cp -a $install/usr/bin $fs/usr
    1.61 -	cp -a $install/usr/lib $fs/usr
    1.62 -	cp -a $install/usr/share/scim $fs/usr/share
    1.63 -	cp $install/usr/share/pixmaps/scim-setup.png $fs/usr/share/pixmaps
    1.64 -	find $fs/usr/lib -name '*.la' -exec rm {} \;
    1.65 -	find $fs/usr/lib -name '*.a' -exec rm {} \;
    1.66 -	rm -rf $fs/usr/lib/pkgconfig
    1.67 -	chmod +x $fs/usr/bin/scim-setup
    1.68 +	case $PACKAGE in
    1.69 +		scim)
    1.70 +			copy @std
    1.71 +			DEPENDS="atk bzlib cairo fontconfig freetype gdk-pixbuf glib gtk+ \
    1.72 +			harfbuzz libffi libgio libltdl liblzma libpng libxcb libxml2 pango \
    1.73 +			pcre pixman xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext \
    1.74 +			xorg-libXrender zlib"
    1.75 +			CONFIG_FILES="/etc/scim/config /etc/scim/global"
    1.76 +			;;
    1.77 +		*-dev)
    1.78 +			copy @dev
    1.79 +			DEPENDS="scim atk-dev bzip2-dev cairo-dev fontconfig-dev \
    1.80 +			freetype-dev gdk-pixbuf-dev glib-dev glibc-dev gtk+-dev \
    1.81 +			harfbuzz-dev libffi-dev libgio-dev liblzma-dev libpng-dev libtool \
    1.82 +			libxcb-dev libxml2-dev pango-dev pcre-dev pixman-dev \
    1.83 +			xorg-libX11-dev xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
    1.84 +			xorg-libXrender-dev zlib-dev"
    1.85 +			;;
    1.86 +	esac
    1.87  }
    1.88  
    1.89 -post_install()
    1.90 +post_install_scim()
    1.91  {
    1.92 -	newline
    1.93 +	[ -n "$quiet" ] || newline
    1.94  	action 'Updating gtk.immodules... '
    1.95  	chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
    1.96  	status
    1.97  
    1.98 -cat <<EOT
    1.99 +	[ -n "$quiet" ] || cat <<EOT
   1.100  In order to start scim and use chinese after boot time,
   1.101  add the following code to your autostart.sh(openbox):
   1.102  ------------
   1.103 @@ -73,7 +74,7 @@
   1.104  EOT
   1.105  }
   1.106  
   1.107 -post_remove()
   1.108 +post_remove_scim()
   1.109  {
   1.110 -	/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
   1.111 +	chroot "$1/" /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
   1.112  }