commit:     961e760cf53eaf6a804fe1487a8fdd576a3b1b60
Author:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 17 09:50:48 2025 +0000
Commit:     Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Tue Jun 17 10:10:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=961e760c

sys-auth/fprintd: add 1.94.5

Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>

 sys-auth/fprintd/Manifest              |   1 +
 sys-auth/fprintd/fprintd-1.94.5.ebuild | 101 +++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)

diff --git a/sys-auth/fprintd/Manifest b/sys-auth/fprintd/Manifest
index 7d197571e4b1..71c819475f3a 100644
--- a/sys-auth/fprintd/Manifest
+++ b/sys-auth/fprintd/Manifest
@@ -1,2 +1,3 @@
 DIST fprintd-v1.94.2.tar.bz2 657989 BLAKE2B 
5855ab453ae6d73e08c60c699a95609262fd121ab020f9ffeafb8d1891a60f761f47e4acd11554179b6d9cbed8a734aafb012a4b6de3e9ad67d4160534a0e6c6
 SHA512 
0b5ebc595b617fbe9167c41a80e31ae74e7bdc87350b0420839e1a6229d7709e51ff2836858c46d8d30549a1f0811b0f697034fcdd09512b5c1099f0f0a3b112
 DIST fprintd-v1.94.3.tar.bz2 661765 BLAKE2B 
9cb1170092616cb095322cde4f55b354ad9f1481600fa4faf9d48d4dc22d3e71c1ff332877211d3ea4382cf37a8865a4b5aebb4f679b485d345abcb1d7ceb239
 SHA512 
bd6d9c6a78e445e55e0fb9da57d46ac354a1e768f34f2f1220e123db5d8d31773020fff43952b495262bb0188bb9b330682ff04ce6767c59043b511c03f55848
+DIST fprintd-v1.94.5.tar.bz2 661981 BLAKE2B 
da180b1d2a42c7db173c16eb507877c2369ef07ee9927e9a7dd377c1fc7dcc53d5bf14f939693aff6caa8a626aeb4ede7d68ebf4df9b1d64fef53416a3dd8857
 SHA512 
b1c78917d6215d1fd1fb66f24fa2c48c2f22ac63ca6dadbaabe3cabdec1800d3870837b3f789b38612eb61a36cc5f2a18c56b0c6e3c13dab5d3d804051f4639e

diff --git a/sys-auth/fprintd/fprintd-1.94.5.ebuild 
b/sys-auth/fprintd/fprintd-1.94.5.ebuild
new file mode 100644
index 000000000000..c712cd2b8a22
--- /dev/null
+++ b/sys-auth/fprintd/fprintd-1.94.5.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+
+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";
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="doc pam selinux systemd test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       dev-libs/glib:2
+       >=sys-auth/libfprint-1.94.0:2
+       sys-auth/polkit
+       pam? (
+               sys-libs/pam
+               systemd? ( sys-apps/systemd:= )
+               !systemd? ( sys-auth/elogind:= )
+       )
+"
+
+DEPEND="
+       ${RDEPEND}
+       test? (
+               $(python_gen_any_dep '
+                       dev-python/python-dbusmock[${PYTHON_USEDEP}]
+                       dev-python/dbus-python[${PYTHON_USEDEP}]
+                       dev-python/pycairo[${PYTHON_USEDEP}]
+                       pam? ( sys-libs/pam_wrapper[${PYTHON_USEDEP}] )
+               ')
+       )
+"
+
+BDEPEND="
+       dev-lang/perl
+       dev-util/gdbus-codegen
+       dev-util/glib-utils
+       virtual/pkgconfig
+       doc? (
+               dev-libs/libxml2
+               dev-libs/libxslt
+               dev-util/gtk-doc
+       )
+       test? ( ${PYTHON_DEPS} )
+"
+
+RDEPEND+=" selinux? ( sec-policy/selinux-fprintd )"
+
+PATCHES=(
+       "${FILESDIR}/fprintd-1.94.3-test-optional.patch"
+)
+
+python_check_deps() {
+       if use pam; then
+               python_has_version -d "sys-libs/pam_wrapper[${PYTHON_USEDEP}]"
+       fi
+
+       python_has_version -d "dev-python/python-dbusmock[${PYTHON_USEDEP}]" &&
+       python_has_version -d "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
+       python_has_version -d "dev-python/pycairo[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+       use test && python-any-r1_pkg_setup
+}
+
+src_configure() {
+       local emesonargs=(
+               $(meson_use test tests)
+               $(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() {
+       meson_src_install
+
+       dodoc AUTHORS NEWS README TODO
+       newdoc pam/README README.pam_fprintd
+}
+
+pkg_postinst() {
+       elog "Please take a look at README.pam_fprintd for integration docs."
+}

Reply via email to