1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils fdo-mime multilib toolchain-funcs
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.gz"
14 KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
15 IUSE="gtk network-cron"
17 RDEPEND=">=sys-apps/pcsc-lite-1.4.14"
23 gtk? ( dev-perl/Gtk2 )"
31 sed -i -e 's:-Wall -O2:$(CFLAGS):g' Makefile
35 # explicitly only build the pcsc_scan application, or the man
36 # pages will be gzipped first, and then unpacked.
37 emake pcsc_scan CC=$(tc-getCC)
43 # install manually, makes it much easier since the Makefile
44 # requires fiddling with
45 dobin ATR_analysis scriptor pcsc_scan
46 doman pcsc_scan.1 scriptor.1p ATR_analysis.1p
49 domenu gscriptor.desktop
54 if use network-cron ; then
55 exeinto /etc/cron.monthly
56 newexe "${FILESDIR}"/smartcard.cron update-smartcard_list
59 insinto /usr/share/pcsc
60 doins smartcard_list.txt
64 use gtk && fdo-mime_desktop_database_update
68 fdo-mime_desktop_database_update