From 76775ba01318a6ab4e53fc1c8b16e413e214e764 Mon Sep 17 00:00:00 2001 From: Nowa Ammerlaan Date: Mon, 2 Mar 2026 18:33:44 +0100 Subject: [PATCH] sys-auth/libfprint: add 1.94.10 Signed-off-by: Nowa Ammerlaan --- sys-auth/libfprint/Manifest | 2 + sys-auth/libfprint/libfprint-1.94.10.ebuild | 102 ++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 sys-auth/libfprint/libfprint-1.94.10.ebuild diff --git a/sys-auth/libfprint/Manifest b/sys-auth/libfprint/Manifest index ed12314357e63..f679c75d99099 100644 --- a/sys-auth/libfprint/Manifest +++ b/sys-auth/libfprint/Manifest @@ -1,3 +1,5 @@ +DIST libfprint-1.94.10+tod1.tar.bz2 9292125 BLAKE2B e00f2946ffe724e408a641acb00e340b9bfeebbe0c0a5e51789b68149c8249064508acf434b088023776ba1e9161a834ec75e5f2f76385d8585d929e3c4b885a SHA512 25396d6dd04ab7629aadf87867a2cbf3190b5c9b14bc5c97cd8b50e6974efe861220e2d57c90c513f2916962e061a13eb734093f7762782d82ef77c1b219b7ed +DIST libfprint-1.94.10.tar.bz2 9065283 BLAKE2B e242fbe40fa985eef21fc2a6d314a7686cc3b11929950a7008492548a032a5c9db718ee4aa2232ce5df232c919f82ba84383b2c6acd9a310f769f7f5db43d8c8 SHA512 cbd4f61bb2d8822d9dac35b15c995bbd0e84a95699e2c5592b6b1e968efc95a39fa0482dc8bcc79864fabac11aa5de5915d6bebea68b771e6fdc3cd2debaefe5 DIST libfprint-1.94.4.tar.gz 10408480 BLAKE2B 492ea10777d223ce7d610f0dca2871c8eae08cb5dd7d30187194d6cc139a60d5350e5908f759434065614c05a72192347be19c1d6fe5641e08a2f6419bdcede7 SHA512 425efdfde373179a237805c4b5561e3531616798c41ccd4358f1c521f1e21af01f8ca61aaf8c959e2c68a69e4dfda23960e696acaaad2228ffef6f999986468e DIST libfprint-1.94.7.tar.bz2 9066931 BLAKE2B 5df859c4e38a8016b8f91785d8634d85e023cc19b837e928dd2de6392ed77b7a82c26e6c1485df2fa1fb2041421d4dd05441d5df24c2fc5399783dcc174d5afc SHA512 b91a71ef998b03a64b08d9439a1d26027f196f07fd1344bbe45f2dbeb3ace5752af9b7504ee8537eb40d896e43a517e3759a7b3735baded4cc3fb6c0ca3b0ece DIST libfprint-1.94.9+tod1.tar.bz2 9291260 BLAKE2B 152cacd41a0317cda8b38b40922d018633088d77b61c17fc1655548181de60c18a3191ae984a97ebcc764d21115f7f7f919c018a6c4ee98c3a3484b21baa6cbd SHA512 5420ce7da8bc49630f428083dc9c774786ced7920dc472602f363d73da639bdd34380c7c0299160a13ada23a740957dccadfeae6526e2840b5dceac61531246d diff --git a/sys-auth/libfprint/libfprint-1.94.10.ebuild b/sys-auth/libfprint/libfprint-1.94.10.ebuild new file mode 100644 index 0000000000000..9a94284b94292 --- /dev/null +++ b/sys-auth/libfprint/libfprint-1.94.10.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic meson toolchain-funcs udev + +MY_P="${PN}-v${PV}" + +DESCRIPTION="Library to add support for consumer fingerprint readers" +HOMEPAGE=" + https://fprint.freedesktop.org/ + https://gitlab.freedesktop.org/libfprint/libfprint +" +SRC_URI=" + !tod? ( + https://gitlab.freedesktop.org/${PN}/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2 -> ${P}.tar.bz2 + ) + tod? ( + https://gitlab.freedesktop.org/3v1n0/${PN}/-/archive/v${PV}+tod1/${MY_P}+tod1.tar.bz2 -> ${P}+tod1.tar.bz2 + ) +" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1+" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="examples gtk-doc +introspection tod" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/libgudev + >=dev-libs/openssl-3:= + dev-python/pygobject + dev-libs/libgusb + x11-libs/pixman + examples? ( + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + ) +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + dev-util/glib-utils + sys-devel/gettext + virtual/pkgconfig + gtk-doc? ( dev-util/gtk-doc ) + introspection? ( + >=dev-libs/gobject-introspection-1.82.0-r2 + dev-libs/libgusb[introspection] + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-1.94.1-test-timeout.patch" +) + +# As this version introduces metainfo for appstreamcli checking, +# we neeed to disable network access during the tests. +export AS_VALIDATE_NONET="true" + +src_unpack() { + default + if use tod; then + mv "${WORKDIR}/${MY_P}+tod1" "${S}" || die + fi +} + +src_configure() { + # https://gitlab.freedesktop.org/3v1n0/libfprint/-/issues/10 + # Untill upstream have analysed it we are doing this as a workaround + # https://github.com/gentoo/gentoo/pull/43857#discussion_r2400425455 + if use tod && tc-ld-is-lld; then + append-ldflags $(test-flags-CCLD -Wl,--undefined-version) + fi + + # TODO: wire up test deps (cairo, pygobject, etc) for extra tests + # currently skipped. + local emesonargs=( + $(meson_use examples gtk-examples) + $(meson_use gtk-doc doc) + $(meson_use introspection introspection) + -Ddrivers=all + -Dinstalled-tests=false + -Dudev_rules=enabled + -Dudev_rules_dir=$(get_udevdir)/rules.d + ) + + use tod && emesonargs+=( -Dtod=true ) + + meson_src_configure +} + +pkg_postinst() { + udev_reload +} + +pkg_postrm() { + udev_reload +}