--- accountsservice-0.6.43.ebuild 2017-05-23 20:50:22.889431245 +0200 +++ accountsservice-0.6.43-r1.ebuild 2017-05-27 10:26:32.605544816 +0200 @@ -2,7 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit gnome2 systemd + +inherit autotools gnome2 systemd DESCRIPTION="D-Bus interfaces for querying and manipulating user account information" HOMEPAGE="https://www.freedesktop.org/wiki/Software/AccountsService/" @@ -10,16 +11,19 @@ LICENSE="GPL-3+" SLOT="0" -KEYWORDS="~alpha amd64 arm ~arm64 ~ia64 ppc ppc64 ~sparc x86" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" + +IUSE="doc elogind +introspection selinux systemd" -IUSE="doc +introspection selinux systemd" +REQUIRED_USE="?? ( elogind systemd )" CDEPEND=" >=dev-libs/glib-2.37.3:2 sys-auth/polkit introspection? ( >=dev-libs/gobject-introspection-0.9.12:= ) systemd? ( >=sys-apps/systemd-186:0= ) - !systemd? ( sys-auth/consolekit ) + elogind? ( sys-auth/elogind ) + !systemd? ( !elogind? ( sys-auth/consolekit ) ) " DEPEND="${CDEPEND} dev-libs/libxslt @@ -38,8 +42,14 @@ PATCHES=( "${FILESDIR}/${PN}-0.6.35-gentoo-system-users.patch" + "${FILESDIR}/${P}-elogind.patch" ) +src_prepare() { + default + eautoreconf +} + src_configure() { gnome2_src_configure \ --disable-static \ @@ -48,6 +58,7 @@ --enable-admin-group="wheel" \ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ $(use_enable doc docbook-docs) \ + $(use_enable elogind) \ $(use_enable introspection) \ $(use_enable systemd) }