From a60127045550136c01d8e16f758c8e236a771f6e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 4 Feb 2014 16:51:53 +0100 Subject: [PATCH] at-spi2-core: added gir build option. --- srcpkgs/at-spi2-core/template | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/srcpkgs/at-spi2-core/template b/srcpkgs/at-spi2-core/template index 16b40c9413a..3582ae9fa73 100644 --- a/srcpkgs/at-spi2-core/template +++ b/srcpkgs/at-spi2-core/template @@ -1,10 +1,10 @@ # Template file for 'at-spi2-core' pkgname=at-spi2-core version=2.10.2 -revision=1 +revision=2 build_style=gnu-configure -hostmakedepends="pkg-config intltool dbus gobject-introspection" -makedepends="libXext-devel libSM-devel libXtst-devel libXevie-devel dbus-devel" +hostmakedepends="pkg-config intltool dbus glib-devel" +makedepends="libglib-devel libXext-devel libSM-devel libXtst-devel libXevie-devel dbus-devel" conf_files="/etc/at-spi2/accessibility.conf" short_desc="Assistive Technology Service Provider Interface" maintainer="Juan RP " @@ -13,13 +13,31 @@ license="GPL-2" distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz" checksum=d3da58f84f4c8e4d5fe940ecb52fb27b4d9ea2b4dcdb3e1fae0f46b5eaa2dde1 +# 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 + at-spi2-core-devel_package() { depends="dbus-devel ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig - vmove usr/share/gir-1.0 + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi vmove usr/share/gtk-doc vmove "usr/lib/*.so" }