From e8a58a49bd2fdc8927021efd4f7b63d9fa4ad9af Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 7 Feb 2014 05:47:53 +0100 Subject: [PATCH] libchamplain: update to 0.12.7. --- srcpkgs/libchamplain/template | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/srcpkgs/libchamplain/template b/srcpkgs/libchamplain/template index 117c6d3d3f..81147c9f99 100644 --- a/srcpkgs/libchamplain/template +++ b/srcpkgs/libchamplain/template @@ -1,18 +1,33 @@ # Template file for 'libchamplain' pkgname=libchamplain -version=0.12.5 -revision=2 +version=0.12.7 +revision=1 build_style=gnu-configure -configure_args="--disable-debug --disable-static" -hostmakedepends="pkg-config intltool gobject-introspection" -makedepends="libsoup-gnome-devel>=2.44 gtk+3-devel>=3.8 cogl-devel>=1.16 - clutter-gtk-devel>=1.4.4_2 sqlite-devel" +configure_args="--disable-static" +hostmakedepends="pkg-config intltool" +makedepends="libsoup-gnome-devel>=2.44 gtk+3-devel>=3.8 cogl-devel>=1.16 clutter-gtk-devel>=1.4.4_2 sqlite-devel" short_desc="Library aimed to provide a Clutter widget to display rasterized maps" maintainer="Juan RP " homepage="http://projects.gnome.org/libchamplain/" license="LGPL-2.1" distfiles="${GNOME_SITE}/$pkgname/0.12/$pkgname-$version.tar.xz" -checksum=9c937d3775053a7d6b542aad36b16bbb07e02be3adb683ae57d7dcbe89634236 +checksum=b607fa7e32dd67e5d9541d620abb212a85d076d1def0252c0112a362bddeac5e + +# 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 libchamplain-devel_package() { depends="libsoup-gnome-devel>=2.44 @@ -20,11 +35,13 @@ libchamplain-devel_package() { clutter-gtk-devel>=1.4.4_2 json-glib-devel>=0.16.2 sqlite-devel - libchamplain>=$version" + ${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include - 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/share/vala vmove usr/lib/pkgconfig