From 9a1e8ac6c517fa62e3d4f4ed68474f65d9f0a56e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 Feb 2014 11:17:36 +0100 Subject: [PATCH] ibus: update to 1.5.5. --- srcpkgs/ibus/template | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/srcpkgs/ibus/template b/srcpkgs/ibus/template index 2be5f5034eb..065d6989eb5 100644 --- a/srcpkgs/ibus/template +++ b/srcpkgs/ibus/template @@ -1,12 +1,12 @@ # Template file for 'ibus' pkgname=ibus -version=1.5.4 +version=1.5.5 revision=1 build_style=gnu-configure configure_args="--enable-ui --enable-gtk3 --disable-python --disable-schemas-compile --enable-memconf --disable-schemas-install --enable-dconf --disable-gconf" -hostmakedepends="pkg-config intltool gobject-introspection GConf-devel" +hostmakedepends="libtool pkg-config intltool dconf GConf python glib-devel" makedepends="dconf-devel>=0.13.90 librsvg-devel gtk+-devel gtk+3-devel vala-devel libnotify-devel hicolor-icon-theme iso-codes dbus-x11 pyxdg" depends="hicolor-icon-theme iso-codes dbus-x11 pyxdg" @@ -16,10 +16,27 @@ maintainer="Juan RP " homepage="http://ibus.googlecode.com" license="LGPL-2.1" distfiles="http://ibus.googlecode.com/files/ibus-${version}.tar.gz" -checksum=703ebaba3f01b54a86119fb6161d85b9d1ccdb4edb79782d0d23ccde64d214fd -long_desc=" - IBus means Intelligent Input Bus. It is an open source input framework - for Linux/Unix OS." +checksum=02ab36af6048399fedbe8d85074b161219b89df5020932df33cf8829764f8aec + +# Package build options +build_options="gir" +desc_option_gir="Enable support for building gobject introspection data" + +# Disable gir for cross builds. +if [ -z "$CROSS_BUILD" ]; then + build_options_default="gir" +fi + +if [ "$build_option_gir" ]; then + configure_args+=" --enable-introspection" + makedepends+=" gobject-introspection" +else + configure_args+=" --disable-introspection" +fi + +pre_configure() { + libtoolize -f +} ibus-devel_package() { depends="libglib-devel ibus-${version}_${revision}" @@ -29,7 +46,9 @@ ibus-devel_package() { vmove usr/lib/pkgconfig vmove "usr/lib/*.so" vmove usr/share/gtk-doc - vmove usr/share/gir-1.0 - vmove usr/share/vala + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + vmove usr/share/vala + fi } }