From 17d03d907735bcc01a5152d943779118a210eb68 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 23 Apr 2010 12:13:57 +0200 Subject: [PATCH] polkit: gobject-introspection support. --HG-- extra : convert_revision : 1f333165ed83423340325f57ede6bf83b2010e6f --- srcpkgs/gir-polkit | 1 + srcpkgs/polkit/gir-polkit.template | 17 +++++++++++++++++ srcpkgs/polkit/polkit-devel.template | 6 ++---- srcpkgs/polkit/template | 4 ++-- 4 files changed, 22 insertions(+), 6 deletions(-) create mode 120000 srcpkgs/gir-polkit create mode 100644 srcpkgs/polkit/gir-polkit.template diff --git a/srcpkgs/gir-polkit b/srcpkgs/gir-polkit new file mode 120000 index 0000000000..3b45280441 --- /dev/null +++ b/srcpkgs/gir-polkit @@ -0,0 +1 @@ +polkit \ No newline at end of file diff --git a/srcpkgs/polkit/gir-polkit.template b/srcpkgs/polkit/gir-polkit.template new file mode 100644 index 0000000000..d355ee7b88 --- /dev/null +++ b/srcpkgs/polkit/gir-polkit.template @@ -0,0 +1,17 @@ +# Template file for 'gir-polkit'. +# +short_desc="PolicyKit introspection data" +long_desc="${long_desc} + + This package contains the GObject-introspection data of PolicyKit in + binary typelib format." + +Add_dependency run gir-freedesktop +Add_dependency run glib +Add_dependency run polkit + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/girepository-1.0 ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/polkit/polkit-devel.template b/srcpkgs/polkit/polkit-devel.template index 1a5629e1ef..122baf92f8 100644 --- a/srcpkgs/polkit/polkit-devel.template +++ b/srcpkgs/polkit/polkit-devel.template @@ -5,11 +5,11 @@ long_desc="${long_desc} This package contains files for development, headers, static libs, etc." -revision=1 +revision=2 replaces="PolicyKit-devel>=0" Add_dependency run pkg-config -Add_dependency run gobject-introspection-devel +Add_dependency run gobject-introspection Add_dependency run glib-devel Add_dependency run expat-devel Add_dependency run eggdbus-devel @@ -20,8 +20,6 @@ do_install() { mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr - mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib - mv ${SRCPKGDESTDIR}/usr/lib/girepository* ${DESTDIR}/usr/lib mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib mv ${SRCPKGDESTDIR}/usr/share/gir* ${DESTDIR}/usr/share } diff --git a/srcpkgs/polkit/template b/srcpkgs/polkit/template index bb8fadc831..550d175b17 100644 --- a/srcpkgs/polkit/template +++ b/srcpkgs/polkit/template @@ -17,7 +17,7 @@ long_desc=" method) for unprivileged (desktop) applications." replaces="PolicyKit>=0" -subpackages="$pkgname-devel" +subpackages="gir-polkit polkit-devel" Add_dependency run glib Add_dependency run glibc Add_dependency run expat @@ -26,7 +26,7 @@ Add_dependency run pam Add_dependency build pkg-config Add_dependency build intltool Add_dependency build libxslt -Add_dependency build gobject-introspection-devel +Add_dependency build gobject-introspection Add_dependency build glib-devel Add_dependency build expat-devel Add_dependency build eggdbus-devel