diff --git a/sys-auth/fprintd/Manifest b/sys-auth/fprintd/Manifest index 4be1ed6..02545ea 100644 --- a/sys-auth/fprintd/Manifest +++ b/sys-auth/fprintd/Manifest @@ -1,4 +1,6 @@ AUX fprintd-1.90.7_0001-add-test-feature-and-make-tests-optional.patch 2426 BLAKE2B 838b56e110fdf670816fb59e7ad30b908c54b8ee1cbbe4fda0334ac068265c8cdcb7e48200796b0872718099dea918554641dc02670e32e5f9369f7cc05fb95b SHA512 553e6baa7d1a90971627e3e1303488734596f83fea4413d2a4ce2688f003cded95182b652622f758f4e347b54a1294837a2014a9e36badc25e8b254947a54736 AUX fprintd-1.90.8_0002-add-configure-option-for-libsystemd-provider.patch 1144 BLAKE2B f417baf7a6d686a753381501ef2e6df6bc867c4a938d47b70def205b92a3ea20adb2ab55a1ff26d921ef433d846c150bb24d9a4102a39e61c2e424b53effe66e SHA512 4a234200e9a03ba3acb710857a64d35d84a4b954d9289a8fc400355dd27cc8cdf5da6d2dc11e60add57aae04e93e4c890b8a75e4984516fad14f9236acf0f699 DIST fprintd-v1.90.9.tar.bz2 636538 BLAKE2B 8a2150887282aae722d143ec96a9c0c3b5dd066e4cba30c41d49b6f6afe95c26c585aec2d9b074d65dd1a3efd462dae294a98965a020c4e55a8cda7c00a827bb SHA512 2b0f3e5812dd29df2b78ff6082c75981c28af71fc07e19e7eb4743842562e7d5bfc0655d5fbb66bfb167bc3087100bd0f154257ad936eab03e9e8ccc2410481f +DIST fprintd-v1.94.0.tar.bz2 656308 BLAKE2B f64f92af51f2d3eda059640cdfa88b26ca12326b3082e9489f6d807ec566aced86e1d19a59ad247ec2aaa6e6a90dd3d030c18e062e39143a1d4110e62e7ad03d SHA512 1ab8cf93d10317201c3f83880b9e6de4a391c2a12afe29725ae3556a7b0108a374eb96f6b2b5be69c01c386f62e3543e3f9a974867256c99e690dd19bdd5778d EBUILD fprintd-1.90.9.ebuild 1678 BLAKE2B 5dd4d457a1a14baa17aa7582b15b090ce3115764e94eda4a70414021837e9aa93da21e7b77daf5f53d920a6a91c6a1e2acf614f922c5ff2284269a5214283604 SHA512 07645d14c489aca303a861c284a08ca9301ed96e3e78c3eea7e120dc1705d08215d63e2c8322b7e2e322254b042f96141a6913ab4cdd415407358616e49b1a64 +EBUILD fprintd-1.94.0.ebuild 2172 BLAKE2B cfdbfc5bb3ef399c07e0e3740242a14eae576cc0f81c4aea6d688373b794cf8154287ff63364ccb036cfa639537d5dbaed08f1587a8f99080d0f7bd726373f23 SHA512 39bbefe703f919557d396654c5a5afae249ce89ddaea4f83d23e7aef3623975394e6b284397278acd304b24d0b6f88a3eb3a8e504c2c067ae914f1c3aea693f4 diff --git a/sys-auth/fprintd/fprintd-1.94.0.ebuild b/sys-auth/fprintd/fprintd-1.94.0.ebuild new file mode 100644 index 0000000..ddc91ef --- /dev/null +++ b/sys-auth/fprintd/fprintd-1.94.0.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) + +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" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ia64 ~sparc ~x86" +IUSE="doc pam systemd test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/dbus-glib + dev-libs/glib:2 + || ( sys-auth/libfprint:2 sys-auth/libfprint-tod: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 + virtual/pkgconfig + doc? ( + dev-libs/libxml2 + dev-libs/libxslt + dev-util/gtk-doc + )" + +PATCHES=( + "${FILESDIR}/${PN}-1.90.7_0001-add-test-feature-and-make-tests-optional.patch" + "${FILESDIR}/${PN}-1.90.8_0002-add-configure-option-for-libsystemd-provider.patch" +) + +S="${WORKDIR}/${MY_P}" + +python_check_deps() { + if use test; then + has_version -d "sys-libs/pam_wrapper[${PYTHON_USEDEP}]" + fi + + has_version -d "dev-python/python-dbusmock[${PYTHON_USEDEP}]" && + has_version -d "dev-python/dbus-python[${PYTHON_USEDEP}]" && + has_version -d "dev-python/pycairo[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_configure() { + local emesonargs=( + $(meson_feature test) + $(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." +}