From 9f0d68ea187f9d6693828654d2f66023792ea7a3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 20 May 2014 13:38:45 +0200 Subject: [PATCH] gnome-system-monitor: enable wnck support; add systemd build option (on by default). --- srcpkgs/gnome-system-monitor/template | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/srcpkgs/gnome-system-monitor/template b/srcpkgs/gnome-system-monitor/template index 430c2fb61f..a86d8aaf23 100644 --- a/srcpkgs/gnome-system-monitor/template +++ b/srcpkgs/gnome-system-monitor/template @@ -1,12 +1,11 @@ # Template file for 'gnome-system-monitor' pkgname=gnome-system-monitor version=3.12.2 -revision=1 +revision=2 build_style=gnu-configure -configure_args="--disable-schemas-compile --enable-systemd" +configure_args="--disable-schemas-compile --enable-wnck" hostmakedepends="which pkg-config intltool itstool gnome-doc-utils" -makedepends="libwnck-devel gtkmm-devel>=3.9 librsvg-devel systemd-devel libgtop-devel - gnome-icon-theme>=3.12" +makedepends="libwnck-devel gtkmm-devel>=3.9 librsvg-devel libgtop-devel gnome-icon-theme>=3.12" depends="gtkmm>=3.9 gnome-icon-theme" short_desc="Process viewer and system resource monitor for GNOME" maintainer="Juan RP " @@ -14,3 +13,15 @@ homepage="http://www.gnome.org" license="GPL-2" distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz" checksum=ba074e2157302d91d73b68e13207bf85452b84234e429b1ec9b9a7b1c70736d8 + +# Package build options +build_options="systemd" +desc_option_systemd="Enable support for systemd" +build_options_default="systemd" + +if [ "$build_option_systemd" ]; then + configure_args+=" --enable-systemd" + makedepends+=" systemd-devel" +else + configure_args+=" --disable-systemd" +fi