| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/accountsservice/accountsservice-0.6.22.ebuild,v 1.6 2013/01/07 00:39:40 tetromino Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
GCONF_DEBUG="no"
|
| 7 |
GNOME2_LA_PUNT="yes"
|
| 8 |
|
| 9 |
inherit eutils gnome2 systemd
|
| 10 |
|
| 11 |
DESCRIPTION="D-Bus interfaces for querying and manipulating user account information"
|
| 12 |
HOMEPAGE="http://www.fedoraproject.org/wiki/Features/UserAccountDialog"
|
| 13 |
SRC_URI="http://www.freedesktop.org/software/${PN}/${P}.tar.xz"
|
| 14 |
|
| 15 |
LICENSE="GPL-3+"
|
| 16 |
SLOT="0"
|
| 17 |
KEYWORDS="~alpha amd64 arm x86"
|
| 18 |
IUSE="doc +introspection vala" # systemd
|
| 19 |
REQUIRED_USE="vala? ( introspection )"
|
| 20 |
|
| 21 |
# Want glib-2.30 for gdbus
|
| 22 |
RDEPEND=">=dev-libs/glib-2.30:2
|
| 23 |
sys-auth/polkit
|
| 24 |
introspection? ( >=dev-libs/gobject-introspection-0.9.12 )
|
| 25 |
sys-auth/consolekit"
|
| 26 |
# systemd? ( >=sys-apps/systemd-43 )
|
| 27 |
# !systemd? ( sys-auth/consolekit )
|
| 28 |
DEPEND="${RDEPEND}
|
| 29 |
dev-libs/libxslt
|
| 30 |
dev-util/gdbus-codegen
|
| 31 |
>=dev-util/intltool-0.40
|
| 32 |
sys-devel/gettext
|
| 33 |
virtual/pkgconfig
|
| 34 |
doc? (
|
| 35 |
app-text/docbook-xml-dtd:4.1.2
|
| 36 |
app-text/xmlto )
|
| 37 |
vala? ( >=dev-lang/vala-0.16.1-r1:0.16[vapigen] )"
|
| 38 |
|
| 39 |
pkg_setup() {
|
| 40 |
G2CONF="${G2CONF}
|
| 41 |
--disable-static
|
| 42 |
--disable-more-warnings
|
| 43 |
--localstatedir=${EPREFIX}/var
|
| 44 |
--docdir=${EPREFIX}/usr/share/doc/${PF}
|
| 45 |
$(use_enable doc docbook-docs)
|
| 46 |
$(use_enable introspection)
|
| 47 |
$(use_enable vala)
|
| 48 |
$(systemd_with_unitdir)
|
| 49 |
--disable-systemd"
|
| 50 |
# $(use_enable systemd)
|
| 51 |
DOCS="AUTHORS NEWS README TODO"
|
| 52 |
}
|
| 53 |
|
| 54 |
src_prepare() {
|
| 55 |
epatch "${FILESDIR}/${PN}-0.6.21-gentoo-system-users.patch"
|
| 56 |
gnome2_src_prepare
|
| 57 |
|
| 58 |
# FIXME: write a sane version of vapigen.m4 that properly deals with
|
| 59 |
# versioned vapigen pkgconfig files, submit to vala upstream, and get
|
| 60 |
# ${PN} upstream to use it.
|
| 61 |
sed -e 's:vapigen_pkg_name=vapigen$:vapigen_pkg_name=vapigen-0.16:' \
|
| 62 |
-e 's: vapigen\([^a-z_-]\): $vapigen_pkg_name\1:' \
|
| 63 |
-i configure || die 'sed failed'
|
| 64 |
}
|