1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop toolchain-funcs xdg-utils
8 DESCRIPTION="PC/SC Architecture smartcard tools"
9 HOMEPAGE="http://ludovic.rousseau.free.fr/softwares/pcsc-tools/"
10 SRC_URI="http://ludovic.rousseau.free.fr/softwares/${PN}/${P}.tar.bz2"
14 KEYWORDS="amd64 ~arm ~hppa ppc ppc64 x86"
15 IUSE="gtk network-cron"
17 DEPEND=">=sys-apps/pcsc-lite-1.4.14"
20 gtk? ( dev-perl/Gtk2 )"
21 BDEPEND="virtual/pkgconfig"
28 # explicitly only build the pcsc_scan application, or the man
29 # pages will be gzipped first, and then unpacked.
30 emake pcsc_scan CC=$(tc-getCC)
36 # install manually, makes it much easier since the Makefile
37 # requires fiddling with
38 dobin ATR_analysis scriptor pcsc_scan
39 doman pcsc_scan.1 scriptor.1p ATR_analysis.1p
42 domenu gscriptor.desktop
47 if use network-cron ; then
48 exeinto /etc/cron.monthly
49 newexe "${FILESDIR}"/smartcard.cron update-smartcard_list
52 insinto /usr/share/pcsc
53 doins smartcard_list.txt
57 use gtk && xdg_desktop_database_update
61 xdg_desktop_database_update