1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 13:52:40 +01:00

sys-auth/fprintd: update for Python 3.11

This commit is contained in:
2023-05-01 14:00:29 +02:00
parent 4638d4dcc9
commit 72f39e64f3
3 changed files with 23 additions and 117 deletions

View File

@@ -1,20 +1,21 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
PYTHON_COMPAT=( python3_{9..11} )
inherit meson pam python-any-r1 systemd
MY_P="${PN}-v${PV}"
DESCRIPTION="D-Bus service to access fingerprint readers"
HOMEPAGE="https://gitlab.freedesktop.org/libfprint/fprintd"
SRC_URI="https://gitlab.freedesktop.org/libfprint/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86"
KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86"
IUSE="doc pam systemd test"
RESTRICT="!test? ( test )"
@@ -25,9 +26,10 @@ RDEPEND="
sys-auth/polkit
pam? (
sys-libs/pam
systemd? ( sys-apps/systemd )
!systemd? ( sys-auth/elogind )
)"
systemd? ( sys-apps/systemd:= )
!systemd? ( sys-auth/elogind:= )
)
"
DEPEND="
${RDEPEND}
@@ -38,7 +40,8 @@ DEPEND="
dev-python/pycairo[${PYTHON_USEDEP}]
pam? ( sys-libs/pam_wrapper[${PYTHON_USEDEP}] )
')
)"
)
"
BDEPEND="
dev-lang/perl
@@ -48,7 +51,8 @@ BDEPEND="
dev-libs/libxml2
dev-libs/libxslt
dev-util/gtk-doc
)"
)
"
PATCHES=(
"${FILESDIR}/${PN}-1.90.7_0001-add-test-feature-and-make-tests-optional.patch"
@@ -72,16 +76,16 @@ pkg_setup() {
}
src_configure() {
local emesonargs=(
$(meson_feature test)
$(meson_use pam)
-Dgtk_doc=$(usex doc true false)
-Dman=true
-Dsystemd_system_unit_dir=$(systemd_get_systemunitdir)
-Dpam_modules_dir=$(getpam_mod_dir)
-Dlibsystemd=$(usex systemd libsystemd libelogind)
)
meson_src_configure
local emesonargs=(
$(meson_feature test)
$(meson_use pam)
-Dgtk_doc=$(usex doc true false)
-Dman=true
-Dsystemd_system_unit_dir=$(systemd_get_systemunitdir)
-Dpam_modules_dir=$(getpam_mod_dir)
-Dlibsystemd=$(usex systemd libsystemd libelogind)
)
meson_src_configure
}
src_install() {