commit: a186706ce1f0ac859610e1753960e040800a0a25 Author: Lukas Schmelting <lschmelting <AT> posteo <DOT> com> AuthorDate: Sun Dec 22 17:11:21 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun Feb 9 06:17:00 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a186706c
sys-apps/pcsc-tools: Version bump to 1.7.2 Signed-off-by: Lukas Schmelting <lschmelting <AT> posteo.com> Closes: https://github.com/gentoo/gentoo/pull/39822 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/pcsc-tools/Manifest | 1 + sys-apps/pcsc-tools/pcsc-tools-1.7.2.ebuild | 67 +++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) diff --git a/sys-apps/pcsc-tools/Manifest b/sys-apps/pcsc-tools/Manifest index ca65924a241c..478c8502441e 100644 --- a/sys-apps/pcsc-tools/Manifest +++ b/sys-apps/pcsc-tools/Manifest @@ -1,3 +1,4 @@ DIST pcsc-tools-1.6.2.tar.bz2 320182 BLAKE2B 88a76f4120a183df909ce9d189e38e51897080839ebe7ca85aa4447a441363e6917ddb1c5e6c0e881c8792078700676ad1cfe24609957a4fef54374d5be824a4 SHA512 20104baefa7928a86d21cee49d045cc35b8e74fec5be79ba5608ae046a110096efae96768d281e0f1350f71a889f89c675336d8264c75f8423369a49c03b42a8 DIST pcsc-tools-1.7.0.tar.bz2 360064 BLAKE2B e9f22e13600e40c488720844c6e93d90e8a5dd0e085b3b5245096dbc390e5978c9ff17c9cf5c34cf82f8d0cfbaf9b3d44a25b331439c5e09bf7b075d769f7a36 SHA512 8de48526306b23e9dea6d99d29ec5f1230e3959bfe82a4d1b7d65f9767369757a1f440ceca7debeba68a8492607c91d0dcf7bec366cd213f00be45a5ef018d67 DIST pcsc-tools-1.7.1.tar.bz2 360506 BLAKE2B 64be45b49ef3fdbb42c8311990d024c3da1b8cbfe733f15617697ad23bc2cce292640dceca271fc8515c3f6f070ff801d1cc528f5203c5f74cdb5dd47c57a687 SHA512 fe60610122d05f97edf3462c9382b82c31ee75f1851db2d88088ebd378ea3f54b3112b1c1f59dd8315806f33b822e40f96d7bc186b8c5999ef339711f91136c0 +DIST pcsc-tools-1.7.2.tar.bz2 387207 BLAKE2B 0337de4e1558100777e486f1ddbfd5da37f4cb1c15811e7119ca83349843b37931df7b1aea03826b12c8b041f1b51d0102ab31265a63ea145d5e5a46850d0ff7 SHA512 24fcdbc51de370194f31ef7a74bdc03bc37f8531db44af316c52e4ed1fa76b7ec995bbdaf08063bfe6e8b2f129f2f2fd0fe6c738d867ac10b746d4550ab2cf90 diff --git a/sys-apps/pcsc-tools/pcsc-tools-1.7.2.ebuild b/sys-apps/pcsc-tools/pcsc-tools-1.7.2.ebuild new file mode 100644 index 000000000000..5647853fafa6 --- /dev/null +++ b/sys-apps/pcsc-tools/pcsc-tools-1.7.2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop toolchain-funcs 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 nls" + +DEPEND=">=sys-apps/pcsc-lite-1.4.14" +RDEPEND=" + ${DEPEND} + dev-perl/pcsc-perl + gui? ( dev-perl/Gtk3 ) +" +BDEPEND=" + virtual/pkgconfig + nls? ( sys-devel/gettext ) +" + +src_configure() { + econf $(use_enable nls gettext) +} + +src_compile() { + # explicitly only build the pcsc_scan application, or the man + # pages will be gzipped first, and then unpacked. + emake pcsc_scan CC="$(tc-getCC)" +} + +src_install() { + einstalldocs + + # install manually, makes it much easier since the Makefile + # requires fiddling with + dobin ATR_analysis scriptor pcsc_scan + doman pcsc_scan.1 scriptor.1p ATR_analysis.1p + + if use gui; then + domenu gscriptor.desktop + dobin gscriptor + doman gscriptor.1p + fi + + if use network-cron ; then + exeinto /etc/cron.monthly + newexe "${FILESDIR}"/smartcard.cron update-smartcard_list + fi + + insinto /usr/share/pcsc + doins smartcard_list.txt +} + +pkg_postinst() { + use gui && xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update +}
