mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-auth/libfprint: add support for tod
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
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
|
||||
DIST libfprint-1.94.9.tar.bz2 9065976 BLAKE2B c79706c3f60949b86997871207b15ae9aa40a352c27378d0612b426d6da5802ac6f62293f7ed9d00fe8b3a0262c9774b4cfb03acdfc7e15691838b2822640890 SHA512 60d13fa894a9faaeee9f353d5cd9eb121af7180d35d05d6225c21808f889da640f95a25b09407bb904608f198eddfa8a0d900a072da93a5732bc03b60d717e07
|
||||
|
||||
95
sys-auth/libfprint/libfprint-1.94.9-r1.ebuild
Normal file
95
sys-auth/libfprint/libfprint-1.94.9-r1.ebuild
Normal file
@@ -0,0 +1,95 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit meson 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
|
||||
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() {
|
||||
# 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
|
||||
}
|
||||
@@ -1,9 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<maintainer type="person">
|
||||
<email>nowa@gentoo.org</email>
|
||||
<name>Nowa Ammerlaan</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="freedesktop-gitlab">libfprint/libfprint</remote-id>
|
||||
<bugs-to>https://gitlab.freedesktop.org/libfprint/wiki/-/issues</bugs-to>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="tod">Build with patches for Touch OEM Drivers</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
||||
Reference in New Issue
Block a user