Diff fprintd-0.8.1-r3 with a fprintd-1.90.8

/usr/portage/sys-auth/fprintd/fprintd-1.90.8.ebuild 2021-02-11 11:09:00.000000000 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
inherit autotools pam systemd
6
inherit meson pam systemd
7 7

  
8 8
DESCRIPTION="D-Bus service to access fingerprint readers"
9
HOMEPAGE="https://cgit.freedesktop.org/libfprint/fprintd/"
10
MY_PV="V_$(ver_rs 0- _)"
11
SRC_URI="https://cgit.freedesktop.org/libfprint/${PN}/snapshot/${MY_PV}.tar.bz2 -> ${P}.tar.bz2"
9
HOMEPAGE="https://gitlab.freedesktop.org/libfprint/fprintd"
10
SRC_URI="https://gitlab.freedesktop.org/libfprint/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
12 11

  
13 12
LICENSE="GPL-2"
14 13
SLOT="0"
15
KEYWORDS="~alpha ~amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
16
IUSE="doc pam"
14
KEYWORDS="~amd64 ~ia64 ~x86"
15
IUSE="doc pam systemd test"
16
RESTRICT="!test? ( test )"
17 17

  
18 18
RDEPEND="
19 19
	dev-libs/dbus-glib
20 20
	dev-libs/glib:2
21
	sys-auth/libfprint:0
21
	sys-auth/libfprint:2
22 22
	sys-auth/polkit
23
	pam? ( sys-libs/pam )"
23
	pam? (
24
		systemd? ( sys-apps/systemd )
25
		!systemd? ( sys-auth/elogind )
26
		sys-libs/pam
27
	)
28
"
24 29
DEPEND="${RDEPEND}"
30

  
25 31
BDEPEND="
26
	dev-libs/dbus-glib
27
	dev-util/gtk-doc
28
	dev-util/gtk-doc-am
29
	dev-util/intltool
32
	dev-lang/perl
30 33
	doc? (
31 34
		dev-libs/libxml2
32 35
		dev-libs/libxslt
33
	)"
34

  
35
S="${WORKDIR}"/${MY_PV}
36

  
37
PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
36
		dev-util/gtk-doc
37
	)
38
	test? (
39
		dev-python/dbusmock
40
		dev-python/dbus-python
41
		dev-python/pycairo
42
		pam? ( sys-libs/pam_wrapper )
43
	)
44
	virtual/pkgconfig
45
"
46

  
47
PATCHES=(
48
	"${FILESDIR}/${PN}-1.90.7_0001-add-test-feature-and-make-tests-optional.patch"
49
	"${FILESDIR}/${PN}-1.90.8_0002-add-configure-option-for-libsystemd-provider.patch"
50
)
38 51

  
39
src_prepare() {
40
	default
41

  
42
	sed -i 's#@localstatedir@/lib/fprint#@localstatedir@/fprint#g' data/fprintd.service.in || die "sed failed"
43
	eautoreconf
44
}
52
S="${WORKDIR}/${PN}-v${PV}"
45 53

  
46 54
src_configure() {
47
	econf \
48
		--disable-static \
49
		$(use_enable pam) \
50
		$(use_enable doc gtk-doc-html) \
51
		--with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
55
		local emesonargs=(
56
			$(meson_feature test)
57
			$(meson_use pam)
58
			-Dgtk_doc=$(usex doc true false)
59
			-Dman=true
60
			-Dsystemd_system_unit_dir=$(systemd_get_systemunitdir)
61
			-Dpam_modules_dir=$(getpam_mod_dir)
62
			-Dlibsystemd=$(usex systemd libsystemd libelogind)
63
		)
64
		meson_src_configure
52 65
}
53 66

  
54 67
src_install() {
55
	emake DESTDIR="${D}" install \
56
		pammoddir=$(getpam_mod_dir)
57

  
58
	keepdir /var/lib/fprint
59

  
60
	find "${ED}" -name '*.la' -delete || die
68
	meson_src_install
61 69

  
62
	dodoc AUTHORS NEWS README{,.transifex} TODO
70
	dodoc AUTHORS NEWS README TODO
63 71
	newdoc pam/README README.pam_fprintd
64
	if use doc ; then
65
		docinto html
66
		dodoc doc/{fprintd-docs,version}.xml
67
		docinto html/dbus
68
		dodoc doc/dbus/net.reactivated.Fprint.{Device,Manager}.ref.xml
69
	fi
70 72
}
71 73

  
72 74
pkg_postinst() {
Thank you!