1 |
commit: b890870106d06f6ea63fcda608bae0fa43c49bea |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 1 00:01:26 2023 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 1 00:04:22 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8908701 |
7 |
|
8 |
sys-apps/pcsc-tools: add 1.6.1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
sys-apps/pcsc-tools/Manifest | 1 + |
13 |
sys-apps/pcsc-tools/pcsc-tools-1.6.1.ebuild | 64 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/sys-apps/pcsc-tools/Manifest b/sys-apps/pcsc-tools/Manifest |
17 |
index 0a6334fb6941..5468c7cb8baf 100644 |
18 |
--- a/sys-apps/pcsc-tools/Manifest |
19 |
+++ b/sys-apps/pcsc-tools/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pcsc-tools-1.6.0.tar.bz2 304960 BLAKE2B a60d280d39689d7eaa407aa5857c63af0acda3791e5d9f5c2f62048260178dc728fb179aed3c369340e192ba9b3d5db04bacbe5cc6ef1519c7cde55e10ca6b45 SHA512 951014510dcfd011fc08c92a927ed8a39751c15cd9278e9bd61693a2743a82d4b88907e01e013738f6b5afb569cb4d9e9802ee575c731b83da33e92f96eb5d50 |
22 |
+DIST pcsc-tools-1.6.1.tar.bz2 313105 BLAKE2B 62169f4bab81cfe137098b863ae572df283498f7fcb6b6ecaef9122ccc530d6201805b13903826887c70363443d02e43d0d0fb88e15d5f634fc0e1e775c3ecaf SHA512 fc1a6bdea55ee1194d08998f229870b7fb65f53b3b5ddb209540980d95dab8dfb62d4bc865716d0120bb843d5095b0ad9286c42ad352e52c1cfe48ef28b5adaf |
23 |
|
24 |
diff --git a/sys-apps/pcsc-tools/pcsc-tools-1.6.1.ebuild b/sys-apps/pcsc-tools/pcsc-tools-1.6.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..5d0778848964 |
27 |
--- /dev/null |
28 |
+++ b/sys-apps/pcsc-tools/pcsc-tools-1.6.1.ebuild |
29 |
@@ -0,0 +1,64 @@ |
30 |
+# Copyright 1999-2023 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit desktop toolchain-funcs xdg-utils |
36 |
+ |
37 |
+DESCRIPTION="PC/SC Architecture smartcard tools" |
38 |
+HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/pcsc-tools/ https://github.com/LudovicRousseau/pcsc-tools" |
39 |
+SRC_URI="http://ludovic.rousseau.free.fr/softwares/${PN}/${P}.tar.bz2" |
40 |
+ |
41 |
+LICENSE="GPL-2" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" |
44 |
+IUSE="gui network-cron" |
45 |
+ |
46 |
+DEPEND=">=sys-apps/pcsc-lite-1.4.14" |
47 |
+RDEPEND=" |
48 |
+ ${DEPEND} |
49 |
+ dev-perl/pcsc-perl |
50 |
+ gui? ( dev-perl/Gtk3 ) |
51 |
+" |
52 |
+BDEPEND="virtual/pkgconfig" |
53 |
+ |
54 |
+DOCS=( |
55 |
+ README Changelog |
56 |
+) |
57 |
+ |
58 |
+src_compile() { |
59 |
+ # explicitly only build the pcsc_scan application, or the man |
60 |
+ # pages will be gzipped first, and then unpacked. |
61 |
+ emake pcsc_scan CC="$(tc-getCC)" |
62 |
+} |
63 |
+ |
64 |
+src_install() { |
65 |
+ einstalldocs |
66 |
+ |
67 |
+ # install manually, makes it much easier since the Makefile |
68 |
+ # requires fiddling with |
69 |
+ dobin ATR_analysis scriptor pcsc_scan |
70 |
+ doman pcsc_scan.1 scriptor.1p ATR_analysis.1p |
71 |
+ |
72 |
+ if use gui; then |
73 |
+ domenu gscriptor.desktop |
74 |
+ dobin gscriptor |
75 |
+ doman gscriptor.1p |
76 |
+ fi |
77 |
+ |
78 |
+ if use network-cron ; then |
79 |
+ exeinto /etc/cron.monthly |
80 |
+ newexe "${FILESDIR}"/smartcard.cron update-smartcard_list |
81 |
+ fi |
82 |
+ |
83 |
+ insinto /usr/share/pcsc |
84 |
+ doins smartcard_list.txt |
85 |
+} |
86 |
+ |
87 |
+pkg_postinst() { |
88 |
+ use gui && xdg_desktop_database_update |
89 |
+} |
90 |
+ |
91 |
+pkg_postrm() { |
92 |
+ xdg_desktop_database_update |
93 |
+} |