From 67bf6cfec9bc72ce42346ebfc130d80e662c8501 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 Feb 2014 10:57:53 +0100 Subject: [PATCH] libunique1: added gir build option; remove long_desc. --- srcpkgs/libunique1/template | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/srcpkgs/libunique1/template b/srcpkgs/libunique1/template index a644e8d835..d84a5eba46 100644 --- a/srcpkgs/libunique1/template +++ b/srcpkgs/libunique1/template @@ -1,12 +1,12 @@ # Template file for 'libunique1'. pkgname=libunique1 version=1.1.6 -revision=5 +revision=6 wrksrc="libunique-${version}" patch_args="-Np1" build_style=gnu-configure configure_args="--disable-static --disable-dbus" -hostmakedepends="libtool automake pkg-config gobject-introspection" +hosthostmakedepends="libtool automake pkg-config" makedepends="gtk+-devel" short_desc="Library for writing single instance applications (GTK+2)" maintainer="xtraeme " @@ -14,20 +14,22 @@ homepage="http://live.gnome.org/LibUnique" license="LGPL-2.1" distfiles="${GNOME_SITE}/libunique/1.1/libunique-$version.tar.bz2" checksum=e5c8041cef8e33c55732f06a292381cb345db946cf792a4ae18aa5c66cdd4fbb -long_desc=" - Unique is a library for writing single instance application. If you launch a - single instance application twice, the second instance will either just quit - or will send a message to the running instance. - Unique makes it easy to write this kind of applications, by providing a base - class, taking care of all the IPC machinery needed to send messages to a - running instance, and also handling the startup notification side. +# Package build options +build_options="gir" +desc_option_gir="Enable support for building gobject introspection data" - Unique aims to replace the BaconMessageConnection code that has been copied - by many projects and the code using Bonobo and D-Bus. +# Disable gir for cross builds. +if [ -z "$CROSS_BUILD" ]; then + build_options_default="gir" +fi - This package is built against GTK+2 toolkit, unlike libunique which uses - the GTK+3 toolkit." +if [ "$build_option_gir" ]; then + configure_args+=" --enable-introspection" + makedepends+=" gobject-introspection" +else + configure_args+=" --disable-introspection" +fi pre_configure() { # Fix build with glib 2.30. @@ -40,11 +42,12 @@ pre_configure() { } libunique1-devel_package() { - depends="gtk+-devel ${sourcepkg}-${version}_${revision}" - short_desc+=" -- development files" + depends="gtk+-devel ${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig + vmove "usr/lib/*.so" vmove usr/share } }