From 4c059b4b9212f953cda85a204bc0234f7153455d Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 19 Feb 2014 15:55:05 +0100 Subject: [PATCH] geocode-glib: added gir build option; remove long_desc. --- srcpkgs/geocode-glib/template | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/srcpkgs/geocode-glib/template b/srcpkgs/geocode-glib/template index 250fe3be034..91b3ddde09f 100644 --- a/srcpkgs/geocode-glib/template +++ b/srcpkgs/geocode-glib/template @@ -1,10 +1,10 @@ # Template file for 'geocode-glib' pkgname=geocode-glib version=3.10.0 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-static" -hostmakedepends="pkg-config intltool gobject-introspection" +hostmakedepends="pkg-config intltool glib-devel" makedepends="json-glib-devel>=0.16.2 libsoup-gnome-devel>=2.44" depends="json-glib>=0.16.2 libsoup-gnome>=2.44" short_desc="GLib library for geocoding and reverse geocoding" @@ -13,21 +13,33 @@ license="LGPL-2.1" maintainer="Juan RP " distfiles="${GNOME_SITE}/$pkgname/${version%.*}/${pkgname}-${version}.tar.xz" checksum=0aedc198cf8a9b934a290d50aadaf4b48bb13c3b4783618c6753eb466cdaa637 -long_desc=" - geocode-glib is a convenience library for the geocoding (finding longitude, - and latitude from an address) and reverse geocoding (finding an address from - coordinates). It uses Nominatim service to achieve that. It also caches - (reverse-)geocoding requests for faster results and to avoid unnecessary server - load." + +# 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 geocode-glib-devel_package() { - depends="libglib-devel ${sourcepkg}>=${version}" + depends="libglib-devel ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.so" vmove usr/share/gtk-doc - vmove usr/share/gir-1.0 + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi } }