3 |
3 |
|
4 |
4 |
EAPI=8
|
5 |
5 |
|
6 |
|
PYTHON_COMPAT=( python3_{9..10} )
|
|
6 |
PYTHON_COMPAT=( python3_{9..11} )
|
7 |
7 |
|
8 |
8 |
inherit meson pam python-any-r1 systemd
|
9 |
9 |
|
10 |
10 |
MY_P="${PN}-v${PV}"
|
|
11 |
|
11 |
12 |
DESCRIPTION="D-Bus service to access fingerprint readers"
|
12 |
13 |
HOMEPAGE="https://gitlab.freedesktop.org/libfprint/fprintd"
|
13 |
14 |
SRC_URI="https://gitlab.freedesktop.org/libfprint/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2"
|
14 |
15 |
|
15 |
16 |
LICENSE="GPL-2+"
|
16 |
17 |
SLOT="0"
|
17 |
|
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86"
|
18 |
|
IUSE="doc pam systemd test"
|
|
18 |
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~loong ppc ppc64 ~riscv sparc x86"
|
|
19 |
IUSE="doc pam selinux systemd test"
|
19 |
20 |
RESTRICT="!test? ( test )"
|
20 |
21 |
|
21 |
22 |
RDEPEND="
|
... | ... | |
25 |
26 |
sys-auth/polkit
|
26 |
27 |
pam? (
|
27 |
28 |
sys-libs/pam
|
28 |
|
systemd? ( sys-apps/systemd )
|
29 |
|
!systemd? ( sys-auth/elogind )
|
30 |
|
)"
|
|
29 |
systemd? ( sys-apps/systemd:= )
|
|
30 |
!systemd? ( sys-auth/elogind:= )
|
|
31 |
)
|
|
32 |
"
|
31 |
33 |
|
32 |
34 |
DEPEND="
|
33 |
35 |
${RDEPEND}
|
... | ... | |
38 |
40 |
dev-python/pycairo[${PYTHON_USEDEP}]
|
39 |
41 |
pam? ( sys-libs/pam_wrapper[${PYTHON_USEDEP}] )
|
40 |
42 |
')
|
41 |
|
)"
|
|
43 |
)
|
|
44 |
"
|
42 |
45 |
|
43 |
46 |
BDEPEND="
|
44 |
47 |
dev-lang/perl
|
... | ... | |
48 |
51 |
dev-libs/libxml2
|
49 |
52 |
dev-libs/libxslt
|
50 |
53 |
dev-util/gtk-doc
|
51 |
|
)"
|
|
54 |
)
|
|
55 |
"
|
|
56 |
|
|
57 |
RDEPEND+=" selinux? ( sec-policy/selinux-fprintd )"
|
52 |
58 |
|
53 |
59 |
PATCHES=(
|
54 |
60 |
"${FILESDIR}/${PN}-1.90.7_0001-add-test-feature-and-make-tests-optional.patch"
|
55 |
61 |
"${FILESDIR}/${PN}-1.90.8_0002-add-configure-option-for-libsystemd-provider.patch"
|
56 |
|
"${FILESDIR}/${P}-fix-meson-0.61-build.patch"
|
57 |
|
"${FILESDIR}/tests-Fix-dbusmock-AddDevice-calls-to-include-optional-ar.patch"
|
58 |
62 |
)
|
59 |
63 |
|
60 |
64 |
S="${WORKDIR}/${MY_P}"
|
... | ... | |
74 |
78 |
}
|
75 |
79 |
|
76 |
80 |
src_configure() {
|
77 |
|
local emesonargs=(
|
78 |
|
$(meson_feature test)
|
79 |
|
$(meson_use pam)
|
80 |
|
-Dgtk_doc=$(usex doc true false)
|
81 |
|
-Dman=true
|
82 |
|
-Dsystemd_system_unit_dir=$(systemd_get_systemunitdir)
|
83 |
|
-Dpam_modules_dir=$(getpam_mod_dir)
|
84 |
|
-Dlibsystemd=$(usex systemd libsystemd libelogind)
|
85 |
|
)
|
86 |
|
meson_src_configure
|
|
81 |
local emesonargs=(
|
|
82 |
$(meson_feature test)
|
|
83 |
$(meson_use pam)
|
|
84 |
-Dgtk_doc=$(usex doc true false)
|
|
85 |
-Dman=true
|
|
86 |
-Dsystemd_system_unit_dir=$(systemd_get_systemunitdir)
|
|
87 |
-Dpam_modules_dir=$(getpam_mod_dir)
|
|
88 |
-Dlibsystemd=$(usex systemd libsystemd libelogind)
|
|
89 |
)
|
|
90 |
meson_src_configure
|
87 |
91 |
}
|
88 |
92 |
|
89 |
93 |
src_install() {
|