Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/fprintd/
Date: Wed, 28 Dec 2022 00:56:22
Message-Id: 1672188808.4e4783cc76ad8f0d81c30c1c5e9483ffc5776f7e.sam@gentoo
1 commit: 4e4783cc76ad8f0d81c30c1c5e9483ffc5776f7e
2 Author: Marco Scardovi <mscardovi <AT> icloud <DOT> com>
3 AuthorDate: Tue Dec 27 21:22:13 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 28 00:53:28 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e4783cc
7
8 sys-auth/fprintd: add 1.94.2
9
10 Signed-off-by: Marco Scardovi <mscardovi <AT> icloud.com>
11 Closes: https://github.com/gentoo/gentoo/pull/28865
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 sys-auth/fprintd/Manifest | 1 +
15 sys-auth/fprintd/fprintd-1.94.2.ebuild | 100 +++++++++++++++++++++++++++++++++
16 2 files changed, 101 insertions(+)
17
18 diff --git a/sys-auth/fprintd/Manifest b/sys-auth/fprintd/Manifest
19 index 9159f3036b33..be1f143b213a 100644
20 --- a/sys-auth/fprintd/Manifest
21 +++ b/sys-auth/fprintd/Manifest
22 @@ -1 +1,2 @@
23 DIST fprintd-v1.94.1.tar.bz2 658149 BLAKE2B 734da268e308b08b04cbc661d889f52c4e8b2dd61d7a67961eaba5a6aa130f6972525820a17e8b6dd53d38508629139a5a0be20b69eaea45430cc60da5cd9a27 SHA512 ff22087e09ab9f75e458e71f595d611ea97240596a25bd96f41a0fb1de865336f8c2edbd49d5e7c8132a7e554d8311337ec02991dde358cba1962d4cb182447d
24 +DIST fprintd-v1.94.2.tar.bz2 657989 BLAKE2B 5855ab453ae6d73e08c60c699a95609262fd121ab020f9ffeafb8d1891a60f761f47e4acd11554179b6d9cbed8a734aafb012a4b6de3e9ad67d4160534a0e6c6 SHA512 0b5ebc595b617fbe9167c41a80e31ae74e7bdc87350b0420839e1a6229d7709e51ff2836858c46d8d30549a1f0811b0f697034fcdd09512b5c1099f0f0a3b112
25
26 diff --git a/sys-auth/fprintd/fprintd-1.94.2.ebuild b/sys-auth/fprintd/fprintd-1.94.2.ebuild
27 new file mode 100644
28 index 000000000000..65065793fd36
29 --- /dev/null
30 +++ b/sys-auth/fprintd/fprintd-1.94.2.ebuild
31 @@ -0,0 +1,100 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +PYTHON_COMPAT=( python3_{9..11} )
38 +
39 +inherit meson pam python-any-r1 systemd
40 +
41 +MY_P="${PN}-v${PV}"
42 +
43 +DESCRIPTION="D-Bus service to access fingerprint readers"
44 +HOMEPAGE="https://gitlab.freedesktop.org/libfprint/fprintd"
45 +SRC_URI="https://gitlab.freedesktop.org/libfprint/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2"
46 +
47 +LICENSE="GPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
50 +IUSE="doc pam systemd test"
51 +RESTRICT="!test? ( test )"
52 +
53 +RDEPEND="
54 + dev-libs/dbus-glib
55 + dev-libs/glib:2
56 + >=sys-auth/libfprint-1.94.0:2
57 + sys-auth/polkit
58 + pam? (
59 + sys-libs/pam
60 + systemd? ( sys-apps/systemd:= )
61 + !systemd? ( sys-auth/elogind:= )
62 + )
63 +"
64 +
65 +DEPEND="
66 + ${RDEPEND}
67 + test? (
68 + $(python_gen_any_dep '
69 + dev-python/python-dbusmock[${PYTHON_USEDEP}]
70 + dev-python/dbus-python[${PYTHON_USEDEP}]
71 + dev-python/pycairo[${PYTHON_USEDEP}]
72 + pam? ( sys-libs/pam_wrapper[${PYTHON_USEDEP}] )
73 + ')
74 + )
75 +"
76 +
77 +BDEPEND="
78 + dev-lang/perl
79 + dev-util/gdbus-codegen
80 + virtual/pkgconfig
81 + doc? (
82 + dev-libs/libxml2
83 + dev-libs/libxslt
84 + dev-util/gtk-doc
85 + )
86 +"
87 +
88 +PATCHES=(
89 + "${FILESDIR}/${PN}-1.90.7_0001-add-test-feature-and-make-tests-optional.patch"
90 + "${FILESDIR}/${PN}-1.90.8_0002-add-configure-option-for-libsystemd-provider.patch"
91 +)
92 +
93 +S="${WORKDIR}/${MY_P}"
94 +
95 +python_check_deps() {
96 + if use test; then
97 + has_version -d "sys-libs/pam_wrapper[${PYTHON_USEDEP}]"
98 + fi
99 +
100 + has_version -d "dev-python/python-dbusmock[${PYTHON_USEDEP}]" &&
101 + has_version -d "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
102 + has_version -d "dev-python/pycairo[${PYTHON_USEDEP}]"
103 +}
104 +
105 +pkg_setup() {
106 + use test && python-any-r1_pkg_setup
107 +}
108 +
109 +src_configure() {
110 + local emesonargs=(
111 + $(meson_feature test)
112 + $(meson_use pam)
113 + -Dgtk_doc=$(usex doc true false)
114 + -Dman=true
115 + -Dsystemd_system_unit_dir=$(systemd_get_systemunitdir)
116 + -Dpam_modules_dir=$(getpam_mod_dir)
117 + -Dlibsystemd=$(usex systemd libsystemd libelogind)
118 + )
119 + meson_src_configure
120 +}
121 +
122 +src_install() {
123 + meson_src_install
124 +
125 + dodoc AUTHORS NEWS README TODO
126 + newdoc pam/README README.pam_fprintd
127 +}
128 +
129 +pkg_postinst() {
130 + elog "Please take a look at README.pam_fprintd for integration docs."
131 +}