1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 11:42:40 +01:00

sys-auth/fprintd: update for Python 3.11

This commit is contained in:
2023-05-01 14:00:29 +02:00
parent 4638d4dcc9
commit 72f39e64f3
3 changed files with 23 additions and 117 deletions

View File

@@ -1,6 +1,4 @@
AUX fprintd-1.90.7_0001-add-test-feature-and-make-tests-optional.patch 2426 BLAKE2B 838b56e110fdf670816fb59e7ad30b908c54b8ee1cbbe4fda0334ac068265c8cdcb7e48200796b0872718099dea918554641dc02670e32e5f9369f7cc05fb95b SHA512 553e6baa7d1a90971627e3e1303488734596f83fea4413d2a4ce2688f003cded95182b652622f758f4e347b54a1294837a2014a9e36badc25e8b254947a54736 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 AUX fprintd-1.90.8_0002-add-configure-option-for-libsystemd-provider.patch 1144 BLAKE2B f417baf7a6d686a753381501ef2e6df6bc867c4a938d47b70def205b92a3ea20adb2ab55a1ff26d921ef433d846c150bb24d9a4102a39e61c2e424b53effe66e SHA512 4a234200e9a03ba3acb710857a64d35d84a4b954d9289a8fc400355dd27cc8cdf5da6d2dc11e60add57aae04e93e4c890b8a75e4984516fad14f9236acf0f699
DIST fprintd-v1.94.1.tar.bz2 658149 BLAKE2B 734da268e308b08b04cbc661d889f52c4e8b2dd61d7a67961eaba5a6aa130f6972525820a17e8b6dd53d38508629139a5a0be20b69eaea45430cc60da5cd9a27 SHA512 ff22087e09ab9f75e458e71f595d611ea97240596a25bd96f41a0fb1de865336f8c2edbd49d5e7c8132a7e554d8311337ec02991dde358cba1962d4cb182447d
DIST fprintd-v1.94.2.tar.bz2 657989 BLAKE2B 5855ab453ae6d73e08c60c699a95609262fd121ab020f9ffeafb8d1891a60f761f47e4acd11554179b6d9cbed8a734aafb012a4b6de3e9ad67d4160534a0e6c6 SHA512 0b5ebc595b617fbe9167c41a80e31ae74e7bdc87350b0420839e1a6229d7709e51ff2836858c46d8d30549a1f0811b0f697034fcdd09512b5c1099f0f0a3b112 DIST fprintd-v1.94.2.tar.bz2 657989 BLAKE2B 5855ab453ae6d73e08c60c699a95609262fd121ab020f9ffeafb8d1891a60f761f47e4acd11554179b6d9cbed8a734aafb012a4b6de3e9ad67d4160534a0e6c6 SHA512 0b5ebc595b617fbe9167c41a80e31ae74e7bdc87350b0420839e1a6229d7709e51ff2836858c46d8d30549a1f0811b0f697034fcdd09512b5c1099f0f0a3b112
EBUILD fprintd-1.94.1.ebuild 2219 BLAKE2B a3d631ea8a080445f7cab8d7bbe11c127c60dc6864a23fadb605a6323d51f0d1f5da36aca09937498249086cb5badf03fe9f0ead9221d9e9df61dc33215f04e4 SHA512 752ebb40ab46787294ad1d577e0b47013c49c844e61470aee34515ba4c68f0d01aed6893589f44abd95c515773f283ae35491e3c53f1347e0b44c0364e0456af EBUILD fprintd-1.94.2.ebuild 2238 BLAKE2B 14ac130879cefdb82e503cc4f98a40f0e96bff09e98949437e9e7ddece4c12292ad5ac3feef7ebe1dbaef6b1d8658da8435e033b002d001bb08273ad1287ca56 SHA512 74e92a8a8fedb6181450fb5ee4cd60566e5a22eedc5ce2ba3fd563fce48148ee791130d44e331c1573ca3118cace7a447e046f84a088628de62892a865e74a06
EBUILD fprintd-1.94.2.ebuild 2219 BLAKE2B a3d631ea8a080445f7cab8d7bbe11c127c60dc6864a23fadb605a6323d51f0d1f5da36aca09937498249086cb5badf03fe9f0ead9221d9e9df61dc33215f04e4 SHA512 752ebb40ab46787294ad1d577e0b47013c49c844e61470aee34515ba4c68f0d01aed6893589f44abd95c515773f283ae35491e3c53f1347e0b44c0364e0456af

View File

@@ -1,96 +0,0 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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 ~ppc ~sparc ~x86"
IUSE="doc pam systemd test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/dbus-glib
dev-libs/glib:2
|| ( >=sys-auth/libfprint-1.94.0:2 >=sys-auth/libfprint-tod-1.94.2: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
dev-util/gdbus-codegen
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."
}

View File

@@ -1,20 +1,21 @@
# Copyright 1999-2022 Gentoo Authors # Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=8 EAPI=8
PYTHON_COMPAT=( python3_{8..10} ) PYTHON_COMPAT=( python3_{9..11} )
inherit meson pam python-any-r1 systemd inherit meson pam python-any-r1 systemd
MY_P="${PN}-v${PV}" MY_P="${PN}-v${PV}"
DESCRIPTION="D-Bus service to access fingerprint readers" DESCRIPTION="D-Bus service to access fingerprint readers"
HOMEPAGE="https://gitlab.freedesktop.org/libfprint/fprintd" HOMEPAGE="https://gitlab.freedesktop.org/libfprint/fprintd"
SRC_URI="https://gitlab.freedesktop.org/libfprint/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2" SRC_URI="https://gitlab.freedesktop.org/libfprint/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2"
LICENSE="GPL-2+" LICENSE="GPL-2+"
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~sparc ~x86" KEYWORDS="~alpha amd64 arm arm64 ~ia64 ppc ppc64 ~riscv sparc x86"
IUSE="doc pam systemd test" IUSE="doc pam systemd test"
RESTRICT="!test? ( test )" RESTRICT="!test? ( test )"
@@ -25,9 +26,10 @@ RDEPEND="
sys-auth/polkit sys-auth/polkit
pam? ( pam? (
sys-libs/pam sys-libs/pam
systemd? ( sys-apps/systemd ) systemd? ( sys-apps/systemd:= )
!systemd? ( sys-auth/elogind ) !systemd? ( sys-auth/elogind:= )
)" )
"
DEPEND=" DEPEND="
${RDEPEND} ${RDEPEND}
@@ -38,7 +40,8 @@ DEPEND="
dev-python/pycairo[${PYTHON_USEDEP}] dev-python/pycairo[${PYTHON_USEDEP}]
pam? ( sys-libs/pam_wrapper[${PYTHON_USEDEP}] ) pam? ( sys-libs/pam_wrapper[${PYTHON_USEDEP}] )
') ')
)" )
"
BDEPEND=" BDEPEND="
dev-lang/perl dev-lang/perl
@@ -48,7 +51,8 @@ BDEPEND="
dev-libs/libxml2 dev-libs/libxml2
dev-libs/libxslt dev-libs/libxslt
dev-util/gtk-doc dev-util/gtk-doc
)" )
"
PATCHES=( PATCHES=(
"${FILESDIR}/${PN}-1.90.7_0001-add-test-feature-and-make-tests-optional.patch" "${FILESDIR}/${PN}-1.90.7_0001-add-test-feature-and-make-tests-optional.patch"
@@ -72,16 +76,16 @@ pkg_setup() {
} }
src_configure() { src_configure() {
local emesonargs=( local emesonargs=(
$(meson_feature test) $(meson_feature test)
$(meson_use pam) $(meson_use pam)
-Dgtk_doc=$(usex doc true false) -Dgtk_doc=$(usex doc true false)
-Dman=true -Dman=true
-Dsystemd_system_unit_dir=$(systemd_get_systemunitdir) -Dsystemd_system_unit_dir=$(systemd_get_systemunitdir)
-Dpam_modules_dir=$(getpam_mod_dir) -Dpam_modules_dir=$(getpam_mod_dir)
-Dlibsystemd=$(usex systemd libsystemd libelogind) -Dlibsystemd=$(usex systemd libsystemd libelogind)
) )
meson_src_configure meson_src_configure
} }
src_install() { src_install() {