commit: 9ab2ac6e2ef72ff3a8d9a7130dd297b2511b28df Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Thu May 1 03:34:07 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu May 1 03:41:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ab2ac6e
sys-apps/pcsc-tools: add 1.7.3 * Port to Meson * Retain USE=gui, at least for now. It was added for bug #323229 with which I sympathise, but dunno if we should add some option for it in the build system. I think we probably should as it's more robust and means we're less likely to miss files that changed in future. * Add a comment in pkg_postrm as I nearly removed it until I realised why it's not conditional there. * Add unconditional dev-perl/libintl-perl dep. It's `use`'d by both gscriptor and scriptor unconditionally. Bug: https://bugs.gentoo.org/323229 Closes: https://bugs.gentoo.org/927630 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/pcsc-tools/Manifest | 1 + sys-apps/pcsc-tools/pcsc-tools-1.7.3.ebuild | 49 +++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/sys-apps/pcsc-tools/Manifest b/sys-apps/pcsc-tools/Manifest index e90ddbb6e159..82585d5bba25 100644 --- a/sys-apps/pcsc-tools/Manifest +++ b/sys-apps/pcsc-tools/Manifest @@ -1 +1,2 @@ DIST pcsc-tools-1.7.2.tar.bz2 387207 BLAKE2B 0337de4e1558100777e486f1ddbfd5da37f4cb1c15811e7119ca83349843b37931df7b1aea03826b12c8b041f1b51d0102ab31265a63ea145d5e5a46850d0ff7 SHA512 24fcdbc51de370194f31ef7a74bdc03bc37f8531db44af316c52e4ed1fa76b7ec995bbdaf08063bfe6e8b2f129f2f2fd0fe6c738d867ac10b746d4550ab2cf90 +DIST pcsc-tools-1.7.3.tar.bz2 401255 BLAKE2B 2d640b0600c4fb4764e097d8a6f6cefb26be8aa9cfd4dbe2366741acb67559ab1c1bac87f487c4be30b6a4bca7b2f10c2b069a1f5d17088bf5e45513359c2592 SHA512 2659d5d3d1de147fc5373aaf1bea27692d57ace1f9cd19b2181c0ef43d94c77ecff78f4c784238b9ee05f154550535eb966814f1bd9143ad7ae6842f8b92d5c0 diff --git a/sys-apps/pcsc-tools/pcsc-tools-1.7.3.ebuild b/sys-apps/pcsc-tools/pcsc-tools-1.7.3.ebuild new file mode 100644 index 000000000000..26ef8d3ba03b --- /dev/null +++ b/sys-apps/pcsc-tools/pcsc-tools-1.7.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson xdg-utils + +DESCRIPTION="PC/SC Architecture smartcard tools" +HOMEPAGE="https://pcsc-tools.apdu.fr/ https://github.com/LudovicRousseau/pcsc-tools" +SRC_URI="https://pcsc-tools.apdu.fr/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="gui network-cron" + +DEPEND=">=sys-apps/pcsc-lite-1.4.14" +RDEPEND=" + ${DEPEND} + dev-perl/libintl-perl + dev-perl/pcsc-perl + gui? ( dev-perl/Gtk3 ) +" + +src_install() { + meson_src_install + + # USE=gui controls gscriptor for bug #323229 + if ! use gui ; then + rm "${ED}"/usr/bin/gscriptor || die + rm "${ED}"/usr/share/pcsc/gscriptor.png || die + rm "${ED}"/usr/share/applications/gscriptor.desktop || die + rm "${ED}"/usr/share/man/man1/gscriptor.1 || die + fi + + if use network-cron ; then + exeinto /etc/cron.monthly + newexe "${FILESDIR}"/smartcard.cron update-smartcard_list + fi +} + +pkg_postinst() { + use gui && xdg_desktop_database_update +} + +pkg_postrm() { + # No USE=gui conditional here, as we may have just disabled it + xdg_desktop_database_update +}
