From e27d80842ebc5c2a32a7df5115a9ced84549a7e0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 Feb 2014 17:09:34 +0100 Subject: [PATCH] libgnome-keyring: remove long_desc. --- srcpkgs/libgnome-keyring/template | 39 +++++++++++++++++-------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/srcpkgs/libgnome-keyring/template b/srcpkgs/libgnome-keyring/template index fd0afddb3ab..0bde4a23d2d 100644 --- a/srcpkgs/libgnome-keyring/template +++ b/srcpkgs/libgnome-keyring/template @@ -1,9 +1,10 @@ # Template file for 'libgnome-keyring' pkgname=libgnome-keyring version=3.10.1 -revision=1 +revision=2 build_style=gnu-configure -hostmakedepends="pkg-config intltool gobject-introspection" +configure_args="--with-libgcrypt-prefix=${XBPS_CROSS_BASE}/usr" +hostmakedepends="pkg-config intltool" makedepends="dbus-devel libglib-devel libgcrypt-devel" short_desc="GNOME keyring client library" maintainer="Juan RP " @@ -11,29 +12,33 @@ homepage="http://www.gnome.org" license="GPL-2, LGPL-2.1" distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" checksum=052cf1121ba823359afe534c425f7e216c6a2b1a2b316dee279dcf9032423772 -long_desc=" - libgnome-keyring is a program that keeps passwords and other secrets for - users. It is run as a damon in the session, similar to ssh-agent, and - other applications can locate it by an environment variable. - The program can manage several keyrings, each with its own master - password, and there is also a session keyring which is never stored to - disk, but forgotten when the session ends." +# 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 libgnome-keyring-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/gir-1.0 + if [ "$build_option_gir" ]; then + vmove usr/share/gir-1.0 + fi vmove usr/share/gtk-doc } } - -libgnome-keyring_package() { - pkg_install() { - vmove all - } -}