summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2014-05-31 19:13:05 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2014-05-31 19:13:05 +0000
commita9ee5c0861ab8a1f537b7992c3228927df38a006 (patch)
tree5f4bcc02b7e35354c439073fac668dd6d42489a3 /xfce-base
parentFix link in the patch. (diff)
downloadgentoo-2-a9ee5c0861ab8a1f537b7992c3228927df38a006.tar.gz
gentoo-2-a9ee5c0861ab8a1f537b7992c3228927df38a006.tar.bz2
gentoo-2-a9ee5c0861ab8a1f537b7992c3228927df38a006.zip
Restrict -r0 to old UPower and add -r1 for compability with UPower >= 0.99
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
Diffstat (limited to 'xfce-base')
-rw-r--r--xfce-base/xfce4-settings/ChangeLog10
-rw-r--r--xfce-base/xfce4-settings/files/xfce4-settings-4.11.2-upower-0.99.patch69
-rw-r--r--xfce-base/xfce4-settings/xfce4-settings-4.11.2-r1.ebuild53
-rw-r--r--xfce-base/xfce4-settings/xfce4-settings-4.11.2.ebuild4
4 files changed, 133 insertions, 3 deletions
diff --git a/xfce-base/xfce4-settings/ChangeLog b/xfce-base/xfce4-settings/ChangeLog
index aa86fd1ae8b9..912fa5789ff3 100644
--- a/xfce-base/xfce4-settings/ChangeLog
+++ b/xfce-base/xfce4-settings/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for xfce-base/xfce4-settings
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-settings/ChangeLog,v 1.120 2014/05/26 19:44:23 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-settings/ChangeLog,v 1.121 2014/05/31 19:13:04 ssuominen Exp $
+
+*xfce4-settings-4.11.2-r1 (31 May 2014)
+
+ 31 May 2014; Samuli Suominen <ssuominen@gentoo.org>
+ +files/xfce4-settings-4.11.2-upower-0.99.patch,
+ +xfce4-settings-4.11.2-r1.ebuild, xfce4-settings-4.10.1.ebuild,
+ xfce4-settings-4.11.2.ebuild:
+ Restrict -r0 to old UPower and add -r1 for compability with UPower >= 0.99
26 May 2014; Samuli Suominen <ssuominen@gentoo.org>
xfce4-settings-4.11.2.ebuild:
diff --git a/xfce-base/xfce4-settings/files/xfce4-settings-4.11.2-upower-0.99.patch b/xfce-base/xfce4-settings/files/xfce4-settings-4.11.2-upower-0.99.patch
new file mode 100644
index 000000000000..a1704ba4fb2a
--- /dev/null
+++ b/xfce-base/xfce4-settings/files/xfce4-settings-4.11.2-upower-0.99.patch
@@ -0,0 +1,69 @@
+http://bugzilla.xfce.org/show_bug.cgi?id=10918
+
+From 5247716c9105dc68a737757da5a2b260538945a9 Mon Sep 17 00:00:00 2001
+From: Eric Koegel <eric.koegel@gmail.com>
+Date: Wed, 28 May 2014 07:55:39 +0300
+Subject: [PATCH] Update for Upower 0.99
+
+Upower changed a singal handler.
+---
+ xfsettingsd/displays-upower.c | 21 ++++++++++++++++++++-
+ 1 file changed, 20 insertions(+), 1 deletion(-)
+
+diff --git a/xfsettingsd/displays-upower.c b/xfsettingsd/displays-upower.c
+index bbb3028..e1fab38 100644
+--- a/xfsettingsd/displays-upower.c
++++ b/xfsettingsd/displays-upower.c
+@@ -34,9 +34,15 @@
+
+
+ static void xfce_displays_upower_dispose (GObject *object);
++
++#if UP_CHECK_VERSION(0, 99, 0)
+ static void xfce_displays_upower_property_changed (UpClient *client,
++ GParamSpec *pspec,
+ XfceDisplaysUPower *upower);
+-
++#else
++static void xfce_displays_upower_property_changed (UpClient *client,
++ XfceDisplaysUPower *upower);
++#endif
+
+
+ struct _XfceDisplaysUPowerClass
+@@ -95,10 +101,17 @@ xfce_displays_upower_init (XfceDisplaysUPower *upower)
+ {
+ upower->client = up_client_new ();
+ upower->lid_is_closed = up_client_get_lid_is_closed (upower->client);
++#if UP_CHECK_VERSION(0, 99, 0)
++ upower->handler = g_signal_connect (G_OBJECT (upower->client),
++ "notify",
++ G_CALLBACK (xfce_displays_upower_property_changed),
++ upower);
++#else
+ upower->handler = g_signal_connect (G_OBJECT (upower->client),
+ "changed",
+ G_CALLBACK (xfce_displays_upower_property_changed),
+ upower);
++#endif
+ }
+
+
+@@ -122,8 +135,14 @@ xfce_displays_upower_dispose (GObject *object)
+
+
+ static void
++#if UP_CHECK_VERSION(0, 99, 0)
+ xfce_displays_upower_property_changed (UpClient *client,
++ GParamSpec *pspec,
+ XfceDisplaysUPower *upower)
++#else
++xfce_displays_upower_property_changed (UpClient *client,
++ XfceDisplaysUPower *upower)
++#endif
+ {
+ gboolean lid_is_closed;
+
+--
+1.9.3
+
diff --git a/xfce-base/xfce4-settings/xfce4-settings-4.11.2-r1.ebuild b/xfce-base/xfce4-settings/xfce4-settings-4.11.2-r1.ebuild
new file mode 100644
index 000000000000..c7030aaabc18
--- /dev/null
+++ b/xfce-base/xfce4-settings/xfce4-settings-4.11.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-settings/xfce4-settings-4.11.2-r1.ebuild,v 1.1 2014/05/31 19:13:04 ssuominen Exp $
+
+EAPI=5
+inherit xfconf
+
+DESCRIPTION="Configuration system for the Xfce desktop environment"
+HOMEPAGE="http://www.xfce.org/projects/"
+SRC_URI="mirror://xfce/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
+IUSE="debug libcanberra libnotify udev +xklavier"
+
+RDEPEND=">=dev-libs/dbus-glib-0.100
+ >=dev-libs/glib-2.24
+ media-libs/fontconfig
+ >=x11-libs/gtk+-2.20:2
+ x11-libs/libX11
+ >=x11-libs/libXcursor-1.1
+ >=x11-libs/libXi-1.3
+ >=x11-libs/libXrandr-1.2
+ >=xfce-base/garcon-0.2
+ >=xfce-base/exo-0.8
+ >=xfce-base/libxfce4ui-4.11
+ >=xfce-base/libxfce4util-4.11
+ >=xfce-base/xfconf-4.10
+ libcanberra? ( >=media-libs/libcanberra-0.25[sound] )
+ libnotify? ( >=x11-libs/libnotify-0.7 )
+ udev? ( || ( >=sys-power/upower-0.9.23 sys-power/upower-pm-utils ) )
+ xklavier? ( >=x11-libs/libxklavier-5 )"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext
+ >=x11-proto/inputproto-1.4
+ x11-proto/xproto"
+
+pkg_setup() {
+ PATCHES=( "${FILESDIR}"/${P}-upower-0.99.patch )
+
+ XFCONF=(
+ $(use_enable udev upower-glib)
+ $(use_enable libnotify)
+ $(use_enable xklavier libxklavier)
+ $(use_enable libcanberra sound-settings)
+ $(xfconf_use_debug)
+ )
+
+ DOCS=( AUTHORS ChangeLog NEWS TODO )
+}
diff --git a/xfce-base/xfce4-settings/xfce4-settings-4.11.2.ebuild b/xfce-base/xfce4-settings/xfce4-settings-4.11.2.ebuild
index 7aa27dc07874..c12fea1f434f 100644
--- a/xfce-base/xfce4-settings/xfce4-settings-4.11.2.ebuild
+++ b/xfce-base/xfce4-settings/xfce4-settings-4.11.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-settings/xfce4-settings-4.11.2.ebuild,v 1.2 2014/05/26 19:44:23 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-settings/xfce4-settings-4.11.2.ebuild,v 1.3 2014/05/31 19:13:04 ssuominen Exp $
EAPI=5
inherit xfconf
@@ -29,7 +29,7 @@ RDEPEND=">=dev-libs/dbus-glib-0.100
>=xfce-base/xfconf-4.10
libcanberra? ( >=media-libs/libcanberra-0.25[sound] )
libnotify? ( >=x11-libs/libnotify-0.7 )
- udev? ( || ( >=sys-power/upower-0.9.8 sys-power/upower-pm-utils ) )
+ udev? ( || ( <sys-power/upower-0.99 sys-power/upower-pm-utils ) )
xklavier? ( >=x11-libs/libxklavier-5 )"
DEPEND="${RDEPEND}
dev-util/intltool