--- xfce4-session-4.10.1-r1.ebuild 2014-03-10 16:09:32.000000000 +0900 +++ xfce4-session-4.10.1-r2.ebuild 2014-03-10 16:09:05.000000000 +0900 @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1998-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/xfce-base/xfce4-session/xfce4-session-4.10.1-r1.ebuild,v 1.2 2014/03/05 11:52:51 ssuominen Exp $ @@ -41,7 +41,14 @@ virtual/pkgconfig" pkg_setup() { - PATCHES=( "${FILESDIR}"/${P}-alock_support_to_xflock4.patch ) + PATCHES=( + "${FILESDIR}"/${P}-alock_support_to_xflock4.patch + ) + if use systemd; then + PATCHES=( "${PATCHES}" + "${FILESDIR}"/${P}-logind-support-for-suspend-hibernate.patch + ) + fi XFCONF=( --docdir="${EPREFIX}"/usr/share/doc/${PF}