blob: c9f501af194c01ce7db55c6e381f320aeed8c185 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# Copyright 2011-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
inherit meson python-any-r1 systemd
DESCRIPTION="D-Bus interfaces for querying and manipulating user account information"
HOMEPAGE="https://www.freedesktop.org/wiki/Software/AccountsService/"
SRC_URI="https://www.freedesktop.org/software/${PN}/${P}.tar.xz"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ppc ppc64 ~riscv ~sparc x86"
IUSE="doc elogind gtk-doc +introspection selinux systemd test"
RESTRICT="!test? ( test )"
REQUIRED_USE="^^ ( elogind systemd )"
CDEPEND="
>=dev-libs/glib-2.63.5:2
sys-auth/polkit
virtual/libcrypt:=
elogind? ( >=sys-auth/elogind-229.4 )
introspection? ( >=dev-libs/gobject-introspection-0.9.12:= )
systemd? ( >=sys-apps/systemd-186:0= )
"
DEPEND="${CDEPEND}"
BDEPEND="
dev-libs/libxslt
dev-util/gdbus-codegen
sys-devel/gettext
virtual/pkgconfig
doc? (
app-text/docbook-xml-dtd:4.1.2
app-text/xmlto
)
gtk-doc? (
dev-util/gtk-doc
app-text/docbook-xml-dtd:4.3
)
test? (
$(python_gen_any_dep '
dev-python/python-dbusmock[${PYTHON_USEDEP}]
')
)
"
RDEPEND="${CDEPEND}
selinux? ( sec-policy/selinux-accountsd )
"
PATCHES=(
"${FILESDIR}"/${PN}-22.04.62-gentoo-system-users.patch
"${FILESDIR}"/${PN}-22.08.8-check-for-wtmp.patch
"${FILESDIR}"/${PN}-22.08.8-fgetspent_r-musl.patch
)
python_check_deps() {
if use test; then
has_version "dev-python/python-dbusmock[${PYTHON_USEDEP}]"
fi
}
src_configure() {
local emesonargs=(
--localstatedir="${EPREFIX}/var"
-Dsystemdsystemunitdir="$(systemd_get_systemunitdir)"
-Dadmin_group="wheel"
-Dcheck_wtmp="$(usex !elibc_musl true false)"
$(meson_use elogind)
$(meson_use introspection)
$(meson_use doc docbook)
$(meson_use gtk-doc gtk_doc)
-Dvapi=false
)
meson_src_configure
}
src_install() {
meson_src_install
# https://gitlab.freedesktop.org/accountsservice/accountsservice/-/issues/90
if use doc; then
mv "${ED}/usr/share/doc/${PN}" "${ED}/usr/share/doc/${PF}" || die
fi
# This directories are created at runtime when needed
rm -r "${ED}"/var/lib || die
}
|